Microsoft.ContainerService 快照 2025-03-02-preview

Bicep 資源定義

快照集資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。

資源格式

若要建立 Microsoft.ContainerService/snapshots 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.ContainerService/snapshots@2025-03-02-preview' = {
  location: 'string'
  name: 'string'
  properties: {
    creationData: {
      sourceResourceId: 'string'
    }
    snapshotType: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.ContainerService/snapshots

Name Description Value
位置 資源所在的地理位置 字串 (必要)
name 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 63
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必要)
properties 快照集的屬性。 SnapshotProperties
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

CreationData

Name Description Value
sourceResourceId 這是要用來建立目標物件的來源物件的 ARM 識別碼。 字串

SnapshotProperties

Name Description Value
creationData 要用來指定來源代理程式集區資源標識碼以建立此快照集的 CreationData。 CreationData
snapshotType 快照集的類型。 預設值為 NodePool。 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value

ARM 樣本資源定義

快照集資源類型可以使用目標作業來部署:

使用範例

資源格式

若要建立 Microsoft.ContainerService/snapshots 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.ContainerService/snapshots",
  "apiVersion": "2025-03-02-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "creationData": {
      "sourceResourceId": "string"
    },
    "snapshotType": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.ContainerService/snapshots

Name Description Value
apiVersion API 版本 '2025-03-02-preview'
位置 資源所在的地理位置 字串 (必要)
name 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 63
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必要)
properties 快照集的屬性。 SnapshotProperties
tags 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
型別 資源類型 'Microsoft.ContainerService/snapshots'

CreationData

Name Description Value
sourceResourceId 這是要用來建立目標物件的來源物件的 ARM 識別碼。 字串

SnapshotProperties

Name Description Value
creationData 要用來指定來源代理程式集區資源標識碼以建立此快照集的 CreationData。 CreationData
snapshotType 快照集的類型。 預設值為 NodePool。 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value

Terraform (AzAPI 提供者) 資源定義

快照集資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

若要建立 Microsoft.ContainerService/snapshots 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/snapshots@2025-03-02-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      creationData = {
        sourceResourceId = "string"
      }
      snapshotType = "string"
    }
  }
}

屬性值

Microsoft.ContainerService/snapshots

Name Description Value
位置 資源所在的地理位置 字串 (必要)
name 資源名稱 string

Constraints:
最小長度 = 1
最大長度 = 63
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$ (必要)
properties 快照集的屬性。 SnapshotProperties
tags 資源標籤 標記名稱和值的字典。
型別 資源類型 "Microsoft.ContainerService/snapshots@2025-03-02-preview"

CreationData

Name Description Value
sourceResourceId 這是要用來建立目標物件的來源物件的 ARM 識別碼。 字串

SnapshotProperties

Name Description Value
creationData 要用來指定來源代理程式集區資源標識碼以建立此快照集的 CreationData。 CreationData
snapshotType 快照集的類型。 預設值為 NodePool。 'ManagedCluster'
'NodePool'

TrackedResourceTags

Name Description Value