CmdID

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

az iot hub certificate create

Create/upload an Azure IoT Hub certificate. Azure CLI reference

3 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

Uploads a verified CA certificate PEM file to an IoT hub.

az iot hub certificate create --hub-name MyIotHub --name MyCertificate --path /certificates/Certificate.pem --verifiedIdentify
--nameA friendly name for the certificate.
--pathThe path to the file containing the certificate.
--verifiedA boolean indicating whether or not the certificate is verified.

Uploads a CA certificate CER file to an IoT hub.

az iot hub certificate create --hub-name MyIotHub --name MyCertificate --path /certificates/Certificate.cerIdentify
--nameA friendly name for the certificate.
--pathThe path to the file containing the certificate.

Create/upload an Azure IoT Hub certificate (autogenerated)

az iot hub certificate create --hub-name MyIotHub --name MyCertificate --path /certificates/Certificate.cer --resource-group MyResourceGroup --subscription MySubscriptionIdentify
--nameA friendly name for the certificate.
--pathThe path to the file containing the certificate.
--resource-groupName of resource group.
--subscriptionName or ID of subscription.

Options

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