Set up your development environment
You will use a laptop to provision resources in Azure (e.g. Azure IoT Hub), configure the Raspberry Pi 3 as an Azure IoT Edge device, and deploy code to the edge device. To accomplish these objectives, you’ll need the following tools installed on your laptop:
- Docker: https://www.docker.com/community-edition#/download
- Git: https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
-
Python 3.6: https://www.python.org/downloads
Note: You also need to install
pip
, which is included with Python 3.6. If you are installing Python on Windows, check the box in the installer that addspip
to your path. On a Mac, you can install pip withsudo apt install python-pip
. - Visual Studio Code: https://code.visualstudio.com/
- The following VS Code extensions:
- Azure IoT Edge
- Azure IoT Toolkit
- Docker
For information about finding and installing VS Code extensions, see https://code.visualstudio.com/docs/editor/extension-gallery.
-
Azure CLI 2.0: https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest
-
IoT extension for Azure CLI 2.0: After installing the Azure CLI 2.0, execute the following command:
az extension add --name azure-cli-iot-ext
After installation, use
az extension list
to validate the currently installed extensions oraz extension show --name azure-cli-iot-ext
to see details about the IoT extension. -
Azure IoT Starter Kit companion CLI: After you have installed Python/pip, execute the following command:
pip install azure-iot-starterkit-cli