This error is generated:
az iot hub: 'generate-sas-token' is not in the 'az iot hub' command group. See 'az iot hub --help'.
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
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
Most helpful comment
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