Skip to content
Azure IoT extension for Azure CLI
Python Shell
Branch: dev
Clone or download

Microsoft Azure IoT Extension for Azure CLI


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.


  1. Install the Azure CLI
    • You must have at least v2.0.24, which you can verify with az --version
  2. 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

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.

Scenario Automation

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.

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact with any additional questions or comments.

You can’t perform that action at this time.