This is a quck-start, for more detailed instructions, please see: https://docs.microsoft.com/en-us/azure/iot-edge/quickstart-linux
sudo apt-get install python-pip
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker pi
Refer to https://docs.docker.com/engine/security/security/#docker-daemon-attack-surface for more information.
sudo docker run hello-world
az group create --name IoTEdge --location westeurope
az iot hub create --resource-group IoTEdge --name MyIotHub --sku F1
- Navigate to your IoT hub.
- Select IoT Edge (preview).
- Select Add IoT Edge device.
- Give your simulated device a unique device ID.
- Select Save to add your device.
- Select your new device from the list of devices.
- Copy the value for Connection string--primary key and save it. You'll use this value to configure the IoT Edge runtime in the next section.
sudo apt-get install build-essential libssl-dev libffi-dev python-dev
(Remember to replace {device connection string} from the previous step)
sudo pip install -U azure-iot-edge-runtime-ctl
sudo iotedgectl setup --connection-string "{device connection string}" --auto-cert-gen-force-no-passwords
sudo iotedgectl start
You can verify the setup by checking for a running docker container
sudo docker ps