Microsoft.Compute 資源庫/應用程式/2024-03-03 版
Bicep 資源定義
資源庫/應用程式/版本資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/applications/versions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Compute/galleries/applications/versions@2024-03-03' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
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'
scriptBehaviorAfterReboot: '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: [
{
additionalReplicaSets: [
{
regionalReplicaCount: int
storageAccountType: 'string'
}
]
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
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
AdditionalReplicaSet
名字 | 描述 | 價值 |
---|---|---|
regionalReplicaCount | 要建立之映像版本的直接磁碟驅動器複本數目。此屬性是可更新的 | int |
storageAccountType | 指定要用來建立直接磁碟驅動器複本的記憶體帳戶類型 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
DataDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
EncryptionImages
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的加密規格清單。 | DataDiskImageEncryption[] |
osDiskImage | 包含 OS 磁碟映像的加密設定。 | OSDiskImageEncryption |
GalleryApplicationCustomAction
名字 | 描述 | 價值 |
---|---|---|
描述 | 說明可協助使用者瞭解此自定義動作的功能。 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
參數 | 這個自定義動作所使用的參數 | GalleryApplicationCustomActionParameter[] |
腳本 | 執行這個自定義動作時要執行的腳本。 | 字串 (必要) |
GalleryApplicationCustomActionParameter
名字 | 描述 | 價值 |
---|---|---|
defaultValue | 參數的預設值。 僅適用於字串類型 | 字串 |
描述 | 說明,可協助使用者瞭解此參數的意義 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
必填 | 指出在執行自定義動作時,是否必須傳遞此參數。 | bool |
類型 | 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob | 'ConfigurationDataBlob' 'LogOutputBlob' 'String' |
GalleryApplicationVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發行配置檔。 | GalleryApplicationVersionPublishingProfile (必要) |
safetyProfile | 資源庫應用程式版本的安全性配置檔。 | GalleryApplicationVersionSafetyProfile |
GalleryApplicationVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
advancedSettings | 自選。 要傳遞至 vm-application-manager 擴充功能的其他設定。 僅供進階使用。 | GalleryApplicationVersionPublishingProfileAdvancedSettings |
customActions | 可使用此資源庫應用程式版本執行的自定義動作清單。 | GalleryApplicationCustomAction[] |
enableHealthCheck | 自選。 此應用程式是否報告健康情況。 | bool |
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
manageActions | UserArtifactManage | |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
replicationMode | 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 | 'Full' '淺層' |
設置 | 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 | UserArtifactSettings |
源 | 要從中建立映像版本的來源映像。 | UserArtifactSource (必要) |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
targetExtendedLocations | 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 | GalleryTargetExtendedLocation[] |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryApplicationVersionPublishingProfileAdvancedSettings
名字 | 描述 | 價值 |
---|
GalleryApplicationVersionSafetyProfile
名字 | 描述 | 價值 |
---|---|---|
allowDeletionOfReplicatedLocations | 指出是否允許從復寫區域移除此資源庫映像版本。 | bool |
GalleryExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
名字 | 字串 | |
類型 | 它是擴充位置的類型。 | 'EdgeZone' 'Unknown' |
GalleryTargetExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
extendedLocation | 擴充位置的名稱。 | GalleryExtendedLocation |
extendedLocationReplicaCount | 每個擴充位置要建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
名字 | 區域的名稱。 | 字串 |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Premium_LRS' 'StandardSSD_LRS' 'Standard_LRS' 'Standard_ZRS' |
Microsoft.Compute/galleries/applications/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
父母 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型的資源符號名稱:資源庫/應用程式 |
性能 | 描述資源庫映像版本的屬性。 | GalleryApplicationVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
OSDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
securityProfile | 此屬性會指定 OS 磁碟映像的安全性設定檔。 | OSDiskImageSecurityProfile |
OSDiskImageSecurityProfile
名字 | 描述 | 價值 |
---|---|---|
confidentialVMEncryptionType | 機密 VM 加密類型 | 'EncryptedVMGuestStateOnlyWithPmk' 'EncryptedWithCmk' 'EncryptedWithPmk' 'NonPersistedTPM' |
secureVMDiskEncryptionSetId | 安全的 VM 磁碟加密集標識符 | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
additionalReplicaSets | 具有復本計數來建立直接磁碟驅動器複本的記憶體 SKU 清單。 | AdditionalReplicaSet[] |
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
excludeFromLatest | 包含當使用者指定 version='latest' 時隱藏映射的旗標設定 | bool |
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
UserArtifactManage
名字 | 描述 | 價值 |
---|---|---|
安裝 | 必填。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
刪除 | 必填。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
更新 | 自選。 更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業將會在舊版上叫用 remove 命令,並在資源庫應用程式的目前版本上安裝命令。 這限制為 4096 個字元。 | 字串 |
UserArtifactSettings
名字 | 描述 | 價值 |
---|---|---|
configFileName | 自選。 要指派 VM 上下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔將會命名為附加 「_config」 的資源庫應用程式名稱。 | 字串 |
packageFileName | 自選。 要指派 VM 上下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 | 字串 |
scriptBehaviorAfterReboot | 自選。 在重新啟動時安裝/更新/移除資源庫應用程式的動作。 | 'None' 'Rerun' |
UserArtifactSource
名字 | 描述 | 價值 |
---|---|---|
defaultConfigurationLink | 自選。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 | 字串 |
mediaLink | 必填。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 | 字串 (必要) |
ARM 樣本資源定義
資源庫/應用程式/版本資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/applications/versions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Compute/galleries/applications/versions",
"apiVersion": "2024-03-03",
"name": "string",
"location": "string",
"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",
"scriptBehaviorAfterReboot": "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": [
{
"additionalReplicaSets": [
{
"regionalReplicaCount": "int",
"storageAccountType": "string"
}
],
"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"
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
AdditionalReplicaSet
名字 | 描述 | 價值 |
---|---|---|
regionalReplicaCount | 要建立之映像版本的直接磁碟驅動器複本數目。此屬性是可更新的 | int |
storageAccountType | 指定要用來建立直接磁碟驅動器複本的記憶體帳戶類型 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
DataDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
EncryptionImages
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的加密規格清單。 | DataDiskImageEncryption[] |
osDiskImage | 包含 OS 磁碟映像的加密設定。 | OSDiskImageEncryption |
GalleryApplicationCustomAction
名字 | 描述 | 價值 |
---|---|---|
描述 | 說明可協助使用者瞭解此自定義動作的功能。 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
參數 | 這個自定義動作所使用的參數 | GalleryApplicationCustomActionParameter[] |
腳本 | 執行這個自定義動作時要執行的腳本。 | 字串 (必要) |
GalleryApplicationCustomActionParameter
名字 | 描述 | 價值 |
---|---|---|
defaultValue | 參數的預設值。 僅適用於字串類型 | 字串 |
描述 | 說明,可協助使用者瞭解此參數的意義 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
必填 | 指出在執行自定義動作時,是否必須傳遞此參數。 | bool |
類型 | 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob | 'ConfigurationDataBlob' 'LogOutputBlob' 'String' |
GalleryApplicationVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發行配置檔。 | GalleryApplicationVersionPublishingProfile (必要) |
safetyProfile | 資源庫應用程式版本的安全性配置檔。 | GalleryApplicationVersionSafetyProfile |
GalleryApplicationVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
advancedSettings | 自選。 要傳遞至 vm-application-manager 擴充功能的其他設定。 僅供進階使用。 | GalleryApplicationVersionPublishingProfileAdvancedSettings |
customActions | 可使用此資源庫應用程式版本執行的自定義動作清單。 | GalleryApplicationCustomAction[] |
enableHealthCheck | 自選。 此應用程式是否報告健康情況。 | bool |
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
manageActions | UserArtifactManage | |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
replicationMode | 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 | 'Full' '淺層' |
設置 | 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 | UserArtifactSettings |
源 | 要從中建立映像版本的來源映像。 | UserArtifactSource (必要) |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
targetExtendedLocations | 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 | GalleryTargetExtendedLocation[] |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryApplicationVersionPublishingProfileAdvancedSettings
名字 | 描述 | 價值 |
---|
GalleryApplicationVersionSafetyProfile
名字 | 描述 | 價值 |
---|---|---|
allowDeletionOfReplicatedLocations | 指出是否允許從復寫區域移除此資源庫映像版本。 | bool |
GalleryExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
名字 | 字串 | |
類型 | 它是擴充位置的類型。 | 'EdgeZone' 'Unknown' |
GalleryTargetExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
extendedLocation | 擴充位置的名稱。 | GalleryExtendedLocation |
extendedLocationReplicaCount | 每個擴充位置要建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
名字 | 區域的名稱。 | 字串 |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Premium_LRS' 'StandardSSD_LRS' 'Standard_LRS' 'Standard_ZRS' |
Microsoft.Compute/galleries/applications/versions
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2024-03-03' |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 描述資源庫映像版本的屬性。 | GalleryApplicationVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Compute/galleries/applications/versions' |
OSDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
securityProfile | 此屬性會指定 OS 磁碟映像的安全性設定檔。 | OSDiskImageSecurityProfile |
OSDiskImageSecurityProfile
名字 | 描述 | 價值 |
---|---|---|
confidentialVMEncryptionType | 機密 VM 加密類型 | 'EncryptedVMGuestStateOnlyWithPmk' 'EncryptedWithCmk' 'EncryptedWithPmk' 'NonPersistedTPM' |
secureVMDiskEncryptionSetId | 安全的 VM 磁碟加密集標識符 | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
additionalReplicaSets | 具有復本計數來建立直接磁碟驅動器複本的記憶體 SKU 清單。 | AdditionalReplicaSet[] |
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
excludeFromLatest | 包含當使用者指定 version='latest' 時隱藏映射的旗標設定 | bool |
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
UserArtifactManage
名字 | 描述 | 價值 |
---|---|---|
安裝 | 必填。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
刪除 | 必填。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
更新 | 自選。 更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業將會在舊版上叫用 remove 命令,並在資源庫應用程式的目前版本上安裝命令。 這限制為 4096 個字元。 | 字串 |
UserArtifactSettings
名字 | 描述 | 價值 |
---|---|---|
configFileName | 自選。 要指派 VM 上下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔將會命名為附加 「_config」 的資源庫應用程式名稱。 | 字串 |
packageFileName | 自選。 要指派 VM 上下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 | 字串 |
scriptBehaviorAfterReboot | 自選。 在重新啟動時安裝/更新/移除資源庫應用程式的動作。 | 'None' 'Rerun' |
UserArtifactSource
名字 | 描述 | 價值 |
---|---|---|
defaultConfigurationLink | 自選。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 | 字串 |
mediaLink | 必填。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 | 字串 (必要) |
Terraform (AzAPI 提供者) 資源定義
資源庫/應用程式/版本資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/applications/versions 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries/applications/versions@2024-03-03"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
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"
scriptBehaviorAfterReboot = "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 = [
{
additionalReplicaSets = [
{
regionalReplicaCount = int
storageAccountType = "string"
}
]
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
}
}
})
}
屬性值
AdditionalReplicaSet
名字 | 描述 | 價值 |
---|---|---|
regionalReplicaCount | 要建立之映像版本的直接磁碟驅動器複本數目。此屬性是可更新的 | int |
storageAccountType | 指定要用來建立直接磁碟驅動器複本的記憶體帳戶類型 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
DataDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
EncryptionImages
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的加密規格清單。 | DataDiskImageEncryption[] |
osDiskImage | 包含 OS 磁碟映像的加密設定。 | OSDiskImageEncryption |
GalleryApplicationCustomAction
名字 | 描述 | 價值 |
---|---|---|
描述 | 說明可協助使用者瞭解此自定義動作的功能。 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
參數 | 這個自定義動作所使用的參數 | GalleryApplicationCustomActionParameter[] |
腳本 | 執行這個自定義動作時要執行的腳本。 | 字串 (必要) |
GalleryApplicationCustomActionParameter
名字 | 描述 | 價值 |
---|---|---|
defaultValue | 參數的預設值。 僅適用於字串類型 | 字串 |
描述 | 說明,可協助使用者瞭解此參數的意義 | 字串 |
名字 | 自定義動作的名稱。 資源庫應用程式版本內必須是唯一的。 | 字串 (必要) |
必填 | 指出在執行自定義動作時,是否必須傳遞此參數。 | bool |
類型 | 指定自訂動作參數的類型。 可能的值為:String、ConfigurationDataBlob 或 LogOutputBlob | 'ConfigurationDataBlob' 'LogOutputBlob' 'String' |
GalleryApplicationVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發行配置檔。 | GalleryApplicationVersionPublishingProfile (必要) |
safetyProfile | 資源庫應用程式版本的安全性配置檔。 | GalleryApplicationVersionSafetyProfile |
GalleryApplicationVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
advancedSettings | 自選。 要傳遞至 vm-application-manager 擴充功能的其他設定。 僅供進階使用。 | GalleryApplicationVersionPublishingProfileAdvancedSettings |
customActions | 可使用此資源庫應用程式版本執行的自定義動作清單。 | GalleryApplicationCustomAction[] |
enableHealthCheck | 自選。 此應用程式是否報告健康情況。 | bool |
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
manageActions | UserArtifactManage | |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
replicationMode | 選擇性參數,指定要用於複寫的模式。 這個屬性無法更新。 | 'Full' '淺層' |
設置 | 當 VM 應用程式部署至目標 VM 或 VM 擴展集時,包含目標套件和組態檔名稱的其他設定。 | UserArtifactSettings |
源 | 要從中建立映像版本的來源映像。 | UserArtifactSource (必要) |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
targetExtendedLocations | 要復寫映像版本的目標擴充位置。 這個屬性是可更新的。 | GalleryTargetExtendedLocation[] |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryApplicationVersionPublishingProfileAdvancedSettings
名字 | 描述 | 價值 |
---|
GalleryApplicationVersionSafetyProfile
名字 | 描述 | 價值 |
---|---|---|
allowDeletionOfReplicatedLocations | 指出是否允許從復寫區域移除此資源庫映像版本。 | bool |
GalleryExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
名字 | 字串 | |
類型 | 它是擴充位置的類型。 | 'EdgeZone' 'Unknown' |
GalleryTargetExtendedLocation
名字 | 描述 | 價值 |
---|---|---|
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
extendedLocation | 擴充位置的名稱。 | GalleryExtendedLocation |
extendedLocationReplicaCount | 每個擴充位置要建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
名字 | 區域的名稱。 | 字串 |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Premium_LRS' 'StandardSSD_LRS' 'Standard_LRS' 'Standard_ZRS' |
Microsoft.Compute/galleries/applications/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
parent_id | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:資源庫/應用程式 |
性能 | 描述資源庫映像版本的屬性。 | GalleryApplicationVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Compute/galleries/applications/versions@2024-03-03” |
OSDiskImageEncryption
名字 | 描述 | 價值 |
---|---|---|
diskEncryptionSetId | 包含磁碟加密集資源標識碼的相對URI。 | 字串 |
securityProfile | 此屬性會指定 OS 磁碟映像的安全性設定檔。 | OSDiskImageSecurityProfile |
OSDiskImageSecurityProfile
名字 | 描述 | 價值 |
---|---|---|
confidentialVMEncryptionType | 機密 VM 加密類型 | 'EncryptedVMGuestStateOnlyWithPmk' 'EncryptedWithCmk' 'EncryptedWithPmk' 'NonPersistedTPM' |
secureVMDiskEncryptionSetId | 安全的 VM 磁碟加密集標識符 | 字串 |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
additionalReplicaSets | 具有復本計數來建立直接磁碟驅動器複本的記憶體 SKU 清單。 | AdditionalReplicaSet[] |
加密 | 自選。 允許使用者提供客戶管理的金鑰,以加密資源庫成品中的 OS 和數據磁碟。 | EncryptionImages |
excludeFromLatest | 包含當使用者指定 version='latest' 時隱藏映射的旗標設定 | bool |
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'PremiumV2_LRS' 'Premium_LRS' 'Standard_LRS' 'Standard_ZRS' |
UserArtifactManage
名字 | 描述 | 價值 |
---|---|---|
安裝 | 必填。 安裝資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
刪除 | 必填。 要移除資源庫應用程式的路徑和自變數。 這限制為 4096 個字元。 | 字串 (必要) |
更新 | 自選。 更新資源庫應用程式的路徑和自變數。 如果沒有,則更新作業將會在舊版上叫用 remove 命令,並在資源庫應用程式的目前版本上安裝命令。 這限制為 4096 個字元。 | 字串 |
UserArtifactSettings
名字 | 描述 | 價值 |
---|---|---|
configFileName | 自選。 要指派 VM 上下載組態檔的名稱。 這限制為 4096 個字元。 如果未指定,組態檔將會命名為附加 「_config」 的資源庫應用程式名稱。 | 字串 |
packageFileName | 自選。 要指派 VM 上下載套件檔案的名稱。 這限制為 4096 個字元。 如果未指定,封裝檔案的名稱會與資源庫應用程式名稱相同。 | 字串 |
scriptBehaviorAfterReboot | 自選。 在重新啟動時安裝/更新/移除資源庫應用程式的動作。 | 'None' 'Rerun' |
UserArtifactSource
名字 | 描述 | 價值 |
---|---|---|
defaultConfigurationLink | 自選。 成品的 defaultConfigurationLink 必須是可讀取的記憶體分頁 Blob。 | 字串 |
mediaLink | 必填。 成品的 mediaLink 必須是可讀取的記憶體分頁 Blob。 | 字串 (必要) |