Bicep 資源定義
applyUpdates 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Maintenance/applyUpdates 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Maintenance/applyUpdates@2023-10-01-preview' = {
scope: resourceSymbolicName or scope
name: 'string'
properties: {
lastUpdateTime: 'string'
resourceId: 'string'
status: 'string'
}
}
屬性值
Microsoft.Maintenance/applyUpdates
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | 套用更新的屬性 | ApplyUpdateProperties |
| 範圍 | 在與部署範圍不同的範圍內建立資源時,請使用 。 | 將此屬性設定為資源的符號名稱,以套用 擴充資源。 |
ApplyUpdateProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 最後更新時間 | 上次更新時間 | 字串 |
| 資源ID | resourceId | 字串 |
| 地位 | 狀態 | '取消' '已取消' “已完成” “進行中” “NoUpdatesPending” “待定” 'RetryLater' “立即重試” |
ARM 樣本資源定義
applyUpdates 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Maintenance/applyUpdates 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Maintenance/applyUpdates",
"apiVersion": "2023-10-01-preview",
"name": "string",
"properties": {
"lastUpdateTime": "string",
"resourceId": "string",
"status": "string"
}
}
屬性值
Microsoft.Maintenance/applyUpdates
| 名字 | 描述 | 價值 |
|---|---|---|
| apiVersion | API 版本 | “2023-10-01-預覽” |
| 名字 | 資源名稱 | 字串 (必要) |
| 性能 | 套用更新的屬性 | ApplyUpdateProperties |
| 類型 | 資源類型 | “Microsoft.Maintenance/applyUpdates” |
ApplyUpdateProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 最後更新時間 | 上次更新時間 | 字串 |
| 資源ID | resourceId | 字串 |
| 地位 | 狀態 | '取消' '已取消' “已完成” “進行中” “NoUpdatesPending” “待定” 'RetryLater' “立即重試” |
使用範例
Terraform (AzAPI 提供者) 資源定義
applyUpdates 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Maintenance/applyUpdates 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Maintenance/applyUpdates@2023-10-01-preview"
name = "string"
parent_id = "string"
body = {
properties = {
lastUpdateTime = "string"
resourceId = "string"
status = "string"
}
}
}
屬性值
Microsoft.Maintenance/applyUpdates
| 名字 | 描述 | 價值 |
|---|---|---|
| 名字 | 資源名稱 | 字串 (必要) |
| 父項識別碼 | 要套用此延伸模組資源之資源的標識碼。 | 字串 (必要) |
| 性能 | 套用更新的屬性 | ApplyUpdateProperties |
| 類型 | 資源類型 | “Microsoft.Maintenance/applyUpdates@2023-10-01-preview” |
ApplyUpdateProperties
| 名字 | 描述 | 價值 |
|---|---|---|
| 最後更新時間 | 上次更新時間 | 字串 |
| 資源ID | resourceId | 字串 |
| 地位 | 狀態 | '取消' '已取消' “已完成” “進行中” “NoUpdatesPending” “待定” 'RetryLater' “立即重試” |