Microsoft.Devices (preview:2025-02-01)

2025/07/25 • 5 updated methods

IotDpsResource_ListBySubscription (updated)
Description List all the provisioning services for a given subscription id.
Reference Link ¶

⚶ Changes

{
  "#id": "IotDpsResource_ListBySubscription",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "iotHubs": {
                  "$properties": [
                    {
                      "#name": "connectionString",
                      "Required": {
                        "new": true,
                        "old": false
                      }
                    },
                    {
                      "@removed_3385887f37de41cabac4f955380c02ec": {
                        "#name": "authenticationType",
                        "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                        "Enum": [
                          [
                            "KeyBased",
                            ""
                          ],
                          [
                            "UserAssigned",
                            ""
                          ],
                          [
                            "SystemAssigned",
                            ""
                          ]
                        ],
                        "Required": false,
                        "Type": "string"
                      }
                    },
                    {
                      "@removed_41625f2e5d15483f9f51f767ede8cae0": {
                        "#name": "selectedUserAssignedIdentityResourceId",
                        "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                        "Format": "arm-id",
                        "Required": false,
                        "Type": "string"
                      }
                    }
                  ]
                }
              },
              {
                "@added_f728765468c742c181456f756b6e35b3": {
                  "#name": "deviceRegistryNamespace",
                  "Description": "The Device Registry namespace that is linked to the provisioning service.",
                  "Required": false,
                  "Type": "object",
                  "$properties": [
                    {
                      "#name": "resourceId",
                      "Description": "The ARM resource ID of the Device Registry namespace.",
                      "Format": "arm-id",
                      "Required": true,
                      "Type": "string"
                    },
                    {
                      "#name": "authenticationType",
                      "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                      "Enum": [
                        [
                          "UserAssigned",
                          "User assigned authentication type."
                        ],
                        [
                          "SystemAssigned",
                          "System assigned authentication type."
                        ]
                      ],
                      "Required": true,
                      "Type": "string"
                    },
                    {
                      "#name": "selectedUserAssignedIdentityResourceId",
                      "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                      "Format": "arm-id",
                      "Required": false,
                      "Type": "string"
                    }
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices
{
api-version: string ,
subscriptionId: string ,
}

⚐ Response (200)

{
value:
[
{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
code: integer ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotDpsResource_ListByResourceGroup (updated)
Description Get a list of all provisioning services in the given resource group.
Reference Link ¶

⚶ Changes

{
  "#id": "IotDpsResource_ListByResourceGroup",
  "$responses": {
    "200": {
      "$properties": {
        "value": {
          "$properties": {
            "properties": [
              {
                "iotHubs": {
                  "$properties": [
                    {
                      "#name": "connectionString",
                      "Required": {
                        "new": true,
                        "old": false
                      }
                    },
                    {
                      "@removed_f17b865eef3e45729ccb5fb3a5599d35": {
                        "#name": "authenticationType",
                        "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                        "Enum": [
                          [
                            "KeyBased",
                            ""
                          ],
                          [
                            "UserAssigned",
                            ""
                          ],
                          [
                            "SystemAssigned",
                            ""
                          ]
                        ],
                        "Required": false,
                        "Type": "string"
                      }
                    },
                    {
                      "@removed_43c16678cd7d49f3aa642d9c6daec057": {
                        "#name": "selectedUserAssignedIdentityResourceId",
                        "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                        "Format": "arm-id",
                        "Required": false,
                        "Type": "string"
                      }
                    }
                  ]
                }
              },
              {
                "@added_e3295ed53be44fc8b92a6078436674e1": {
                  "#name": "deviceRegistryNamespace",
                  "Description": "The Device Registry namespace that is linked to the provisioning service.",
                  "Required": false,
                  "Type": "object",
                  "$properties": [
                    {
                      "#name": "resourceId",
                      "Description": "The ARM resource ID of the Device Registry namespace.",
                      "Format": "arm-id",
                      "Required": true,
                      "Type": "string"
                    },
                    {
                      "#name": "authenticationType",
                      "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                      "Enum": [
                        [
                          "UserAssigned",
                          "User assigned authentication type."
                        ],
                        [
                          "SystemAssigned",
                          "System assigned authentication type."
                        ]
                      ],
                      "Required": true,
                      "Type": "string"
                    },
                    {
                      "#name": "selectedUserAssignedIdentityResourceId",
                      "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                      "Format": "arm-id",
                      "Required": false,
                      "Type": "string"
                    }
                  ]
                }
              }
            ]
          }
        }
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
}

⚐ Response (200)

{
value:
[
{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
]
,
nextLink: string ,
}

⚐ Response (default)

{
code: integer ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotDpsResource_Get (updated)
Description Get the metadata of the provisioning service without SAS keys.
Reference Link ¶

⚶ Changes

{
  "#id": "IotDpsResource_Get",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "iotHubs": {
              "$properties": [
                {
                  "#name": "connectionString",
                  "Required": {
                    "new": true,
                    "old": false
                  }
                },
                {
                  "@removed_b61cb5eaf43b48fa81d6110ba888406c": {
                    "#name": "authenticationType",
                    "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                    "Enum": [
                      [
                        "KeyBased",
                        ""
                      ],
                      [
                        "UserAssigned",
                        ""
                      ],
                      [
                        "SystemAssigned",
                        ""
                      ]
                    ],
                    "Required": false,
                    "Type": "string"
                  }
                },
                {
                  "@removed_7818c7473c59465bb0fb305c4065823a": {
                    "#name": "selectedUserAssignedIdentityResourceId",
                    "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                    "Format": "arm-id",
                    "Required": false,
                    "Type": "string"
                  }
                }
              ]
            }
          },
          {
            "@added_d54988e63e6346bf88bd67b44917461c": {
              "#name": "deviceRegistryNamespace",
              "Description": "The Device Registry namespace that is linked to the provisioning service.",
              "Required": false,
              "Type": "object",
              "$properties": [
                {
                  "#name": "resourceId",
                  "Description": "The ARM resource ID of the Device Registry namespace.",
                  "Format": "arm-id",
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "authenticationType",
                  "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                  "Enum": [
                    [
                      "UserAssigned",
                      "User assigned authentication type."
                    ],
                    [
                      "SystemAssigned",
                      "System assigned authentication type."
                    ]
                  ],
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "selectedUserAssignedIdentityResourceId",
                  "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                  "Format": "arm-id",
                  "Required": false,
                  "Type": "string"
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

GET:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
provisioningServiceName: string ,
}

⚐ Response (200)

{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (default)

{
code: integer ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotDpsResource_CreateOrUpdate (updated)
Description Create 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.
Reference Link ¶

⚶ Changes

{
  "#id": "IotDpsResource_CreateOrUpdate",
  "$parameters": {
    "iotDpsDescription": {
      "$properties": {
        "properties": [
          {
            "iotHubs": {
              "$properties": [
                {
                  "#name": "connectionString",
                  "Required": {
                    "new": true,
                    "old": false
                  }
                },
                {
                  "@removed_6ea4c64b915146f1a8e6e51fc717c2cb": {
                    "#name": "authenticationType",
                    "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                    "Enum": [
                      [
                        "KeyBased",
                        ""
                      ],
                      [
                        "UserAssigned",
                        ""
                      ],
                      [
                        "SystemAssigned",
                        ""
                      ]
                    ],
                    "Required": false,
                    "Type": "string"
                  }
                },
                {
                  "@removed_7ec3adb8ba004c37900a4e5373d8b946": {
                    "#name": "selectedUserAssignedIdentityResourceId",
                    "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                    "Format": "arm-id",
                    "Required": false,
                    "Type": "string"
                  }
                }
              ]
            }
          },
          {
            "@added_29da6d5383d3463cb62e9e914ecea364": {
              "#name": "deviceRegistryNamespace",
              "Description": "The Device Registry namespace that is linked to the provisioning service.",
              "Required": false,
              "Type": "object",
              "$properties": [
                {
                  "#name": "resourceId",
                  "Description": "The ARM resource ID of the Device Registry namespace.",
                  "Format": "arm-id",
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "authenticationType",
                  "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                  "Enum": [
                    [
                      "UserAssigned",
                      "User assigned authentication type."
                    ],
                    [
                      "SystemAssigned",
                      "System assigned authentication type."
                    ]
                  ],
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "selectedUserAssignedIdentityResourceId",
                  "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                  "Format": "arm-id",
                  "Required": false,
                  "Type": "string"
                }
              ]
            }
          }
        ]
      }
    }
  },
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "iotHubs": {
              "$properties": [
                {
                  "#name": "connectionString",
                  "Required": {
                    "new": true,
                    "old": false
                  }
                },
                {
                  "@removed_6ca10089c5a649209223fc954f4505bd": {
                    "#name": "authenticationType",
                    "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                    "Enum": [
                      [
                        "KeyBased",
                        ""
                      ],
                      [
                        "UserAssigned",
                        ""
                      ],
                      [
                        "SystemAssigned",
                        ""
                      ]
                    ],
                    "Required": false,
                    "Type": "string"
                  }
                },
                {
                  "@removed_a9ae27fd013341f7b438b7e569de7b4b": {
                    "#name": "selectedUserAssignedIdentityResourceId",
                    "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                    "Format": "arm-id",
                    "Required": false,
                    "Type": "string"
                  }
                }
              ]
            }
          },
          {
            "@added_17c452760ffc422abce886cd5577690b": {
              "#name": "deviceRegistryNamespace",
              "Description": "The Device Registry namespace that is linked to the provisioning service.",
              "Required": false,
              "Type": "object",
              "$properties": [
                {
                  "#name": "resourceId",
                  "Description": "The ARM resource ID of the Device Registry namespace.",
                  "Format": "arm-id",
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "authenticationType",
                  "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                  "Enum": [
                    [
                      "UserAssigned",
                      "User assigned authentication type."
                    ],
                    [
                      "SystemAssigned",
                      "System assigned authentication type."
                    ]
                  ],
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "selectedUserAssignedIdentityResourceId",
                  "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                  "Format": "arm-id",
                  "Required": false,
                  "Type": "string"
                }
              ]
            }
          }
        ]
      }
    },
    "201": {
      "$properties": {
        "properties": [
          {
            "iotHubs": {
              "$properties": [
                {
                  "#name": "connectionString",
                  "Required": {
                    "new": true,
                    "old": false
                  }
                },
                {
                  "@removed_48e87d14f858401aa057b5e4b2a7cf29": {
                    "#name": "authenticationType",
                    "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                    "Enum": [
                      [
                        "KeyBased",
                        ""
                      ],
                      [
                        "UserAssigned",
                        ""
                      ],
                      [
                        "SystemAssigned",
                        ""
                      ]
                    ],
                    "Required": false,
                    "Type": "string"
                  }
                },
                {
                  "@removed_8baa0ef90dd2494e9213a74c3fb49aaa": {
                    "#name": "selectedUserAssignedIdentityResourceId",
                    "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                    "Format": "arm-id",
                    "Required": false,
                    "Type": "string"
                  }
                }
              ]
            }
          },
          {
            "@added_391282b289414760bec1d4ef3ce52db9": {
              "#name": "deviceRegistryNamespace",
              "Description": "The Device Registry namespace that is linked to the provisioning service.",
              "Required": false,
              "Type": "object",
              "$properties": [
                {
                  "#name": "resourceId",
                  "Description": "The ARM resource ID of the Device Registry namespace.",
                  "Format": "arm-id",
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "authenticationType",
                  "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                  "Enum": [
                    [
                      "UserAssigned",
                      "User assigned authentication type."
                    ],
                    [
                      "SystemAssigned",
                      "System assigned authentication type."
                    ]
                  ],
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "selectedUserAssignedIdentityResourceId",
                  "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                  "Format": "arm-id",
                  "Required": false,
                  "Type": "string"
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PUT:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
provisioningServiceName: string ,
iotDpsDescription:
{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (200)

{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}

⚐ Response (201)

{
$headers:
{
location: string ,
retry-after: integer ,
}
,
$schema:
{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
code: integer ,
httpStatusCode: string ,
message: string ,
details: string ,
}
IotDpsResource_Update (updated)
Description Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
Reference Link ¶

⚶ Changes

{
  "#id": "IotDpsResource_Update",
  "$responses": {
    "200": {
      "$properties": {
        "properties": [
          {
            "iotHubs": {
              "$properties": [
                {
                  "#name": "connectionString",
                  "Required": {
                    "new": true,
                    "old": false
                  }
                },
                {
                  "@removed_c1ae347184094918bdbf02ea37bbcff3": {
                    "#name": "authenticationType",
                    "Description": "IotHub MI authentication type: KeyBased, UserAssigned, SystemAssigned.",
                    "Enum": [
                      [
                        "KeyBased",
                        ""
                      ],
                      [
                        "UserAssigned",
                        ""
                      ],
                      [
                        "SystemAssigned",
                        ""
                      ]
                    ],
                    "Required": false,
                    "Type": "string"
                  }
                },
                {
                  "@removed_6060bbfd715347538fd85d499ec99aae": {
                    "#name": "selectedUserAssignedIdentityResourceId",
                    "Description": "The selected user-assigned identity resource Id associated with IoT Hub. This is required when authenticationType is UserAssigned.",
                    "Format": "arm-id",
                    "Required": false,
                    "Type": "string"
                  }
                }
              ]
            }
          },
          {
            "@added_9a379a717afb4c3ba4251cd4d96f1d8a": {
              "#name": "deviceRegistryNamespace",
              "Description": "The Device Registry namespace that is linked to the provisioning service.",
              "Required": false,
              "Type": "object",
              "$properties": [
                {
                  "#name": "resourceId",
                  "Description": "The ARM resource ID of the Device Registry namespace.",
                  "Format": "arm-id",
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "authenticationType",
                  "Description": "Device Registry Namespace MI authentication type: UserAssigned, SystemAssigned.",
                  "Enum": [
                    [
                      "UserAssigned",
                      "User assigned authentication type."
                    ],
                    [
                      "SystemAssigned",
                      "System assigned authentication type."
                    ]
                  ],
                  "Required": true,
                  "Type": "string"
                },
                {
                  "#name": "selectedUserAssignedIdentityResourceId",
                  "Description": "The selected user-assigned identity resource Id associated with Device Registry namespace. This is required when authenticationType is UserAssigned.",
                  "Format": "arm-id",
                  "Required": false,
                  "Type": "string"
                }
              ]
            }
          }
        ]
      }
    }
  }
}

⚼ Request

PATCH:  /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}
{
api-version: string ,
subscriptionId: string ,
resourceGroupName: string ,
provisioningServiceName: string ,
ProvisioningServiceTags:
{
tags: object ,
}
,
}

⚐ Response (200)

{
$headers:
{
location: string ,
}
,
$schema:
{
etag: string ,
resourcegroup: string ,
subscriptionid: string ,
properties:
{
state: enum ,
publicNetworkAccess: enum ,
ipFilterRules:
[
{
filterName: string ,
action: enum ,
ipMask: string ,
target: enum ,
}
,
]
,
privateEndpointConnections:
[
{
properties:
{
privateEndpoint:
{
id: string ,
}
,
privateLinkServiceConnectionState:
{
status: enum ,
description: string ,
actionsRequired: string ,
}
,
}
,
}
,
]
,
provisioningState: string ,
iotHubs:
[
{
applyAllocationPolicy: boolean ,
allocationWeight: integer ,
name: string ,
connectionString: string ,
location: string ,
}
,
]
,
deviceRegistryNamespace:
{
resourceId: string ,
authenticationType: enum ,
selectedUserAssignedIdentityResourceId: string ,
}
,
allocationPolicy: enum ,
serviceOperationsHostName: string ,
deviceProvisioningHostName: string ,
idScope: string ,
authorizationPolicies:
[
{
keyName: string ,
primaryKey: string ,
secondaryKey: string ,
rights: enum ,
}
,
]
,
enableDataResidency: boolean ,
portalOperationsHostName: string ,
}
,
sku:
{
name: enum ,
tier: string ,
capacity: integer ,
}
,
identity:
{
principalId: string ,
tenantId: string ,
type: enum ,
userAssignedIdentities: object ,
}
,
}
,
}

⚐ Response (default)

{
error:
{
code: string ,
message: string ,
target: string ,
details:
[
string ,
]
,
additionalInfo:
[
{
type: string ,
info: object ,
}
,
]
,
}
,
}