The Azure IoT Extension for Azure CLI adds IoT Hub, IoT Edge, and IoT Device Provisioning Service (DPS) specific commands to the official Azure CLI.
Please refer to the official "az iot" page on Microsoft Docs for a complete list of supported commands. You can also find IoT CLI usage tips on the wiki.
- Install the Azure CLI
- You must have at least
v2.0.24
, which you can verify withaz --version
- You must have at least
- Add, Update or Remove the IoT Extension with the following commands:
- Add:
az extension add --name azure-cli-iot-ext
- Update:
az extension update --name azure-cli-iot-ext
- Remove:
az extension remove --name azure-cli-iot-ext
- Add:
Please refer to the Installation Troubleshooting Guide if you run into any issues or the Alternative Installation Methods if you'd like to install from local source.
Please refer to the Example Automation Scripts page for an example of how to use the IoT CLI to automate your scenarios.
Please refer to the Contributing page for developer setup instructions and contribution guidelines.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.