共用方式為


Microsoft.Compute 資源庫/應用程式/版本 2022-03-03

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.Compute/galleries/applications/versions@2022-03-03' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  properties: {
    publishingProfile: {
      advancedSettings: {
        {customized property}: 'string'
      }
      customActions: [
        {
          description: 'string'
          name: 'string'
          parameters: [
            {
              defaultValue: 'string'
              description: 'string'
              name: 'string'
              required: bool
              type: 'string'
            }
          ]
          script: 'string'
        }
      ]
      enableHealthCheck: bool
      endOfLifeDate: 'string'
      excludeFromLatest: bool
      manageActions: {
        install: 'string'
        remove: 'string'
        update: 'string'
      }
      replicaCount: int
      replicationMode: 'string'
      settings: {
        configFileName: 'string'
        packageFileName: 'string'
      }
      source: {
        defaultConfigurationLink: 'string'
        mediaLink: '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
    }
  }
}

屬性值

資源庫/應用程式/版本

名稱 描述
NAME 資源名稱

瞭解如何在 Bicep 中設定子資源的名稱和類型。
字串 (必要)

字元限制:32 位整數

合法字元:
數字和句號。
(每個區段都會轉換成 int32。因此,每個區段的最大值為 2,147,483,647。)
location 資源位置 字串 (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱 範本中的標記
父系 (parent) 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源之外宣告子資源時,才需要新增這個屬性。

如需詳細資訊,請參閱 父資源外部的子資源
類型資源的符號名稱: 應用程式
properties 描述資源庫映像版本的屬性。 GalleryApplicationVersionProperties

GalleryApplicationVersionProperties

名稱 描述
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryApplicationVersionPublishingProfile (必要)
safetyProfile 資源庫應用程式版本的安全配置檔。 GalleryApplicationVersionSafetyProfile

GalleryApplicationVersionPublishingProfile

名稱 描述
advancedSettings 選擇性。 傳遞至 vm-application-manager 延伸模組的其他設定。 僅供進階使用。 GalleryApplicationVersionPublishingProfileAdvancedSe...
customActions 可使用這個資源庫應用程式版本執行的自定義動作清單。 GalleryApplicationCustomAction[]
enableHealthCheck 選擇性。 此應用程式是否報告健康情況。 bool
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任目的。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,虛擬機器 從最新版本的映像定義部署將不會使用此映像版本。 bool
manageActions UserArtifactManage
replicaCount 每個區域要建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會生效。 這個屬性是可更新的。 int
replicationMode 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 'Full'
'淺層'
設定 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 UserArtifactSettings
來源 要從中建立映像版本的來源映像。 UserArtifactSource (必要)
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 'Premium_LRS'
'Standard_LRS'
'Standard_ZRS'
targetExtendedLocations 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 GalleryTargetExtendedLocation[]
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

GalleryApplicationVersionPublishingProfileAdvancedSe...

名稱 描述
{自定義屬性} 字串

GalleryApplicationCustomAction

名稱 描述
description 協助使用者瞭解此自定義動作用途的描述。 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
參數 這個自定義動作所使用的參數 GalleryApplicationCustomActionParameter[]
指令碼 執行這個自定義動作時要執行的腳本。 需要字串 ()

GalleryApplicationCustomActionParameter

名稱 描述
defaultValue 參數的預設值。 僅適用於字串類型 字串
description 協助使用者瞭解此參數意義的描述 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
必要 指出執行自定義動作時,是否必須傳遞此參數。 bool
類型 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob 'ConfigurationDataBlob'
'LogOutputBlob'
'String'

UserArtifactManage

名稱 描述
安裝 必要。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
remove 必要。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
update 選擇性。 要更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業會在舊版上叫用 remove 命令,並在目前版本的資源庫應用程式上安裝命令。 這限制為 4096 個字元。 字串

UserArtifactSettings

名稱 描述
configFileName 選擇性。 在 VM 上指派所下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔會命名為資源庫應用程式名稱,並附加 「_config」。。 字串
packageFileName 選擇性。 在 VM 上指派下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 字串

UserArtifactSource

名稱 描述
defaultConfigurationLink 選擇性。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 字串
mediaLink 必要。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 字串 (必要)

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 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
lun 這個屬性會指定數據磁碟的邏輯單元編號。 這個值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言,都必須是唯一的。 int (必要)

OSDiskImageEncryption

名稱 描述
diskEncryptionSetId 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
securityProfile 此屬性會指定 OS 磁碟映像的安全性設定檔。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名稱 描述
confidentialVMEncryptionType 機密 VM 加密類型 'EncryptedVMGuestStateOnlyWithPmk'
'EncryptedWithCmk'
'EncryptedWithPmk'
secureVMDiskEncryptionSetId 安全 VM 磁碟加密集標識碼 字串

GalleryExtendedLocation

名稱 描述
NAME 字串
type 它是擴充位置的類型。 'EdgeZone'
'Unknown'

TargetRegion

名稱 描述
加密 選擇性。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 EncryptionImages
excludeFromLatest 包含旗標設定,當使用者指定version='latest' 時隱藏映像 bool
NAME 區域的名稱。 字串 (必要)
regionalReplicaCount 每個區域要建立之映像版本的複本數目。 這個屬性是可更新的。 int
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 'Premium_LRS'
'Standard_LRS'
'Standard_ZRS'

GalleryApplicationVersionSafetyProfile

名稱 描述
allowDeletionOfReplicatedLocations 指出是否允許從復寫區域移除此資源庫映像版本。 bool

ARM 範本資源定義

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

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

資源格式

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

{
  "type": "Microsoft.Compute/galleries/applications/versions",
  "apiVersion": "2022-03-03",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "properties": {
    "publishingProfile": {
      "advancedSettings": {
        "{customized property}": "string"
      },
      "customActions": [
        {
          "description": "string",
          "name": "string",
          "parameters": [
            {
              "defaultValue": "string",
              "description": "string",
              "name": "string",
              "required": "bool",
              "type": "string"
            }
          ],
          "script": "string"
        }
      ],
      "enableHealthCheck": "bool",
      "endOfLifeDate": "string",
      "excludeFromLatest": "bool",
      "manageActions": {
        "install": "string",
        "remove": "string",
        "update": "string"
      },
      "replicaCount": "int",
      "replicationMode": "string",
      "settings": {
        "configFileName": "string",
        "packageFileName": "string"
      },
      "source": {
        "defaultConfigurationLink": "string",
        "mediaLink": "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"
    }
  }
}

屬性值

資源庫/應用程式/版本

名稱 描述
類型 資源類型 'Microsoft.Compute/galleries/applications/versions'
apiVersion 資源 API 版本 '2022-03-03'
NAME 資源名稱

請參閱如何在 JSON ARM 樣本中設定子資源的名稱和類型。
字串 (必要)

字元限制:32 位整數

合法字元:
數字和句號。
(每個區段都會轉換成 int32。因此,每個區段的最大值為 2,147,483,647。)
location 資源位置 字串 (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱 範本中的標記
properties 描述資源庫映像版本的屬性。 GalleryApplicationVersionProperties

GalleryApplicationVersionProperties

名稱 描述
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryApplicationVersionPublishingProfile (必要)
safetyProfile 資源庫應用程式版本的安全配置檔。 GalleryApplicationVersionSafetyProfile

GalleryApplicationVersionPublishingProfile

名稱 描述
advancedSettings 選擇性。 傳遞至 vm-application-manager 延伸模組的其他設定。 僅供進階使用。 GalleryApplicationVersionPublishingProfileAdvancedSe...
customActions 可使用這個資源庫應用程式版本執行的自定義動作清單。 GalleryApplicationCustomAction[]
enableHealthCheck 選擇性。 此應用程式是否報告健康情況。 bool
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任目的。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,虛擬機器 從最新版本的映像定義部署將不會使用此映像版本。 bool
manageActions UserArtifactManage
replicaCount 每個區域要建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會生效。 這個屬性是可更新的。 int
replicationMode 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 'Full'
'淺層'
設定 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 UserArtifactSettings
來源 要從中建立映像版本的來源映像。 需要 UserArtifactSource ()
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 此屬性無法更新。 'Premium_LRS'
'Standard_LRS'
'Standard_ZRS'
targetExtendedLocations 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 GalleryTargetExtendedLocation[]
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

GalleryApplicationVersionPublishingProfileAdvancedSe...

名稱 描述
{自定義屬性} 字串

GalleryApplicationCustomAction

名稱 描述
description 協助使用者瞭解此自定義動作用途的描述。 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
參數 這個自定義動作所使用的參數 GalleryApplicationCustomActionParameter[]
指令碼 執行這個自定義動作時要執行的腳本。 需要字串 ()

GalleryApplicationCustomActionParameter

名稱 描述
defaultValue 參數的預設值。 僅適用於字串類型 字串
description 協助使用者瞭解此參數意義的描述 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
必要 指出執行自定義動作時,是否必須傳遞此參數。 bool
類型 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob 'ConfigurationDataBlob'
'LogOutputBlob'
'String'

UserArtifactManage

名稱 描述
安裝 必要。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
remove 必要。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
update 選擇性。 要更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業會在舊版上叫用 remove 命令,並在目前版本的資源庫應用程式上安裝命令。 這限制為 4096 個字元。 字串

UserArtifactSettings

名稱 描述
configFileName 選擇性。 在 VM 上指派所下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔會命名為資源庫應用程式名稱,並附加 「_config」。。 字串
packageFileName 選擇性。 在 VM 上指派下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 字串

UserArtifactSource

名稱 描述
defaultConfigurationLink 選擇性。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 字串
mediaLink 必要。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 字串 (必要)

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 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
lun 這個屬性會指定數據磁碟的邏輯單元編號。 這個值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言,都必須是唯一的。 int (必要)

OSDiskImageEncryption

名稱 描述
diskEncryptionSetId 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
securityProfile 此屬性會指定 OS 磁碟映像的安全性設定檔。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名稱 描述
confidentialVMEncryptionType 機密 VM 加密類型 'EncryptedVMGuestStateOnlyWithPmk'
'EncryptedWithCmk'
'EncryptedWithPmk'
secureVMDiskEncryptionSetId 安全 VM 磁碟加密集標識碼 字串

GalleryExtendedLocation

名稱 描述
NAME 字串
type 它是擴充位置的類型。 'EdgeZone'
'Unknown'

TargetRegion

名稱 描述
加密 選擇性。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 EncryptionImages
excludeFromLatest 包含旗標設定,當使用者指定version='latest' 時隱藏映像 bool
NAME 區域的名稱。 字串 (必要)
regionalReplicaCount 每個區域要建立之映像版本的複本數目。 這個屬性是可更新的。 int
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 'Premium_LRS'
'Standard_LRS'
'Standard_ZRS'

GalleryApplicationVersionSafetyProfile

名稱 描述
allowDeletionOfReplicatedLocations 指出是否允許從復寫區域移除此資源庫映像版本。 bool

Terraform (AzAPI 提供者) 資源定義

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

  • 資源群組

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/galleries/applications/versions@2022-03-03"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      publishingProfile = {
        advancedSettings = {
          {customized property} = "string"
        }
        customActions = [
          {
            description = "string"
            name = "string"
            parameters = [
              {
                defaultValue = "string"
                description = "string"
                name = "string"
                required = bool
                type = "string"
              }
            ]
            script = "string"
          }
        ]
        enableHealthCheck = bool
        endOfLifeDate = "string"
        excludeFromLatest = bool
        manageActions = {
          install = "string"
          remove = "string"
          update = "string"
        }
        replicaCount = int
        replicationMode = "string"
        settings = {
          configFileName = "string"
          packageFileName = "string"
        }
        source = {
          defaultConfigurationLink = "string"
          mediaLink = "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
      }
    }
  })
}

屬性值

資源庫/應用程式/版本

名稱 描述
類型 資源類型 “Microsoft.Compute/galleries/applications/versions@2022-03-03”
NAME 資源名稱 字串 (必要)

字元限制:32 位整數

合法字元:
數字和句號。
(每個區段都會轉換成 int32。因此,每個區段的最大值為 2,147,483,647。)
location 資源位置 字串 (必要)
parent_id 此資源之父系的資源標識碼。 類型資源的標識碼: 應用程式
tags 資源標籤 標記名稱和值的字典。
properties 描述資源庫映像版本的屬性。 GalleryApplicationVersionProperties

GalleryApplicationVersionProperties

名稱 描述
publishingProfile 資源庫映像版本的發佈配置檔。 GalleryApplicationVersionPublishingProfile (必要)
safetyProfile 資源庫應用程式版本的安全配置檔。 GalleryApplicationVersionSafetyProfile

GalleryApplicationVersionPublishingProfile

名稱 描述
advancedSettings 選擇性。 傳遞至 vm-application-manager 延伸模組的其他設定。 僅供進階使用。 GalleryApplicationVersionPublishingProfileAdvancedSe...
customActions 可使用這個資源庫應用程式版本執行的自定義動作清單。 GalleryApplicationCustomAction[]
enableHealthCheck 選擇性。 此應用程式是否報告健康情況。 bool
endOfLifeDate 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任目的。 這個屬性是可更新的。 字串
excludeFromLatest 如果設定為 true,虛擬機器 從最新版本的映像定義部署將不會使用此映像版本。 bool
manageActions UserArtifactManage
replicaCount 每個區域要建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會生效。 這個屬性是可更新的。 int
replicationMode 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 “Full”
“淺層”
設定 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 UserArtifactSettings
來源 要從中建立映像版本的來源映像。 需要 UserArtifactSource ()
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 此屬性無法更新。 "Premium_LRS"
"Standard_LRS"
"Standard_ZRS"
targetExtendedLocations 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 GalleryTargetExtendedLocation[]
targetRegions 要復寫映像版本的目標區域。 這個屬性是可更新的。 TargetRegion[]

GalleryApplicationVersionPublishingProfileAdvancedSe...

名稱 描述
{自定義屬性} 字串

GalleryApplicationCustomAction

名稱 描述
description 協助使用者瞭解此自定義動作用途的描述。 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
參數 這個自定義動作所使用的參數 GalleryApplicationCustomActionParameter[]
指令碼 執行這個自定義動作時要執行的腳本。 需要字串 ()

GalleryApplicationCustomActionParameter

名稱 描述
defaultValue 參數的預設值。 僅適用於字串類型 字串
description 協助使用者瞭解此參數意義的描述 字串
NAME 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 需要字串 ()
必要 指出執行自定義動作時,是否必須傳遞此參數。 bool
類型 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob “ConfigurationDataBlob”
“LogOutputBlob”
“String”

UserArtifactManage

名稱 描述
安裝 必要。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
remove 必要。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 需要字串 ()
update 選擇性。 要更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業會在舊版上叫用 remove 命令,並在目前版本的資源庫應用程式上安裝命令。 這限制為 4096 個字元。 字串

UserArtifactSettings

名稱 描述
configFileName 選擇性。 在 VM 上指派所下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔會命名為資源庫應用程式名稱,並附加 「_config」。。 字串
packageFileName 選擇性。 在 VM 上指派下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 字串

UserArtifactSource

名稱 描述
defaultConfigurationLink 選擇性。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 字串
mediaLink 必要。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 需要字串 ()

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 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
lun 此屬性會指定數據磁碟的邏輯單元編號。 這個值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟都必須是唯一的。 需要 int ()

OSDiskImageEncryption

名稱 描述
diskEncryptionSetId 相對 URI,其中包含磁碟加密集的資源識別碼。 字串
securityProfile 此屬性會指定 OS 磁碟映像的安全性設定檔。 OSDiskImageSecurityProfile

OSDiskImageSecurityProfile

名稱 描述
confidentialVMEncryptionType 機密 VM 加密類型 “EncryptedVMGuestStateOnlyWithPmk”
“EncryptedWithCmk”
“EncryptedWithPmk”
secureVMDiskEncryptionSetId 安全的 VM 磁碟加密集標識符 字串

GalleryExtendedLocation

名稱 描述
NAME 字串
type 它是擴充位置的類型。 “EdgeZone”
“未知”

TargetRegion

名稱 描述
加密 選擇性。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 EncryptionImages
excludeFromLatest 包含旗標設定,當使用者指定version='latest' 時隱藏映像 bool
NAME 區域的名稱。 需要字串 ()
regionalReplicaCount 每個區域要建立之映像版本的複本數目。 這個屬性是可更新的。 int
storageAccountType 指定要用來儲存映像的記憶體帳戶類型。 此屬性無法更新。 "Premium_LRS"
"Standard_LRS"
"Standard_ZRS"

GalleryApplicationVersionSafetyProfile

名稱 描述
allowDeletionOfReplicatedLocations 指出是否允許從復寫區域移除此資源庫映像版本。 bool