Microsoft.Compute galleries/images/versions 2019-07-01
Bicep 資源定義
資源庫/映射/版本資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.Compute/galleries/images/versions@2019-07-01' = {
parent: resourceSymbolicName
location: 'string'
name: 'string'
properties: {
publishingProfile: {
endOfLifeDate: 'string'
excludeFromLatest: bool
replicaCount: int
storageAccountType: 'string'
targetRegions: [
{
name: 'string'
regionalReplicaCount: int
storageAccountType: 'string'
}
]
}
storageProfile: {
dataDiskImages: [
{
hostCaching: 'string'
lun: int
source: {
id: 'string'
}
}
]
osDiskImage: {
hostCaching: 'string'
source: {
id: 'string'
}
}
source: {
id: 'string'
}
}
}
tags: {
{customized property}: 'string'
}
}
屬性值
GalleryArtifactVersionSource
名字 | 描述 | 價值 |
---|---|---|
id | 資源庫成品版本來源的標識碼。 可以指定磁碟 URI、快照集 URI 或使用者映像。 | 字串 |
GalleryDataDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryImageVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發佈配置檔。 | GalleryImageVersionPublishingProfile |
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryImageVersionStorageProfile
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的清單。 | GalleryDataDiskImage[] |
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryOSDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
Microsoft.Compute/galleries/images/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
父母 | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增這個屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱:資源庫/影像 |
性能 | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |
ARM 樣本資源定義
資源庫/映射/版本資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.Compute/galleries/images/versions",
"apiVersion": "2019-07-01",
"name": "string",
"location": "string",
"properties": {
"publishingProfile": {
"endOfLifeDate": "string",
"excludeFromLatest": "bool",
"replicaCount": "int",
"storageAccountType": "string",
"targetRegions": [
{
"name": "string",
"regionalReplicaCount": "int",
"storageAccountType": "string"
}
]
},
"storageProfile": {
"dataDiskImages": [
{
"hostCaching": "string",
"lun": "int",
"source": {
"id": "string"
}
}
],
"osDiskImage": {
"hostCaching": "string",
"source": {
"id": "string"
}
},
"source": {
"id": "string"
}
}
},
"tags": {
"{customized property}": "string"
}
}
屬性值
GalleryArtifactVersionSource
名字 | 描述 | 價值 |
---|---|---|
id | 資源庫成品版本來源的標識碼。 可以指定磁碟 URI、快照集 URI 或使用者映像。 | 字串 |
GalleryDataDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryImageVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發佈配置檔。 | GalleryImageVersionPublishingProfile |
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryImageVersionStorageProfile
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的清單。 | GalleryDataDiskImage[] |
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryOSDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
Microsoft.Compute/galleries/images/versions
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2019-07-01' |
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
性能 | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 | 資源類型 | 'Microsoft.Compute/galleries/images/versions' |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
在 Azure 計算資源庫中建立映像版本 |
此範本可讓您在 Azure 計算資源庫中建立簡單的映像版本。 部署之前,請確定您已執行 Azure 計算資源庫 101 範本和映像定義 101 範本。 |
Terraform (AzAPI 提供者) 資源定義
資源庫/映射/版本資源類型可以使用目標作業來部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.Compute/galleries/images/versions 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Compute/galleries/images/versions@2019-07-01"
name = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = jsonencode({
properties = {
publishingProfile = {
endOfLifeDate = "string"
excludeFromLatest = bool
replicaCount = int
storageAccountType = "string"
targetRegions = [
{
name = "string"
regionalReplicaCount = int
storageAccountType = "string"
}
]
}
storageProfile = {
dataDiskImages = [
{
hostCaching = "string"
lun = int
source = {
id = "string"
}
}
]
osDiskImage = {
hostCaching = "string"
source = {
id = "string"
}
}
source = {
id = "string"
}
}
}
})
}
屬性值
GalleryArtifactVersionSource
名字 | 描述 | 價值 |
---|---|---|
id | 資源庫成品版本來源的標識碼。 可以指定磁碟 URI、快照集 URI 或使用者映像。 | 字串 |
GalleryDataDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
倫 | 這個屬性會指定數據磁碟的邏輯單位編號。 此值是用來識別虛擬機內的數據磁碟,因此對於連結至虛擬機的每個數據磁碟而言都必須是唯一的。 | int (必要) |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryImageVersionProperties
名字 | 描述 | 價值 |
---|---|---|
publishingProfile | 資源庫映像版本的發佈配置檔。 | GalleryImageVersionPublishingProfile |
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionPublishingProfile
名字 | 描述 | 價值 |
---|---|---|
endOfLifeDate | 資源庫映像版本的生命週期結束日期。 這個屬性可用於解除委任用途。 這個屬性是可更新的。 | 字串 |
excludeFromLatest | 如果設定為 true,從最新版映像定義的虛擬機將不會使用此映像版本。 | bool |
replicaCount | 要為每個區域建立之映像版本的複本數目。 如果未指定 regionReplicaCount,這個屬性就會對區域生效。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |
targetRegions | 要復寫映像版本的目標區域。 這個屬性是可更新的。 | TargetRegion[] |
GalleryImageVersionStorageProfile
名字 | 描述 | 價值 |
---|---|---|
dataDiskImages | 數據磁碟映像的清單。 | GalleryDataDiskImage[] |
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
GalleryOSDiskImage
名字 | 描述 | 價值 |
---|---|---|
hostCaching | 磁碟的主機快取。 有效值為 'None'、'ReadOnly' 和 'ReadWrite' | 'None' 'ReadOnly' 'ReadWrite' |
源 | 資源庫成品版本來源。 | GalleryArtifactVersionSource |
Microsoft.Compute/galleries/images/versions
名字 | 描述 | 價值 |
---|---|---|
位置 | 資源位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 (必要) |
parent_id | 此資源為父系之資源的標識碼。 | 類型資源的標識碼:資源庫/映像 |
性能 | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.Compute/galleries/images/versions@2019-07-01” |
ResourceTags
名字 | 描述 | 價值 |
---|
TargetRegion
名字 | 描述 | 價值 |
---|---|---|
名字 | 區域的名稱。 | 字串 (必要) |
regionalReplicaCount | 要為每個區域建立之映像版本的複本數目。 這個屬性是可更新的。 | int |
storageAccountType | 指定要用來儲存映像的記憶體帳戶類型。 這個屬性無法更新。 | 'Standard_LRS' 'Standard_ZRS' |