Microsoft.AzureStackHCI 資源庫Images 2025-04-01-preview

Bicep 資源定義

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

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

資源格式

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

resource symbolicname 'Microsoft.AzureStackHCI/galleryImages@2025-04-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'
    }
    imagePath: 'string'
    osType: 'string'
    sourceVirtualMachineId: 'string'
    version: {
      name: 'string'
      properties: {
        storageProfile: {
          osDiskImage: {}
        }
      }
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.AzureStackHCI/galleryImages

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

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

擴展位置

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

圖庫圖像識別碼

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

GalleryImageProperties (畫廊圖像屬性)

名稱 說明 價值
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 用於畫廊影像的 storage 容器 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] 'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
圖像路徑 資源庫映像應從中建立映像的位置 字串

約束:
敏感性值。 以安全參數的形式傳入。
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
源 VirtualMachineId 來源虛擬機的資源標識碼,其操作系統磁碟是資源庫映像建立來源虛擬機。 字串
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

圖庫圖像版本

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

GalleryImageVersion屬性

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

GalleryImageVersionStorageProfile

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

圖庫OSDiskImage

名稱 說明 價值

TrackedResourceTags

名稱 說明 價值

ARM 樣本資源定義

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

使用範例

資源格式

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

{
  "type": "Microsoft.AzureStackHCI/galleryImages",
  "apiVersion": "2025-04-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"
    },
    "imagePath": "string",
    "osType": "string",
    "sourceVirtualMachineId": "string",
    "version": {
      "name": "string",
      "properties": {
        "storageProfile": {
          "osDiskImage": {
          }
        }
      }
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.AzureStackHCI/galleryImages

名稱 說明 價值
apiVersion API 版本 “2025-04-01-預覽”
extendedLocation 資源的 extendedLocation。 擴展位置
位置 資源所在的地理位置 字串 (必要)
名稱 資源名稱 字串

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

擴展位置

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

圖庫圖像識別碼

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

GalleryImageProperties (畫廊圖像屬性)

名稱 說明 價值
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 用於畫廊影像的 storage 容器 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] 'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
圖像路徑 資源庫映像應從中建立映像的位置 字串

約束:
敏感性值。 以安全參數的形式傳入。
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
源 VirtualMachineId 來源虛擬機的資源標識碼,其操作系統磁碟是資源庫映像建立來源虛擬機。 字串
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

圖庫圖像版本

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

GalleryImageVersion屬性

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

GalleryImageVersionStorageProfile

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

圖庫OSDiskImage

名稱 說明 價值

TrackedResourceTags

名稱 說明 價值

Terraform (AzAPI 提供者) 資源定義

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

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AzureStackHCI/galleryImages@2025-04-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"
      }
      imagePath = "string"
      osType = "string"
      sourceVirtualMachineId = "string"
      version = {
        name = "string"
        properties = {
          storageProfile = {
            osDiskImage = {
            }
          }
        }
      }
    }
  }
}

屬性值

Microsoft.AzureStackHCI/galleryImages

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

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

擴展位置

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

圖庫圖像識別碼

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

GalleryImageProperties (畫廊圖像屬性)

名稱 說明 價值
cloudInitDataSource 用 cloud-init 配置圖庫映像檔的資料來源 [NoCloud, Azure] 'Azure'
'無雲'
容器識別碼 Storage ContainerID 用於畫廊影像的 storage 容器 字串
hyperVGeneration 虛擬機的 Hypervisor 產生 [V1, V2] 'V1'
“V2”
識別碼 這是資源庫映像定義標識碼。 圖庫圖像識別碼
圖像路徑 資源庫映像應從中建立映像的位置 字串

約束:
敏感性值。 以安全參數的形式傳入。
osType 資源庫映像使用的作業系統類型 [Windows, Linux] 'Linux的'
'Windows' (必要)
源 VirtualMachineId 來源虛擬機的資源標識碼,其操作系統磁碟是資源庫映像建立來源虛擬機。 字串
版本 指定您要建立或更新之資源庫映像版本的相關信息。 圖庫圖像版本

圖庫圖像版本

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

GalleryImageVersion屬性

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

GalleryImageVersionStorageProfile

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

圖庫OSDiskImage

名稱 說明 價值

TrackedResourceTags

名稱 說明 價值