你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Compute gallerys/images/versions

Bicep 资源定义

库/映像/版本资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/galleries/images/versions 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Compute/galleries/images/versions@2023-07-03' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  properties: {
    publishingProfile: {
      endOfLifeDate: 'string'
      excludeFromLatest: bool
      replicaCount: int
      replicationMode: 'string'
      storageAccountType: 'string'
      targetExtendedLocations: [
        {
          encryption: {
            dataDiskImages: [
              {
                diskEncryptionSetId: 'string'
                lun: int
              }
            ]
            osDiskImage: {
              diskEncryptionSetId: 'string'
              securityProfile: {
                confidentialVMEncryptionType: 'string'
                secureVMDiskEncryptionSetId: 'string'
              }
            }
          }
          extendedLocation: {
            name: 'string'
            type: 'string'
          }
          extendedLocationReplicaCount: int
          name: 'string'
          storageAccountType: 'string'
        }
      ]
      targetRegions: [
        {
          encryption: {
            dataDiskImages: [
              {
                diskEncryptionSetId: 'string'
                lun: int
              }
            ]
            osDiskImage: {
              diskEncryptionSetId: 'string'
              securityProfile: {
                confidentialVMEncryptionType: 'string'
                secureVMDiskEncryptionSetId: 'string'
              }
            }
          }
          excludeFromLatest: bool
          name: 'string'
          regionalReplicaCount: int
          storageAccountType: 'string'
        }
      ]
    }
    safetyProfile: {
      allowDeletionOfReplicatedLocations: bool
    }
    securityProfile: {
      uefiSettings: {
        additionalSignatures: {
          db: [
            {
              type: 'string'
              value: [
                'string'
              ]
            }
          ]
          dbx: [
            {
              type: 'string'
              value: [
                'string'
              ]
            }
          ]
          kek: [
            {
              type: 'string'
              value: [
                'string'
              ]
            }
          ]
          pk: {
            type: 'string'
            value: [
              'string'
            ]
          }
        }
        signatureTemplateNames: [
          'string'
        ]
      }
    }
    storageProfile: {
      dataDiskImages: [
        {
          hostCaching: 'string'
          lun: int
          source: {
            id: 'string'
            storageAccountId: 'string'
            uri: 'string'
          }
        }
      ]
      osDiskImage: {
        hostCaching: 'string'
        source: {
          id: 'string'
          storageAccountId: 'string'
          uri: 'string'
        }
      }
      source: {
        communityGalleryImageId: 'string'
        id: 'string'
        virtualMachineId: 'string'
      }
    }
  }
}

属性值

galleries/images/versions

名称 说明
name 资源名称

了解如何在 Bicep 中设置子资源的名称和类型。
字符串 (必需)

字符限制:32 位整数

有效字符:
数字和句点。
(每段都转换为 int32。因此,每段的最大值为 2,147,483,647。)
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为 的资源的符号名称: images
properties 描述库映像版本的属性。 GalleryImageVersionProperties

GalleryImageVersionProperties

名称 说明
publishingProfile 库映像版本的发布配置文件。 GalleryImageVersionPublishingProfile
safetyProfile 这是库映像版本的安全配置文件。 GalleryImageVersionSafetyProfile
securityProfile 库映像版本的安全配置文件 ImageVersionSecurityProfile
storageProfile 这是库映像版本的存储配置文件。 GalleryImageVersionStorageProfile (必需)

GalleryImageVersionPublishingProfile

名称 说明
endOfLifeDate 库映像版本的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。 字符串
excludeFromLatest 如果设置为 true,则从最新版本的映像定义部署虚拟机不会使用此映像版本。 bool
replicaCount 每个区域要创建的映像版本的副本数。 如果未指定 regionalReplicaCount,此属性将对区域生效。 此属性可更新。 int
replicationMode 可选参数,指定用于复制的模式。 此属性不可更新。 'Full'
'Shallow'
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”
targetExtendedLocations 映像版本要复制到的目标扩展位置。 此属性可更新。 GalleryTargetExtendedLocation[]
targetRegions 映像版本要复制到的目标区域。 此属性可更新。 TargetRegion[]

GalleryTargetExtendedLocation

名称 说明
加密 可选。 允许用户提供客户管理的密钥,用于加密库项目中的 OS 和数据磁盘。 EncryptionImages
extendedLocation 扩展位置的名称。 GalleryExtendedLocation
extendedLocationReplicaCount 每个扩展位置要创建的映像版本的副本数。 此属性可更新。 int
name 区域的名称。 字符串
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“StandardSSD_LRS”
“Standard_LRS”
“Standard_ZRS”

EncryptionImages

名称 说明
dataDiskImages 数据磁盘映像的加密规范列表。 DataDiskImageEncryption[]
osDiskImage 包含 OS 磁盘映像的加密设置。 OSDiskImageEncryption

DataDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)

OSDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
securityProfile 此属性指定 OS 磁盘映像的安全配置文件。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名称 说明
confidentialVMEncryptionType 机密 VM 加密类型 “EncryptedVMGuestStateOnlyWithPmk”
“EncryptedWithCmk”
“EncryptedWithPmk”
“NonPersistedTPM”
secureVMDiskEncryptionSetId 安全 VM 磁盘加密集 ID 字符串

GalleryExtendedLocation

名称 说明
name 字符串
type 它是扩展位置的类型。 “EdgeZone”
“未知”

TargetRegion

名称 说明
加密 可选。 允许用户提供客户管理的密钥,用于加密库项目中的 OS 和数据磁盘。 EncryptionImages
excludeFromLatest 包含用于在用户指定 version='latest' 时隐藏图像的标志设置 bool
name 区域的名称。 字符串 (必需)
regionalReplicaCount 每个区域要创建的映像版本的副本数。 此属性可更新。 int
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”

GalleryImageVersionSafetyProfile

名称 说明
allowDeletionOfReplicatedLocations 指示是否允许从复制区域删除此库映像版本。 bool

ImageVersionSecurityProfile

名称 说明
uefiSettings 包含映像版本的 UEFI 设置。 GalleryImageVersionUefiSettings

GalleryImageVersionUefiSettings

名称 说明
additionalSignatures 除签名模板外,还将添加到映像的其他 UEFI 密钥签名 UefiKeySignatures
signatureTemplateNames 模板的名称 (包含将添加到映像的默认 UEFI 密钥签名的) 。 包含任意项的字符串数组:
“MicrosoftUefiCertificateAuthorityTemplate”
“MicrosoftWindowsTemplate”
“NoSignatureTemplate”

UefiKeySignatures

名称 说明
db 此映像版本的 UEFI 密钥数据库。 UefiKey[]
dbx 此映像版本的已吊销 UEFI 密钥的数据库。 UefiKey[]
kek 此映像版本的密钥加密密钥。 UefiKey[]
pk 此映像版本的平台密钥。 UefiKey

UefiKey

名称 说明 Value
type 密钥签名的类型。 “sha256”
“x509”
value 密钥签名的值。 string[]

GalleryImageVersionStorageProfile

名称 说明
dataDiskImages 数据磁盘映像的列表。 GalleryDataDiskImage[]
osDiskImage 这是 OS 磁盘映像。 GalleryOSDiskImage
source 库项目版本的源。 GalleryArtifactVersionFullSource

GalleryDataDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” “None”
“ReadOnly”
“ReadWrite”
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)
source 磁盘映像的源。 GalleryDiskImageSource

GalleryDiskImageSource

名称 说明 Value
id 库项目版本源的 ID。 字符串
storageAccountId 存储帐户 ID,其中包含用作此项目版本的源的 vhd Blob。 字符串
uri 库项目版本源的 URI。 当前用于指定 vhd/blob 源。 字符串

GalleryOSDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” “None”
“ReadOnly”
“ReadWrite”
source 磁盘映像的源。 GalleryDiskImageSource

GalleryArtifactVersionFullSource

名称 说明
communityGalleryImageId 源社区库图像的资源 ID。 仅当使用社区库映像作为源时才需要。 string
id 库项目版本源的 ID。 字符串
virtualMachineId 源虚拟机的资源 ID。 仅在捕获虚拟机以获取此库映像版本时才需要。 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
在 Azure 计算库中创建映像版本

部署到 Azure
此模板允许你在 Azure 计算库中创建简单的映像版本。 在部署之前,请确保已运行 Azure Compute Gallery 101 模板和映像定义 101 模板。

ARM 模板资源定义

库/映像/版本资源类型可以通过针对以下操作进行部署:

有关每个 API 版本中更改的属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/gallerys/images/versions 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Compute/galleries/images/versions",
  "apiVersion": "2023-07-03",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "publishingProfile": {
      "endOfLifeDate": "string",
      "excludeFromLatest": "bool",
      "replicaCount": "int",
      "replicationMode": "string",
      "storageAccountType": "string",
      "targetExtendedLocations": [
        {
          "encryption": {
            "dataDiskImages": [
              {
                "diskEncryptionSetId": "string",
                "lun": "int"
              }
            ],
            "osDiskImage": {
              "diskEncryptionSetId": "string",
              "securityProfile": {
                "confidentialVMEncryptionType": "string",
                "secureVMDiskEncryptionSetId": "string"
              }
            }
          },
          "extendedLocation": {
            "name": "string",
            "type": "string"
          },
          "extendedLocationReplicaCount": "int",
          "name": "string",
          "storageAccountType": "string"
        }
      ],
      "targetRegions": [
        {
          "encryption": {
            "dataDiskImages": [
              {
                "diskEncryptionSetId": "string",
                "lun": "int"
              }
            ],
            "osDiskImage": {
              "diskEncryptionSetId": "string",
              "securityProfile": {
                "confidentialVMEncryptionType": "string",
                "secureVMDiskEncryptionSetId": "string"
              }
            }
          },
          "excludeFromLatest": "bool",
          "name": "string",
          "regionalReplicaCount": "int",
          "storageAccountType": "string"
        }
      ]
    },
    "safetyProfile": {
      "allowDeletionOfReplicatedLocations": "bool"
    },
    "securityProfile": {
      "uefiSettings": {
        "additionalSignatures": {
          "db": [
            {
              "type": "string",
              "value": [ "string" ]
            }
          ],
          "dbx": [
            {
              "type": "string",
              "value": [ "string" ]
            }
          ],
          "kek": [
            {
              "type": "string",
              "value": [ "string" ]
            }
          ],
          "pk": {
            "type": "string",
            "value": [ "string" ]
          }
        },
        "signatureTemplateNames": [ "string" ]
      }
    },
    "storageProfile": {
      "dataDiskImages": [
        {
          "hostCaching": "string",
          "lun": "int",
          "source": {
            "id": "string",
            "storageAccountId": "string",
            "uri": "string"
          }
        }
      ],
      "osDiskImage": {
        "hostCaching": "string",
        "source": {
          "id": "string",
          "storageAccountId": "string",
          "uri": "string"
        }
      },
      "source": {
        "communityGalleryImageId": "string",
        "id": "string",
        "virtualMachineId": "string"
      }
    }
  }
}

属性值

galleries/images/versions

名称 说明 Value
type 资源类型 “Microsoft.Compute/gallerys/images/versions”
apiVersion 资源 API 版本 '2023-07-03'
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)

字符限制:32 位整数

有效字符:
数字和句点。
(每段都转换为 int32。因此,每段的最大值为 2,147,483,647。)
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
properties 描述库映像版本的属性。 GalleryImageVersionProperties

GalleryImageVersionProperties

名称 说明
publishingProfile 库映像版本的发布配置文件。 GalleryImageVersionPublishingProfile
safetyProfile 这是库映像版本的安全配置文件。 GalleryImageVersionSafetyProfile
securityProfile 库映像版本的安全配置文件 ImageVersionSecurityProfile
storageProfile 这是库映像版本的存储配置文件。 需要 GalleryImageVersionStorageProfile ()

GalleryImageVersionPublishingProfile

名称 说明
endOfLifeDate 库映像版本的生命周期结束日期。 此属性可用于解除授权。 此属性可更新。 字符串
excludeFromLatest 如果设置为 true,则从最新版本的映像定义部署虚拟机将不使用此映像版本。 bool
replicaCount 每个区域要创建的映像版本的副本数。 如果未指定 regionReplicaCount,此属性将对区域生效。 此属性可更新。 int
replicationMode 可选参数,用于指定要用于复制的模式。 此属性不可更新。 'Full'
“浅层”
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”
targetExtendedLocations 映像版本要复制到的目标扩展位置。 此属性可更新。 GalleryTargetExtendedLocation[]
targetRegions 映像版本要复制到的目标区域。 此属性可更新。 TargetRegion[]

GalleryTargetExtendedLocation

名称 说明
加密 可选。 允许用户提供客户托管密钥来加密库项目中的 OS 和数据磁盘。 EncryptionImages
extendedLocation 扩展位置的名称。 GalleryExtendedLocation
extendedLocationReplicaCount 每个扩展位置要创建的映像版本的副本数。 此属性可更新。 int
name 区域的名称。 字符串
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“StandardSSD_LRS”
“Standard_LRS”
“Standard_ZRS”

EncryptionImages

名称 说明
dataDiskImages 数据磁盘映像的加密规范列表。 DataDiskImageEncryption[]
osDiskImage 包含 OS 磁盘映像的加密设置。 OSDiskImageEncryption

DataDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)

OSDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
securityProfile 此属性指定 OS 磁盘映像的安全配置文件。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名称 说明
confidentialVMEncryptionType 机密 VM 加密类型 “EncryptedVMGuestStateOnlyWithPmk”
“EncryptedWithCmk”
“EncryptedWithPmk”
“NonPersistedTPM”
secureVMDiskEncryptionSetId 安全 VM 磁盘加密集 ID 字符串

GalleryExtendedLocation

名称 说明
name 字符串
type 它是扩展位置的类型。 “EdgeZone”
“未知”

TargetRegion

名称 说明
加密 可选。 允许用户提供客户管理的密钥,用于加密库项目中的 OS 和数据磁盘。 EncryptionImages
excludeFromLatest 包含用于在用户指定 version='latest' 时隐藏图像的标志设置 bool
name 区域的名称。 字符串 (必需)
regionalReplicaCount 每个区域要创建的映像版本的副本数。 此属性可更新。 int
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”

GalleryImageVersionSafetyProfile

名称 说明
allowDeletionOfReplicatedLocations 指示是否允许从复制区域删除此库映像版本。 bool

ImageVersionSecurityProfile

名称 说明
uefiSettings 包含映像版本的 UEFI 设置。 GalleryImageVersionUefiSettings

GalleryImageVersionUefiSettings

名称 说明
additionalSignatures 除了签名模板之外,还将添加到映像的其他 UEFI 密钥签名 UefiKeySignatures
signatureTemplateNames 模板的名称 (包含将添加到映像的默认 UEFI 密钥签名的) 。 包含任何一项的字符串数组:
'MicrosoftUefiCertificateAuthorityTemplate'
“MicrosoftWindowsTemplate”
“NoSignatureTemplate”

UefiKeySignatures

名称 说明
db 此映像版本的 UEFI 密钥数据库。 UefiKey[]
dbx 此映像版本的已吊销 UEFI 密钥的数据库。 UefiKey[]
kek 此映像版本的密钥加密密钥。 UefiKey[]
pk 此映像版本的平台密钥。 UefiKey

UefiKey

名称 说明 Value
type 密钥签名的类型。 'sha256'
“x509”
value 密钥签名的值。 string[]

GalleryImageVersionStorageProfile

名称 说明
dataDiskImages 数据磁盘映像的列表。 GalleryDataDiskImage[]
osDiskImage 这是 OS 磁盘映像。 GalleryOSDiskImage
source 库项目版本的源。 GalleryArtifactVersionFullSource

GalleryDataDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” “None”
“ReadOnly”
“ReadWrite”
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)
source 磁盘映像的源。 GalleryDiskImageSource

GalleryDiskImageSource

名称 说明 Value
id 库项目版本源的 ID。 字符串
storageAccountId 存储帐户 ID,其中包含用作此项目版本的源的 vhd Blob。 字符串
uri 库项目版本源的 URI。 当前用于指定 vhd/blob 源。 字符串

GalleryOSDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” “None”
“ReadOnly”
“ReadWrite”
source 磁盘映像的源。 GalleryDiskImageSource

GalleryArtifactVersionFullSource

名称 说明
communityGalleryImageId 源社区库映像的资源 ID。 仅当使用社区库映像作为源时才需要。 string
id 库项目版本源的 ID。 字符串
virtualMachineId 源虚拟机的资源 ID。 仅在捕获虚拟机以获取此库映像版本时才需要。 字符串

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
在 Azure Compute Gallery 中创建映像版本

部署到 Azure
此模板允许在 Azure Compute Gallery 中创建简单的映像版本。 在部署之前,请确保已运行 Azure Compute Gallery 101 模板和映像定义 101 模板。

Terraform (AzAPI 提供程序) 资源定义

库/映像/版本资源类型可以通过针对以下操作进行部署:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/galleries/images/versions 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/galleries/images/versions@2023-07-03"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      publishingProfile = {
        endOfLifeDate = "string"
        excludeFromLatest = bool
        replicaCount = int
        replicationMode = "string"
        storageAccountType = "string"
        targetExtendedLocations = [
          {
            encryption = {
              dataDiskImages = [
                {
                  diskEncryptionSetId = "string"
                  lun = int
                }
              ]
              osDiskImage = {
                diskEncryptionSetId = "string"
                securityProfile = {
                  confidentialVMEncryptionType = "string"
                  secureVMDiskEncryptionSetId = "string"
                }
              }
            }
            extendedLocation = {
              name = "string"
              type = "string"
            }
            extendedLocationReplicaCount = int
            name = "string"
            storageAccountType = "string"
          }
        ]
        targetRegions = [
          {
            encryption = {
              dataDiskImages = [
                {
                  diskEncryptionSetId = "string"
                  lun = int
                }
              ]
              osDiskImage = {
                diskEncryptionSetId = "string"
                securityProfile = {
                  confidentialVMEncryptionType = "string"
                  secureVMDiskEncryptionSetId = "string"
                }
              }
            }
            excludeFromLatest = bool
            name = "string"
            regionalReplicaCount = int
            storageAccountType = "string"
          }
        ]
      }
      safetyProfile = {
        allowDeletionOfReplicatedLocations = bool
      }
      securityProfile = {
        uefiSettings = {
          additionalSignatures = {
            db = [
              {
                type = "string"
                value = [
                  "string"
                ]
              }
            ]
            dbx = [
              {
                type = "string"
                value = [
                  "string"
                ]
              }
            ]
            kek = [
              {
                type = "string"
                value = [
                  "string"
                ]
              }
            ]
            pk = {
              type = "string"
              value = [
                "string"
              ]
            }
          }
          signatureTemplateNames = [
            "string"
          ]
        }
      }
      storageProfile = {
        dataDiskImages = [
          {
            hostCaching = "string"
            lun = int
            source = {
              id = "string"
              storageAccountId = "string"
              uri = "string"
            }
          }
        ]
        osDiskImage = {
          hostCaching = "string"
          source = {
            id = "string"
            storageAccountId = "string"
            uri = "string"
          }
        }
        source = {
          communityGalleryImageId = "string"
          id = "string"
          virtualMachineId = "string"
        }
      }
    }
  })
}

属性值

galleries/images/versions

名称 说明 Value
type 资源类型 “Microsoft.Compute/galleries/images/versions@2023-07-03”
name 资源名称 字符串 (必需)

字符限制:32 位整数

有效字符:
数字和句点。
(每段都转换为 int32。因此,每段的最大值为 2,147,483,647。)
location 资源位置 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为 的资源的 ID: images
标记 资源标记 标记名称和值的字典。
properties 描述库映像版本的属性。 GalleryImageVersionProperties

GalleryImageVersionProperties

名称 说明
publishingProfile 库映像版本的发布配置文件。 GalleryImageVersionPublishingProfile
safetyProfile 这是库映像版本的安全配置文件。 GalleryImageVersionSafetyProfile
securityProfile 库映像版本的安全配置文件 ImageVersionSecurityProfile
storageProfile 这是库映像版本的存储配置文件。 GalleryImageVersionStorageProfile (必需)

GalleryImageVersionPublishingProfile

名称 说明
endOfLifeDate 库映像版本的生命周期结束日期。 此属性可用于解除授权目的。 此属性可更新。 字符串
excludeFromLatest 如果设置为 true,则从最新版本的映像定义部署虚拟机不会使用此映像版本。 bool
replicaCount 每个区域要创建的映像版本的副本数。 如果未指定 regionalReplicaCount,此属性将对区域生效。 此属性可更新。 int
replicationMode 可选参数,指定用于复制的模式。 此属性不可更新。 “Full”
“浅表”
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”
targetExtendedLocations 映像版本要复制到的目标扩展位置。 此属性可更新。 GalleryTargetExtendedLocation[]
targetRegions 映像版本要复制到的目标区域。 此属性可更新。 TargetRegion[]

GalleryTargetExtendedLocation

名称 说明
加密 可选。 允许用户提供客户管理的密钥,用于加密库项目中的 OS 和数据磁盘。 EncryptionImages
extendedLocation 扩展位置的名称。 GalleryExtendedLocation
extendedLocationReplicaCount 每个扩展位置要创建的映像版本的副本数。 此属性可更新。 int
name 区域的名称。 字符串
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“StandardSSD_LRS”
“Standard_LRS”
“Standard_ZRS”

EncryptionImages

名称 说明
dataDiskImages 数据磁盘映像的加密规范列表。 DataDiskImageEncryption[]
osDiskImage 包含 OS 磁盘映像的加密设置。 OSDiskImageEncryption

DataDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)

OSDiskImageEncryption

名称 说明
diskEncryptionSetId 包含磁盘加密集的资源 ID 的相对 URI。 字符串
securityProfile 此属性指定 OS 磁盘映像的安全配置文件。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名称 说明
confidentialVMEncryptionType 机密 VM 加密类型 “EncryptedVMGuestStateOnlyWithPmk”
“EncryptedWithCmk”
“EncryptedWithPmk”
“NonPersistedTPM”
secureVMDiskEncryptionSetId 安全 VM 磁盘加密集 ID 字符串

GalleryExtendedLocation

名称 说明
name 字符串
type 它是扩展位置的类型。 “EdgeZone”
"Unknown"

TargetRegion

名称 说明
加密 可选。 允许用户提供客户管理的密钥,用于加密库项目中的 OS 和数据磁盘。 EncryptionImages
excludeFromLatest 包含用于在用户指定 version='latest' 时隐藏图像的标志设置 bool
name 区域的名称。 字符串 (必需)
regionalReplicaCount 每个区域要创建的映像版本的副本数。 此属性可更新。 int
storageAccountType 指定要用于存储映像的存储帐户类型。 此属性不可更新。 “Premium_LRS”
“Standard_LRS”
“Standard_ZRS”

GalleryImageVersionSafetyProfile

名称 说明
allowDeletionOfReplicatedLocations 指示是否允许从复制区域删除此库映像版本。 bool

ImageVersionSecurityProfile

名称 说明
uefiSettings 包含映像版本的 UEFI 设置。 GalleryImageVersionUefiSettings

GalleryImageVersionUefiSettings

名称 说明
additionalSignatures 除了签名模板之外,还将添加到映像的其他 UEFI 密钥签名 UefiKeySignatures
signatureTemplateNames 模板的名称 (包含将添加到映像的默认 UEFI 密钥签名的) 。 包含任何一项的字符串数组:
“MicrosoftUefiCertificateAuthorityTemplate”
“MicrosoftWindowsTemplate”
“NoSignatureTemplate”

UefiKeySignatures

名称 说明
db 此映像版本的 UEFI 密钥数据库。 UefiKey[]
dbx 此映像版本的已吊销 UEFI 密钥的数据库。 UefiKey[]
kek 此映像版本的密钥加密密钥。 UefiKey[]
pk 此映像版本的平台密钥。 UefiKey

UefiKey

名称 说明 Value
type 密钥签名的类型。 “sha256”
“x509”
value 密钥签名的值。 string[]

GalleryImageVersionStorageProfile

名称 说明
dataDiskImages 数据磁盘映像的列表。 GalleryDataDiskImage[]
osDiskImage 这是 OS 磁盘映像。 GalleryOSDiskImage
source 库项目版本的源。 GalleryArtifactVersionFullSource

GalleryDataDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” "None"
“ReadOnly”
“ReadWrite”
lun 此属性指定数据磁盘的逻辑单元号。 此值用于标识虚拟机中的数据磁盘,因此对于附加到虚拟机的每个数据磁盘必须是唯一的。 int (必需)
source 磁盘映像的源。 GalleryDiskImageSource

GalleryDiskImageSource

名称 说明 Value
id 库项目版本源的 ID。 字符串
storageAccountId 存储帐户 ID,其中包含用作此项目版本的源的 vhd Blob。 字符串
uri 库项目版本源的 URI。 当前用于指定 vhd/blob 源。 字符串

GalleryOSDiskImage

名称 说明
hostCaching 磁盘的主机缓存。 有效值为“None”、“ReadOnly”和“ReadWrite” "None"
“ReadOnly”
“ReadWrite”
source 磁盘映像的源。 GalleryDiskImageSource

GalleryArtifactVersionFullSource

名称 说明
communityGalleryImageId 源社区库图像的资源 ID。 仅当使用社区库映像作为源时才需要。 string
id 库项目版本源的 ID。 字符串
virtualMachineId 源虚拟机的资源 ID。 仅在捕获虚拟机以获取此库映像版本时才需要。 字符串