Bicep 資源定義
updateInstances 資源類型可部署於以下操作中:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
要建立一個 Microsoft.DeviceUpdate/updateInstances 資源,請將以下 Bicep 加入你的範本。
resource symbolicname 'Microsoft.DeviceUpdate/updateInstances@2026-11-02-preview' = {
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
location: 'string'
name: 'string'
properties: {}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft。裝置更新/更新實例
| Name | Description | 價值 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 3 最大長度 = 36 模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要) |
| 屬性 | 此資源的資源特定屬性。 | UpdateInstanceProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
ManagedServiceIdentity
| Name | Description | 價值 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | 價值 |
|---|
TrackedResourceTags
| Name | Description | 價值 |
|---|
UpdateInstanceProperties
| Name | Description | 價值 |
|---|
UserAssignedIdentity
| Name | Description | 價值 |
|---|
ARM 樣本資源定義
updateInstances 資源類型可部署於以下操作中:
使用範例
資源格式
要建立一個 Microsoft.DeviceUpdate/updateInstances 資源,請將以下 JSON 加入你的範本。
{
"type": "Microsoft.DeviceUpdate/updateInstances",
"apiVersion": "2026-11-02-preview",
"name": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {
}
}
},
"location": "string",
"properties": {
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft。裝置更新/更新實例
| Name | Description | 價值 |
|---|---|---|
| apiVersion | API 版本 | 『2026-11-02-預覽』 |
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 3 最大長度 = 36 模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要) |
| 屬性 | 此資源的資源特定屬性。 | UpdateInstanceProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | 「Microsoft。裝置更新/更新實例」 |
ManagedServiceIdentity
| Name | Description | 價值 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | 價值 |
|---|
TrackedResourceTags
| Name | Description | 價值 |
|---|
UpdateInstanceProperties
| Name | Description | 價值 |
|---|
UserAssignedIdentity
| Name | Description | 價值 |
|---|
Terraform (AzAPI 提供者) 資源定義
updateInstances 資源類型可部署於以下操作中:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
要建立一個 Microsoft.DeviceUpdate/updateInstances 資源,請將以下 Terraform 加入你的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.DeviceUpdate/updateInstances@2026-11-02-preview"
name = "string"
parent_id = "string"
identity {
type = "string"
identity_ids = [
"string"
]
}
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
}
}
}
屬性值
Microsoft。裝置更新/更新實例
| Name | Description | 價值 |
|---|---|---|
| 身分識別 | 指派給此資源的受控服務識別。 | ManagedServiceIdentity |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 最小長度 = 3 最大長度 = 36 模式 = ^[A-Za-z0-9]+(-[A-Za-z0-9]+)*$ (必要) |
| 屬性 | 此資源的資源特定屬性。 | UpdateInstanceProperties |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft。裝置更新/updateInstances@2026-11-02-預覽」 |
ManagedServiceIdentity
| Name | Description | 價值 |
|---|---|---|
| 型別 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | “無” “系統分配” 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
| userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 的字典鍵將是 ARM 資源 ID,形式為:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. 字典值可以是要求中的空白物件({})。 | ManagedServiceIdentityUserAssignedIdentities |
ManagedServiceIdentityUserAssignedIdentities
| Name | Description | 價值 |
|---|
TrackedResourceTags
| Name | Description | 價值 |
|---|
UpdateInstanceProperties
| Name | Description | 價值 |
|---|
UserAssignedIdentity
| Name | Description | 價值 |
|---|