Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The provisioningServices resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Devices/provisioningServices resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Devices/provisioningServices@2017-08-21-preview' = {
etag: 'string'
location: 'string'
name: 'string'
properties: {
allocationPolicy: 'string'
authorizationPolicies: [
{
keyName: 'string'
primaryKey: 'string'
rights: 'string'
secondaryKey: 'string'
}
]
iotHubs: [
{
allocationWeight: int
applyAllocationPolicy: bool
connectionString: 'string'
location: 'string'
}
]
provisioningState: 'string'
state: 'string'
}
sku: {
capacity: int
name: 'string'
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.Devices/provisioningServices
Name | Description | Value |
---|---|---|
etag | The 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. | string |
location | The resource location. | string (required) |
name | The resource name | string (required) |
properties | IotDpsPropertiesDescription (required) | |
sku | List of possible provisioning service SKUs. | IotDpsSkuInfo (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
IotDpsPropertiesDescription
Name | Description | Value |
---|---|---|
allocationPolicy | Allocation policy to be used by this provisioning service. | 'GeoLatency' 'Hashed' 'Static' |
authorizationPolicies | SharedAccessSignatureAuthorizationRuleAccessRightsDescription[] | |
iotHubs | List of IoT hubs associated with this provisioning service. | IotHubDefinitionDescription[] |
provisioningState | The ARM provisioning state of the provisioning service. | string |
state | Current state of the provisioning service. | 'Activating' 'ActivationFailed' 'Active' 'Deleted' 'Deleting' 'DeletionFailed' 'FailingOver' 'FailoverFailed' 'Resuming' 'Suspended' 'Suspending' 'Transitioning' |
IotDpsSkuInfo
Name | Description | Value |
---|---|---|
capacity | The number of services of the selected tier allowed in the subscription. | int |
name | 'S1' |
IotHubDefinitionDescription
Name | Description | Value |
---|---|---|
allocationWeight | int | |
applyAllocationPolicy | bool | |
connectionString | Connection string og the IoT hub. | string (required) |
location | ARM region of the IoT hub. | string (required) |
ResourceTags
Name | Description | Value |
---|
SharedAccessSignatureAuthorizationRuleAccessRightsDescription
Name | Description | Value |
---|---|---|
keyName | Name of the key. | string (required) |
primaryKey | Primary SAS key value. | string |
rights | Rights that this key has. | 'DeviceConnect' 'EnrollmentRead' 'EnrollmentWrite' 'RegistrationStatusRead' 'RegistrationStatusWrite' 'ServiceConfig' (required) |
secondaryKey | Secondary SAS key value. | string |
Usage Examples
Azure Quickstart Samples
The following Azure Quickstart templates contain Bicep samples for deploying this resource type.
Bicep File | Description |
---|---|
Create an IoT Hub Device Provisioning Service | This template enables you to create an IoT hub and an IoT Hub Device Provisioning Service, and link the two services together. |
ARM template resource definition
The provisioningServices resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Devices/provisioningServices resource, add the following JSON to your template.
{
"type": "Microsoft.Devices/provisioningServices",
"apiVersion": "2017-08-21-preview",
"name": "string",
"etag": "string",
"location": "string",
"properties": {
"allocationPolicy": "string",
"authorizationPolicies": [
{
"keyName": "string",
"primaryKey": "string",
"rights": "string",
"secondaryKey": "string"
}
],
"iotHubs": [
{
"allocationWeight": "int",
"applyAllocationPolicy": "bool",
"connectionString": "string",
"location": "string"
}
],
"provisioningState": "string",
"state": "string"
},
"sku": {
"capacity": "int",
"name": "string"
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.Devices/provisioningServices
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2017-08-21-preview' |
etag | The 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. | string |
location | The resource location. | string (required) |
name | The resource name | string (required) |
properties | IotDpsPropertiesDescription (required) | |
sku | List of possible provisioning service SKUs. | IotDpsSkuInfo (required) |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.Devices/provisioningServices' |
IotDpsPropertiesDescription
Name | Description | Value |
---|---|---|
allocationPolicy | Allocation policy to be used by this provisioning service. | 'GeoLatency' 'Hashed' 'Static' |
authorizationPolicies | SharedAccessSignatureAuthorizationRuleAccessRightsDescription[] | |
iotHubs | List of IoT hubs associated with this provisioning service. | IotHubDefinitionDescription[] |
provisioningState | The ARM provisioning state of the provisioning service. | string |
state | Current state of the provisioning service. | 'Activating' 'ActivationFailed' 'Active' 'Deleted' 'Deleting' 'DeletionFailed' 'FailingOver' 'FailoverFailed' 'Resuming' 'Suspended' 'Suspending' 'Transitioning' |
IotDpsSkuInfo
Name | Description | Value |
---|---|---|
capacity | The number of services of the selected tier allowed in the subscription. | int |
name | 'S1' |
IotHubDefinitionDescription
Name | Description | Value |
---|---|---|
allocationWeight | int | |
applyAllocationPolicy | bool | |
connectionString | Connection string og the IoT hub. | string (required) |
location | ARM region of the IoT hub. | string (required) |
ResourceTags
Name | Description | Value |
---|
SharedAccessSignatureAuthorizationRuleAccessRightsDescription
Name | Description | Value |
---|---|---|
keyName | Name of the key. | string (required) |
primaryKey | Primary SAS key value. | string |
rights | Rights that this key has. | 'DeviceConnect' 'EnrollmentRead' 'EnrollmentWrite' 'RegistrationStatusRead' 'RegistrationStatusWrite' 'ServiceConfig' (required) |
secondaryKey | Secondary SAS key value. | string |
Usage Examples
Azure Quickstart Templates
The following Azure Quickstart templates deploy this resource type.
Template | Description |
---|---|
Create an IOT Hub and Ubuntu edge simulator |
This template creates an IOT Hub and Virtual Machine Ubuntu edge simulator. |
Create an IoT Hub Device Provisioning Service |
This template enables you to create an IoT hub and an IoT Hub Device Provisioning Service, and link the two services together. |
Terraform (AzAPI provider) resource definition
The provisioningServices resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.Devices/provisioningServices resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Devices/provisioningServices@2017-08-21-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
etag = "string"
properties = {
allocationPolicy = "string"
authorizationPolicies = [
{
keyName = "string"
primaryKey = "string"
rights = "string"
secondaryKey = "string"
}
]
iotHubs = [
{
allocationWeight = int
applyAllocationPolicy = bool
connectionString = "string"
location = "string"
}
]
provisioningState = "string"
state = "string"
}
sku = {
capacity = int
name = "string"
}
}
}
Property Values
Microsoft.Devices/provisioningServices
Name | Description | Value |
---|---|---|
etag | The 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. | string |
location | The resource location. | string (required) |
name | The resource name | string (required) |
properties | IotDpsPropertiesDescription (required) | |
sku | List of possible provisioning service SKUs. | IotDpsSkuInfo (required) |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.Devices/provisioningServices@2017-08-21-preview" |
IotDpsPropertiesDescription
Name | Description | Value |
---|---|---|
allocationPolicy | Allocation policy to be used by this provisioning service. | 'GeoLatency' 'Hashed' 'Static' |
authorizationPolicies | SharedAccessSignatureAuthorizationRuleAccessRightsDescription[] | |
iotHubs | List of IoT hubs associated with this provisioning service. | IotHubDefinitionDescription[] |
provisioningState | The ARM provisioning state of the provisioning service. | string |
state | Current state of the provisioning service. | 'Activating' 'ActivationFailed' 'Active' 'Deleted' 'Deleting' 'DeletionFailed' 'FailingOver' 'FailoverFailed' 'Resuming' 'Suspended' 'Suspending' 'Transitioning' |
IotDpsSkuInfo
Name | Description | Value |
---|---|---|
capacity | The number of services of the selected tier allowed in the subscription. | int |
name | 'S1' |
IotHubDefinitionDescription
Name | Description | Value |
---|---|---|
allocationWeight | int | |
applyAllocationPolicy | bool | |
connectionString | Connection string og the IoT hub. | string (required) |
location | ARM region of the IoT hub. | string (required) |
ResourceTags
Name | Description | Value |
---|
SharedAccessSignatureAuthorizationRuleAccessRightsDescription
Name | Description | Value |
---|---|---|
keyName | Name of the key. | string (required) |
primaryKey | Primary SAS key value. | string |
rights | Rights that this key has. | 'DeviceConnect' 'EnrollmentRead' 'EnrollmentWrite' 'RegistrationStatusRead' 'RegistrationStatusWrite' 'ServiceConfig' (required) |
secondaryKey | Secondary SAS key value. | string |