CmdID / az / az iot / az iot hub / az iot hub policy
az iot hub policy create
Create a new shared access policy in an IoT hub. Azure CLI reference
1 example Its page in the Azure CLI reference
Examples
Create a new shared access policy.
az iot hub policy create --hub-name MyIotHub --name new-policy --permissions RegistryWrite ServiceConnect DeviceConnectIdentify--nameShared access policy name.--permissionsPermissions of shared access policy.