CmdID

CmdID / az / az iot / az iot hub / az iot hub certificate

az iot hub certificate update

Update an Azure IoT Hub certificate. Azure CLI reference

Uploads a new certificate to replace the existing certificate with the same name. 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 1 option Its page in the Azure CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from the Azure CLI, each command read by CmdID

Updates a CA certificate in an IoT hub by uploading a new PEM file.

az iot hub certificate update --hub-name MyIotHub --name MyCertificate --path /certificates/NewCertificate.pem --etag AAAAAAAAAAA=Identify
--nameA friendly name for the certificate.
--pathThe path to the file containing the certificate.
--etagEntity Tag (etag) of the object.

Updates a CA certificate in an IoT hub by uploading a new CER file.

az iot hub certificate update --hub-name MyIotHub --name MyCertificate --path /certificates/NewCertificate.cer --etag AAAAAAAAAAA=Identify
--nameA friendly name for the certificate.
--pathThe path to the file containing the certificate.
--etagEntity Tag (etag) of the object.

Options

1 in the Azure CLI reference
--verified, -vA boolean indicating whether or not the certificate is verified.