Microsoft.AzureStackHCI marketplacegalleryimages 2021-09-01-preview
Bicep 資源定義
marketplacegalleryimages 資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄。
資源格式
若要建立 Microsoft.AzureStackHCI/marketplacegalleryimages 資源,請將下列 Bicep 新增至您的範本。
resource symbolicname 'Microsoft.AzureStackHCI/marketplacegalleryimages@2021-09-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
extendedLocation: {
name: 'string'
type: 'CustomLocation'
}
properties: {
cloudInitDataSource: 'string'
containerName: 'string'
hyperVGeneration: 'string'
identifier: {
offer: 'string'
publisher: 'string'
sku: 'string'
}
osType: 'string'
resourceName: 'string'
version: {
name: 'string'
properties: {
storageProfile: {
osDiskImage: {}
}
}
}
}
}
屬性值
marketplacegalleryimages
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 | 字串 (必要) |
location | 資源所在的地理位置 | 字串 (必要) |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標記 |
extendedLocation | 資源的 extendedLocation。 | ExtendedLocation |
properties | Marketplace 資源庫映射資源的屬性 | MarketplacegalleryimagesProperties |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | 'CustomLocation' |
MarketplacegalleryimagesProperties
名稱 | 描述 | 值 |
---|---|---|
cloudInitDataSource | 使用 cloud-init 布建時資源庫映射的數據源 [Azure, NoCloud] | 'Azure' 'NoCloud' |
containerName | 記憶體容器的容器名稱 | 字串 |
hyperVGeneration | 虛擬機的 Hypervisor 產生 [V1, V2] | 'V1' 'V2' |
識別碼 (identifier) | 這是資源庫映像定義標識碼。 | GalleryImageIdentifier |
osType | 資源庫映像使用的作業系統類型。 必須是Linux或視窗 | 'Linux' 'Windows' |
resourceName | 要用於moc的物件名稱 | 字串 |
version | 指定您要建立或更新之資源庫映像版本的相關信息。 | GalleryImageVersion |
GalleryImageIdentifier
名稱 | 描述 | 值 |
---|---|---|
供應項目 | 資源庫映像定義供應項目的名稱。 | 字串 (必要) |
publisher | 資源庫映像定義發行者的名稱。 | 字串 (必要) |
sku | 資源庫映像定義 SKU 的名稱。 | 字串 (必要) |
GalleryImageVersion
名稱 | 描述 | 值 |
---|---|---|
NAME | 這是資源庫映像的版本。 | 字串 |
properties | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
GalleryImageVersionProperties
名稱 | 描述 | 值 |
---|---|---|
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionStorageProfile
名稱 | 描述 | 值 |
---|---|---|
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
GalleryOSDiskImage
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
從 Marketplace 映射建立 Azure Stack HCI 映射 |
此範本會從 Azure Marketplace 資源庫映像建立 Azure Stack HCI 映像。 |
ARM 範本資源定義
marketplacegalleryimages 資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.AzureStackHCI/marketplacegalleryimages 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.AzureStackHCI/marketplacegalleryimages",
"apiVersion": "2021-09-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"extendedLocation": {
"name": "string",
"type": "CustomLocation"
},
"properties": {
"cloudInitDataSource": "string",
"containerName": "string",
"hyperVGeneration": "string",
"identifier": {
"offer": "string",
"publisher": "string",
"sku": "string"
},
"osType": "string",
"resourceName": "string",
"version": {
"name": "string",
"properties": {
"storageProfile": {
"osDiskImage": {}
}
}
}
}
}
屬性值
marketplacegalleryimages
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.AzureStackHCI/marketplacegalleryimages' |
apiVersion | 資源 API 版本 | '2021-09-01-preview' |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
extendedLocation | 資源的 extendedLocation。 | ExtendedLocation |
properties | Marketplace 資源庫映射資源的屬性 | MarketplacegalleryimagesProperties |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | 'CustomLocation' |
MarketplacegalleryimagesProperties
名稱 | 描述 | 值 |
---|---|---|
cloudInitDataSource | 使用 cloud-init 布建時資源庫映射的數據源 [Azure, NoCloud] | 'Azure' 'NoCloud' |
containerName | 記憶體容器的容器名稱 | 字串 |
hyperVGeneration | 虛擬機的 Hypervisor 產生 [V1, V2] | 'V1' 'V2' |
識別碼 (identifier) | 這是資源庫映像定義標識碼。 | GalleryImageIdentifier |
osType | 資源庫映像所使用的作業系統類型。 必須是Linux或視窗 | 'Linux' 'Windows' |
resourceName | 要用於moc的物件名稱 | 字串 |
version | 指定您要建立或更新之資源庫映像版本的相關信息。 | GalleryImageVersion |
GalleryImageIdentifier
名稱 | 描述 | 值 |
---|---|---|
供應項目 | 資源庫映像定義供應項目的名稱。 | 需要字串 () |
publisher | 資源庫映像定義發行者的名稱。 | 需要字串 () |
sku | 資源庫映像定義 SKU 的名稱。 | 需要字串 () |
GalleryImageVersion
名稱 | 描述 | 值 |
---|---|---|
NAME | 這是資源庫映像的版本。 | 字串 |
properties | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
GalleryImageVersionProperties
名稱 | 描述 | 值 |
---|---|---|
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionStorageProfile
名稱 | 描述 | 值 |
---|---|---|
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
GalleryOSDiskImage
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
快速入門範本
下列快速入門範本會部署此資源類型。
範本 | 描述 |
---|---|
從 Marketplace 映射建立 Azure Stack HCI 映射 |
此範本會從 Azure Marketplace 資源庫映像建立 Azure Stack HCI 映像。 |
Terraform (AzAPI 提供者) 資源定義
marketplacegalleryimages 資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.AzureStackHCI/marketplacegalleryimages 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.AzureStackHCI/marketplacegalleryimages@2021-09-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
body = jsonencode({
properties = {
cloudInitDataSource = "string"
containerName = "string"
hyperVGeneration = "string"
identifier = {
offer = "string"
publisher = "string"
sku = "string"
}
osType = "string"
resourceName = "string"
version = {
name = "string"
properties = {
storageProfile = {
osDiskImage = {}
}
}
}
}
extendedLocation = {
name = "string"
type = "CustomLocation"
}
})
}
屬性值
marketplacegalleryimages
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.AzureStackHCI/marketplacegalleryimages@2021-09-01-preview” |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
parent_id | 若要部署至資源群組,請使用該資源群組的標識碼。 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 |
extendedLocation | 資源的 extendedLocation。 | ExtendedLocation |
properties | Marketplace 資源庫映射資源的屬性 | MarketplacegalleryimagesProperties |
ExtendedLocation
名稱 | 描述 | 值 |
---|---|---|
NAME | 擴充位置的名稱。 | 字串 |
type | 擴充位置的類型。 | “CustomLocation” |
MarketplacegalleryimagesProperties
名稱 | 描述 | 值 |
---|---|---|
cloudInitDataSource | 使用 cloud-init 布建時資源庫映射的數據源 [Azure, NoCloud] | “Azure” “NoCloud” |
containerName | 記憶體容器的容器名稱 | 字串 |
hyperVGeneration | 虛擬機的 Hypervisor 產生 [V1, V2] | “V1” “V2” |
識別碼 (identifier) | 這是資源庫映像定義標識碼。 | GalleryImageIdentifier |
osType | 資源庫映像所使用的作業系統類型。 必須是Linux或視窗 | "Linux" "Windows" |
resourceName | 要用於moc的物件名稱 | 字串 |
version | 指定您要建立或更新之資源庫映像版本的相關信息。 | GalleryImageVersion |
GalleryImageIdentifier
名稱 | 描述 | 值 |
---|---|---|
供應項目 | 資源庫映像定義供應項目的名稱。 | 需要字串 () |
publisher | 資源庫映像定義發行者的名稱。 | 需要字串 () |
sku | 資源庫映像定義 SKU 的名稱。 | 需要字串 () |
GalleryImageVersion
名稱 | 描述 | 值 |
---|---|---|
NAME | 這是資源庫映像的版本。 | 字串 |
properties | 描述資源庫映像版本的屬性。 | GalleryImageVersionProperties |
GalleryImageVersionProperties
名稱 | 描述 | 值 |
---|---|---|
storageProfile | 這是資源庫映像版本的記憶體配置檔。 | GalleryImageVersionStorageProfile (必要) |
GalleryImageVersionStorageProfile
名稱 | 描述 | 值 |
---|---|---|
osDiskImage | 這是OS磁碟映像。 | GalleryOSDiskImage |
GalleryOSDiskImage
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應