azure-cli
azure-cli copied to clipboard
generate-sas-token cannot be used with az iot hub command
This error is generated: az iot hub: 'generate-sas-token' is not in the 'az iot hub' command group. See 'az iot hub --help'.
Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
- ID: e9e0abf1-d0b9-d886-c106-ae056daa47ec
- Version Independent ID: 7534d5aa-8270-49e5-21d6-e9456969a60e
- Content: az iot hub
- Content Source: latest/docs-ref-autogen/ext/azure-cli-iot-ext/iot/hub.yml
- Service: iot-hub
- GitHub Login: @rloutlaw
- Microsoft Alias: routlaw
I had the same issue. All other commands listed in doc generate the same error.
To fix this you have to install the Azure CLI IoT extension:
az extension add --name azure-cli-iot-ext