Skip to main content

iot_dps_resource_keys

Creates, updates, deletes, gets or lists a iot_dps_resource_keys resource.

Overview

Nameiot_dps_resource_keys
TypeResource
Idazure.iot_hub_device_provisioning.iot_dps_resource_keys

Fields

NameDatatypeDescription
keyNamestringName of the key.
primaryKeystringPrimary SAS key value.
rightsstringRights that this key has.
secondaryKeystringSecondary SAS key value.

Methods

NameAccessible byRequired ParamsDescription
listSELECTprovisioningServiceName, resourceGroupName, subscriptionIdList the primary and secondary keys for a provisioning service.

SELECT examples

List the primary and secondary keys for a provisioning service.

SELECT
keyName,
primaryKey,
rights,
secondaryKey
FROM azure.iot_hub_device_provisioning.iot_dps_resource_keys
WHERE provisioningServiceName = '{{ provisioningServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';