Microsoft.Compute 資源庫/images/2019-03-01 版
Bicep 資源定義
資源庫/映射/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Compute/galleries/images/versions@2019-03-01' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
publishingProfile: {
endOfLifeDate: 'string'
excludeFromLatest: bool
replicaCount: int
source: {
managedImage: {
id: 'string'
}
}
storageAccountType: 'string'
targetRegions: [
{
name: 'string'
regionalReplicaCount: int
storageAccountType: 'string'
}
]
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
GalleryArtifactSource
GalleryImageVersionProperties
GalleryImageVersionPublishingProfile
名字 |
描述 |
價值 |
endOfLifeDate |
資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 |
字串 |
excludeFromLatest |
如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 |
bool |
replicaCount |
要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 |
int |
源 |
要從中建立映像版本的來源映像。 |
GalleryArtifactSource (必要) |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |
targetRegions |
要復寫映像版本的目標區域。 這個屬性是可更新的。 |
TargetRegion[] |
ManagedArtifact
名字 |
描述 |
價值 |
id |
受控成品標識碼。 |
字串 (必要) |
Microsoft.Compute/galleries/images/versions
TargetRegion
名字 |
描述 |
價值 |
名字 |
區域的名稱。 |
字串 (必要) |
regionalReplicaCount |
要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 |
int |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |
ARM 樣本資源定義
資源庫/映射/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Compute/galleries/images/versions",
"apiVersion": "2019-03-01",
"name": "string",
"location": "string",
"properties": {
"publishingProfile": {
"endOfLifeDate": "string",
"excludeFromLatest": "bool",
"replicaCount": "int",
"source": {
"managedImage": {
"id": "string"
}
},
"storageAccountType": "string",
"targetRegions": [
{
"name": "string",
"regionalReplicaCount": "int",
"storageAccountType": "string"
}
]
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
GalleryArtifactSource
GalleryImageVersionProperties
GalleryImageVersionPublishingProfile
名字 |
描述 |
價值 |
endOfLifeDate |
資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 |
字串 |
excludeFromLatest |
如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 |
bool |
replicaCount |
要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 |
int |
源 |
要從中建立映像版本的來源映像。 |
GalleryArtifactSource (必要) |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |
targetRegions |
要復寫映像版本的目標區域。 這個屬性是可更新的。 |
TargetRegion[] |
ManagedArtifact
名字 |
描述 |
價值 |
id |
受控成品標識碼。 |
字串 (必要) |
Microsoft.Compute/galleries/images/versions
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2019-03-01' |
位置 |
資源位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
性能 |
描述資源庫映像版本的屬性。 |
GalleryImageVersionProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 |
資源類型 |
'Microsoft.Compute/galleries/images/versions' |
TargetRegion
名字 |
描述 |
價值 |
名字 |
區域的名稱。 |
字串 (必要) |
regionalReplicaCount |
要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 |
int |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 |
描述 |
在 Azure 計算資源庫中建立映像版本
|
此範本可讓您在 Azure 計算資源庫中建立簡單的映像版本。 部署之前,請確定您已執行 Azure 計算資源庫 101 範本和映像定義 101 範本。 |
資源庫/映射/版本資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries/images/versions@2019-03-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
publishingProfile = {
endOfLifeDate = "string"
excludeFromLatest = bool
replicaCount = int
source = {
managedImage = {
id = "string"
}
}
storageAccountType = "string"
targetRegions = [
{
name = "string"
regionalReplicaCount = int
storageAccountType = "string"
}
]
}
}
})
}
屬性值
GalleryArtifactSource
GalleryImageVersionProperties
GalleryImageVersionPublishingProfile
名字 |
描述 |
價值 |
endOfLifeDate |
資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 |
字串 |
excludeFromLatest |
如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 |
bool |
replicaCount |
要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 |
int |
源 |
要從中建立映像版本的來源映像。 |
GalleryArtifactSource (必要) |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |
targetRegions |
要復寫映像版本的目標區域。 這個屬性是可更新的。 |
TargetRegion[] |
ManagedArtifact
名字 |
描述 |
價值 |
id |
受控成品標識碼。 |
字串 (必要) |
Microsoft.Compute/galleries/images/versions
名字 |
描述 |
價值 |
位置 |
資源位置 |
字串 (必要) |
名字 |
資源名稱 |
字串 (必要) |
parent_id |
此資源為父系之資源的標識碼。 |
類型資源的標識碼:資源庫/映像 |
性能 |
描述資源庫映像版本的屬性。 |
GalleryImageVersionProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 |
類型 |
資源類型 |
“Microsoft.Compute/galleries/images/versions@2019-03-01” |
TargetRegion
名字 |
描述 |
價值 |
名字 |
區域的名稱。 |
字串 (必要) |
regionalReplicaCount |
要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 |
int |
storageAccountType |
指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 |
'Standard_LRS' 'Standard_ZRS' |