Microsoft。AzureStackHCI marketplaceGalleryImages

Bicep 資源定義

marketplaceGalleryImages 資源類型可以使用目標作業來部署:

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

使用範例

Azure 已驗證的模組

以下的 Azure 已驗證模組 可用於部署此資源類型。

模組 說明
Azure Stack HCI 市場圖庫圖片 AVM Resource Module for Azure Stack HCI Marketplace Gallery Image

Azure 快速入門範例

以下的 Azure 快速啟動範本 包含用於部署此資源類型的 Bicep 範例。

Bicep 檔案 說明
從 Marketplace Image 此範本會從 Azure Marketplace 圖庫映像建立 Azure Stack HCI 映像。

資源格式

若要建立 Microsoft.AzureStackHCI/marketplaceGalleryImages 資源,請將下列 Bicep 新增至範本。

resource symbolicname 'Microsoft.AzureStackHCI/marketplaceGalleryImages@2026-07-01-preview' = {
  extendedLocation: {
    name: 'string'
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    cloudInitDataSource: 'string'
    containerId: 'string'
    hyperVGeneration: 'string'
    identifier: {
      offer: 'string'
      publisher: 'string'
      sku: 'string'
    }
    osType: 'string'
    version: {
      name: 'string'
      properties: {
        storageProfile: {
          osDiskImage: {}
        }
      }
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.AzureStackHCI/marketplaceGalleryImages

名稱 說明 價值觀
extendedLocation 資源的 extendedLocation。 擴展位置
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要)
屬性 此資源的資源特定屬性。 MarketplaceGalleryImageProperties
標記 資源標籤 標記名稱和值的字典。 請參考模板中的標籤

擴展位置

名稱 說明 價值觀
名稱 擴充位置的名稱。 字串
型別 擴充位置的類型。 “CustomLocation”

圖庫圖像識別碼

名稱 說明 價值觀
供應項目 資源庫映像定義供應項目的名稱。 字串 (必要)
發行者 畫廊名稱 圖片定義 publisher。 字串 (必要)
SKU 資源庫映像定義 SKU 的名稱。 字串 (必要)

圖庫圖像版本

名稱 說明 價值觀
名稱 這是資源庫映像的版本。 字串
屬性 描述資源庫映像版本的屬性。 GalleryImageVersion屬性

GalleryImageVersion屬性

名稱 說明 價值觀
storageProfile 這是圖庫圖片版本的storage個人檔案。 GalleryImageVersionStorageProfile (必要)

GalleryImageVersionStorageProfile

名稱 說明 價值觀
osDiskImage作系統 這是OS磁碟映像。 圖庫OSDiskImage

圖庫OSDiskImage

名稱 說明 價值觀

MarketplaceGalleryImageProperties

名稱 說明 價值觀
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 是用於市集圖庫圖片的 storage container 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] '不適用'
'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

TrackedResourceTags

名稱 說明 價值觀

ARM 樣本資源定義

marketplaceGalleryImages 資源類型可以使用目標作業來部署:

使用範例

Azure Quickstart templates

以下的 Azure 快速起始範本部署此資源類型。

範本 說明
從 Marketplace Image

部署至Azure
此範本會從 Azure Marketplace 圖庫映像建立 Azure Stack HCI 映像。

資源格式

若要建立 Microsoft.AzureStackHCI/marketplaceGalleryImages 資源,請將下列 JSON 新增至範本。

{
  "type": "Microsoft.AzureStackHCI/marketplaceGalleryImages",
  "apiVersion": "2026-07-01-preview",
  "name": "string",
  "extendedLocation": {
    "name": "string",
    "type": "string"
  },
  "location": "string",
  "properties": {
    "cloudInitDataSource": "string",
    "containerId": "string",
    "hyperVGeneration": "string",
    "identifier": {
      "offer": "string",
      "publisher": "string",
      "sku": "string"
    },
    "osType": "string",
    "version": {
      "name": "string",
      "properties": {
        "storageProfile": {
          "osDiskImage": {
          }
        }
      }
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.AzureStackHCI/marketplaceGalleryImages

名稱 說明 價值觀
apiVersion API 版本 『2026-07-01-預覽』
extendedLocation 資源的 extendedLocation。 擴展位置
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要)
屬性 此資源的資源特定屬性。 MarketplaceGalleryImageProperties
標記 資源標籤 標記名稱和值的字典。 請參考模板中的標籤
型別 資源類型 “Microsoft.AzureStackHCI/marketplaceGalleryImages”

擴展位置

名稱 說明 價值觀
名稱 擴充位置的名稱。 字串
型別 擴充位置的類型。 “CustomLocation”

圖庫圖像識別碼

名稱 說明 價值觀
供應項目 資源庫映像定義供應項目的名稱。 字串 (必要)
發行者 畫廊名稱 圖片定義 publisher。 字串 (必要)
SKU 資源庫映像定義 SKU 的名稱。 字串 (必要)

圖庫圖像版本

名稱 說明 價值觀
名稱 這是資源庫映像的版本。 字串
屬性 描述資源庫映像版本的屬性。 GalleryImageVersion屬性

GalleryImageVersion屬性

名稱 說明 價值觀
storageProfile 這是圖庫圖片版本的storage個人檔案。 GalleryImageVersionStorageProfile (必要)

GalleryImageVersionStorageProfile

名稱 說明 價值觀
osDiskImage作系統 這是OS磁碟映像。 圖庫OSDiskImage

圖庫OSDiskImage

名稱 說明 價值觀

MarketplaceGalleryImageProperties

名稱 說明 價值觀
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 是用於市集圖庫圖片的 storage container 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] '不適用'
'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

TrackedResourceTags

名稱 說明 價值觀

Terraform (AzAPI 提供者) 資源定義

marketplaceGalleryImages 資源類型可以使用目標作業來部署:

  • 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。

資源格式

若要建立 Microsoft.AzureStackHCI/marketplaceGalleryImages 資源,請將下列 Terraform 新增至範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AzureStackHCI/marketplaceGalleryImages@2026-07-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    extendedLocation = {
      name = "string"
      type = "string"
    }
    properties = {
      cloudInitDataSource = "string"
      containerId = "string"
      hyperVGeneration = "string"
      identifier = {
        offer = "string"
        publisher = "string"
        sku = "string"
      }
      osType = "string"
      version = {
        name = "string"
        properties = {
          storageProfile = {
            osDiskImage = {
            }
          }
        }
      }
    }
  }
}

屬性值

Microsoft.AzureStackHCI/marketplaceGalleryImages

名稱 說明 價值觀
extendedLocation 資源的 extendedLocation。 擴展位置
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

約束:
模式 = ^[a-zA-Z0-9]$|^[a-zA-Z0-9][-._a-zA-Z0-9]{0,62}[a-zA-Z0-9]$ (必要)
屬性 此資源的資源特定屬性。 MarketplaceGalleryImageProperties
標記 資源標籤 標記名稱和值的字典。
型別 資源類型 “Microsoft.AzureStackHCI/marketplaceGalleryImages@2026-07-01-preview”

擴展位置

名稱 說明 價值觀
名稱 擴充位置的名稱。 字串
型別 擴充位置的類型。 “CustomLocation”

圖庫圖像識別碼

名稱 說明 價值觀
供應項目 資源庫映像定義供應項目的名稱。 字串 (必要)
發行者 畫廊名稱 圖片定義 publisher。 字串 (必要)
SKU 資源庫映像定義 SKU 的名稱。 字串 (必要)

圖庫圖像版本

名稱 說明 價值觀
名稱 這是資源庫映像的版本。 字串
屬性 描述資源庫映像版本的屬性。 GalleryImageVersion屬性

GalleryImageVersion屬性

名稱 說明 價值觀
storageProfile 這是圖庫圖片版本的storage個人檔案。 GalleryImageVersionStorageProfile (必要)

GalleryImageVersionStorageProfile

名稱 說明 價值觀
osDiskImage作系統 這是OS磁碟映像。 圖庫OSDiskImage

圖庫OSDiskImage

名稱 說明 價值觀

MarketplaceGalleryImageProperties

名稱 說明 價值觀
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 是用於市集圖庫圖片的 storage container 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] '不適用'
'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

TrackedResourceTags

名稱 說明 價值觀