az iot dps policy
Manage shared access policies for an Azure IoT Hub Device Provisioning Service instance.
Commands
Name | Description | Type | Status |
---|---|---|---|
az iot dps policy create |
Create a new shared access policy in an Azure IoT Hub Device Provisioning Service instance. |
Core | GA |
az iot dps policy delete |
Delete a shared access policies in an Azure IoT Hub Device Provisioning Service instance. |
Core | GA |
az iot dps policy list |
List all shared access policies in an Azure IoT Hub Device Provisioning Service instance. |
Core | GA |
az iot dps policy show |
Show details of a shared access policies in an Azure IoT Hub Device Provisioning Service instance. |
Core | GA |
az iot dps policy update |
Update a shared access policy in an Azure IoT Hub Device Provisioning Service instance. |
Core | GA |
az iot dps policy create
Create a new shared access policy in an Azure IoT Hub Device Provisioning Service instance.
az iot dps policy create --dps-name
--pn
--rights {DeviceConnect, EnrollmentRead, EnrollmentWrite, RegistrationStatusRead, RegistrationStatusWrite, ServiceConfig}
[--no-wait]
[--primary-key]
[--resource-group]
[--secondary-key]
Examples
Create a new shared access policy in an Azure IoT Hub Device Provisioning Service instance with EnrollmentRead right
az iot dps policy create --dps-name MyDps --resource-group MyResourceGroup --policy-name MyPolicy --rights EnrollmentRead
Required Parameters
IoT Hub Device Provisioning Service name.
A friendly name for DPS access policy.
Access rights for the IoT Hub Device Provisioning Service. Use space-separated list for multiple rights.
Optional Parameters
Do not wait for the long-running operation to finish.
Primary SAS key value, if not provided it will be generated by the service.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Secondary SAS key value, if not provided it will be generated by the service.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot dps policy delete
Delete a shared access policies in an Azure IoT Hub Device Provisioning Service instance.
az iot dps policy delete --dps-name
--pn
[--no-wait]
[--resource-group]
Examples
Delete shared access policy 'MyPolicy' in the Azure IoT Hub Device Provisioning Service instance 'MyDps'
az iot dps policy delete --dps-name MyDps --resource-group MyResourceGroup --policy-name MyPolicy
Required Parameters
IoT Hub Device Provisioning Service name.
A friendly name for DPS access policy.
Optional Parameters
Do not wait for the long-running operation to finish.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot dps policy list
List all shared access policies in an Azure IoT Hub Device Provisioning Service instance.
az iot dps policy list --dps-name
[--resource-group]
Examples
List all shared access policies in MyDps in the Azure IoT Hub Device Provisioning Service instance 'MyDps'
az iot dps policy list --dps-name MyDps --resource-group MyResourceGroup
Required Parameters
IoT Hub Device Provisioning Service name.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot dps policy show
Show details of a shared access policies in an Azure IoT Hub Device Provisioning Service instance.
az iot dps policy show --dps-name
--pn
[--resource-group]
Examples
Show details of shared access policy 'MyPolicy' in the Azure IoT Hub Device Provisioning Service instance 'MyDps'
az iot dps policy show --dps-name MyDps --resource-group MyResourceGroup --policy-name MyPolicy
Required Parameters
IoT Hub Device Provisioning Service name.
A friendly name for DPS access policy.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az iot dps policy update
Update a shared access policy in an Azure IoT Hub Device Provisioning Service instance.
az iot dps policy update --dps-name
--pn
[--no-wait]
[--primary-key]
[--resource-group]
[--rights {DeviceConnect, EnrollmentRead, EnrollmentWrite, RegistrationStatusRead, RegistrationStatusWrite, ServiceConfig}]
[--secondary-key]
Examples
Update shared access policy 'MyPolicy' in an Azure IoT Hub Device Provisioning Service instance with EnrollmentWrite right
az iot dps policy update --dps-name MyDps --resource-group MyResourceGroup --policy-name MyPolicy --rights EnrollmentWrite
Regenerate keys for access policy 'MyPolicy' by updating keys to empty values
az iot dps policy update --dps-name MyDps --resource-group MyResourceGroup --policy-name MyPolicy --primary-key "" --secondary-key ""
Required Parameters
IoT Hub Device Provisioning Service name.
A friendly name for DPS access policy.
Optional Parameters
Do not wait for the long-running operation to finish.
Primary SAS key value. Set to empty string in order to regenerate a new primary key.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Access rights for the IoT Hub Device Provisioning Service. Use space-separated list for multiple rights.
Secondary SAS key value. Set to empty string in order to regenerate a new secondary key.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.