| title | Include file |
|---|---|
| description | An include file describing the Azure IoT extension and the az extension commands you can use to list, add, and remove the Azure IoT extension. |
| services | iot-hub |
| author | SoniaLopezBravo |
| ms.service | azure-iot-hub |
| ms.topic | include |
| ms.date | 03/28/2025 |
| ms.author | sonialopez |
| ms.custom | include file |
Note
This article uses the newest version of the Azure IoT extension, called azure-iot. The legacy version is called azure-cli-iot-ext. You should only have one version installed at a time. You can use the command az extension list to validate the currently installed extensions.
Use az extension remove --name azure-cli-iot-ext to remove the legacy version of the extension.
Use az extension add --name azure-iot to add the new version of the extension.
To see what extensions are currently installed, use az extension list.