CmdID / az / az iot / az iot hub / az iot hub certificate
az iot hub certificate generate-verification-code
Generates a verification code for an Azure IoT Hub certificate. Azure CLI reference
This verification code is used to complete the proof of possession step for a certificate. Use this verification code as the CN of a new certificate signed with the root certificates private key. For a detailed explanation of CA certificates in Azure IoT Hub, see https://learn.microsoft.com/azure/iot-hub/iot-hub-x509ca-overview
2 examples Its page in the Azure CLI reference
Examples
Generates a verification code for MyCertificate
az iot hub certificate generate-verification-code --hub-name MyIotHub --name MyCertificate --etag AAAAAAAAAAA=Identify--nameA friendly name for the certificate.--etagEntity Tag (etag) of the object.Generates a verification code for an Azure IoT Hub certificate (autogenerated)
az iot hub certificate generate-verification-code --etag AAAAAAAAAAA= --hub-name MyIotHub --name MyCertificate --resource-group MyResourceGroup --subscription MySubscriptionIdentify--etagEntity Tag (etag) of the object.--nameA friendly name for the certificate.--resource-groupName of resource group.--subscriptionName or ID of subscription.