Skip to main content

iot_dps_resources

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

Overview

Nameiot_dps_resources
TypeResource
Idazure.iot_hub_device_provisioning.iot_dps_resources

Fields

NameDatatypeDescription
idtextFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
nametextThe name of the resource
allocation_policytextfield from the properties object
authorization_policiestextfield from the properties object
device_provisioning_host_nametextfield from the properties object
enable_data_residencytextfield from the properties object
etagtextThe Etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention.
id_scopetextfield from the properties object
identitytextManaged service identity (system assigned and/or user assigned identities)
iot_hubstextfield from the properties object
ip_filter_rulestextfield from the properties object
portal_operations_host_nametextfield from the properties object
private_endpoint_connectionstextfield from the properties object
provisioningServiceNametextfield from the properties object
provisioning_statetextfield from the properties object
public_network_accesstextfield from the properties object
resourceGroupNametextfield from the properties object
service_operations_host_nametextfield from the properties object
skutextList of possible provisioning service SKUs.
statetextfield from the properties object
subscriptionIdtextfield from the properties object
system_datatextfield from the properties object
typetextThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Methods

NameAccessible byRequired ParamsDescription
getSELECTprovisioningServiceName, resourceGroupName, subscriptionIdGet the metadata of the provisioning service without SAS keys.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGet a list of all provisioning services in the given resource group.
list_by_subscriptionSELECTsubscriptionIdList all the provisioning services for a given subscription id.
create_or_updateINSERTprovisioningServiceName, resourceGroupName, subscriptionId, data__properties, data__skuCreate or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service.
deleteDELETEprovisioningServiceName, resourceGroupName, subscriptionIdDeletes the Provisioning Service.
updateUPDATEprovisioningServiceName, resourceGroupName, subscriptionIdUpdate an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
check_provisioning_service_name_availabilityEXECsubscriptionId, data__nameCheck if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable

SELECT examples

List all the provisioning services for a given subscription id.

SELECT
id,
name,
allocation_policy,
authorization_policies,
device_provisioning_host_name,
enable_data_residency,
etag,
id_scope,
identity,
iot_hubs,
ip_filter_rules,
portal_operations_host_name,
private_endpoint_connections,
provisioningServiceName,
provisioning_state,
public_network_access,
resourceGroupName,
service_operations_host_name,
sku,
state,
subscriptionId,
system_data,
type
FROM azure.iot_hub_device_provisioning.vw_iot_dps_resources
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new iot_dps_resources resource.

/*+ create */
INSERT INTO azure.iot_hub_device_provisioning.iot_dps_resources (
provisioningServiceName,
resourceGroupName,
subscriptionId,
data__properties,
data__sku,
etag,
properties,
sku,
identity
)
SELECT
'{{ provisioningServiceName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ data__sku }}',
'{{ etag }}',
'{{ properties }}',
'{{ sku }}',
'{{ identity }}'
;

UPDATE example

Updates a iot_dps_resources resource.

/*+ update */
UPDATE azure.iot_hub_device_provisioning.iot_dps_resources
SET
tags = '{{ tags }}'
WHERE
provisioningServiceName = '{{ provisioningServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified iot_dps_resources resource.

/*+ delete */
DELETE FROM azure.iot_hub_device_provisioning.iot_dps_resources
WHERE provisioningServiceName = '{{ provisioningServiceName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';