CmdID

CmdID / az / az iot / az iot hub / az iot hub policy

az iot hub policy renew-key

Regenerate keys of a shared access policy of an IoT hub. Azure CLI reference

1 example 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

Regenerate primary key of a shared access policy of an IoT hub.

az iot hub policy renew-key --hub-name MyHub --name MySharedAccessPolicy --rk PrimaryIdentify
--nameShared access policy name.
--rkRegenerate keys

Options

1 in the Azure CLI reference
--renew-key, --rkRegenerate keys