共用方式為


Microsoft.Compute 資源庫/images/2018-06-01 版

Bicep 資源定義

資源庫/映射/版本資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.Compute/galleries/images/versions@2018-06-01' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    publishingProfile: {
      endOfLifeDate: 'string'
      excludeFromLatest: bool
      replicaCount: int
      source: {
        managedImage: {
          id: 'string'
        }
      }
      targetRegions: [
        {
          name: 'string'
          regionalReplicaCount: int
        }
      ]
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

GalleryArtifactSource

名字 描述 價值
managedImage 受控成品。 ManagedArtifact (必要)

GalleryImageVersionProperties

名字 描述 價值
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryImageVersionPublishingProfile (必要)

GalleryImageVersionPublishingProfile

名字 描述 價值
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 bool
replicaCount 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 int
要從中建立映像版本的來源映像。 GalleryArtifactSource (必要)
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

ManagedArtifact

名字 描述 價值
id 受控成品標識碼。 字串 (必要)

Microsoft.Compute/galleries/images/versions

名字 描述 價值
位置 資源位置 字串 (必要)
名字 資源名稱 字串 (必要)
父母 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱:資源庫/影像
性能 描述資源庫映像版本的屬性。 GalleryImageVersionProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ResourceTags

名字 描述 價值

TargetRegion

名字 描述 價值
名字 區域的名稱。 字串 (必要)
regionalReplicaCount 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 int

ARM 樣本資源定義

資源庫/映射/版本資源類型可以使用目標作業來部署:

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

資源格式

若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.Compute/galleries/images/versions",
  "apiVersion": "2018-06-01",
  "name": "string",
  "location": "string",
  "properties": {
    "publishingProfile": {
      "endOfLifeDate": "string",
      "excludeFromLatest": "bool",
      "replicaCount": "int",
      "source": {
        "managedImage": {
          "id": "string"
        }
      },
      "targetRegions": [
        {
          "name": "string",
          "regionalReplicaCount": "int"
        }
      ]
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

GalleryArtifactSource

名字 描述 價值
managedImage 受控成品。 ManagedArtifact (必要)

GalleryImageVersionProperties

名字 描述 價值
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryImageVersionPublishingProfile (必要)

GalleryImageVersionPublishingProfile

名字 描述 價值
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 bool
replicaCount 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 int
要從中建立映像版本的來源映像。 GalleryArtifactSource (必要)
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

ManagedArtifact

名字 描述 價值
id 受控成品標識碼。 字串 (必要)

Microsoft.Compute/galleries/images/versions

名字 描述 價值
apiVersion API 版本 '2018-06-01'
位置 資源位置 字串 (必要)
名字 資源名稱 字串 (必要)
性能 描述資源庫映像版本的屬性。 GalleryImageVersionProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.Compute/galleries/images/versions'

ResourceTags

名字 描述 價值

TargetRegion

名字 描述 價值
名字 區域的名稱。 字串 (必要)
regionalReplicaCount 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 int

快速入門範本

下列快速入門範本會部署此資源類型。

範本 描述
在 Azure 計算資源庫中建立映像版本

部署至 Azure
此範本可讓您在 Azure 計算資源庫中建立簡單的映像版本。 部署之前,請確定您已執行 Azure 計算資源庫 101 範本和映像定義 101 範本。

Terraform (AzAPI 提供者) 資源定義

資源庫/映射/版本資源類型可以使用目標作業來部署:

  • 資源群組

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

資源格式

若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/galleries/images/versions@2018-06-01"
  name = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      publishingProfile = {
        endOfLifeDate = "string"
        excludeFromLatest = bool
        replicaCount = int
        source = {
          managedImage = {
            id = "string"
          }
        }
        targetRegions = [
          {
            name = "string"
            regionalReplicaCount = int
          }
        ]
      }
    }
  })
}

屬性值

GalleryArtifactSource

名字 描述 價值
managedImage 受控成品。 ManagedArtifact (必要)

GalleryImageVersionProperties

名字 描述 價值
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryImageVersionPublishingProfile (必要)

GalleryImageVersionPublishingProfile

名字 描述 價值
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 bool
replicaCount 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 int
要從中建立映像版本的來源映像。 GalleryArtifactSource (必要)
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

ManagedArtifact

名字 描述 價值
id 受控成品標識碼。 字串 (必要)

Microsoft.Compute/galleries/images/versions

名字 描述 價值
位置 資源位置 字串 (必要)
名字 資源名稱 字串 (必要)
parent_id 此資源為父系之資源的標識碼。 類型資源的標識碼:資源庫/映像
性能 描述資源庫映像版本的屬性。 GalleryImageVersionProperties
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.Compute/galleries/images/versions@2018-06-01”

ResourceTags

名字 描述 價值

TargetRegion

名字 描述 價值
名字 區域的名稱。 字串 (必要)
regionalReplicaCount 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 int