Microsoft.AzureStackHCI 儲存容器 2024-08-01-preview

Bicep 資源定義

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

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

使用範例

Azure 快速入門範例

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

Bicep 檔案 說明
建立Azure Stack人機互動Storage路徑 此範本會建立一個 Azure Stack HCI Storage Path/Container,代表 Azure Stack HCI 叢集上的實體路徑。

資源格式

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

resource symbolicname 'Microsoft.AzureStackHCI/storageContainers@2024-08-01-preview' = {
  extendedLocation: {
    name: 'string'
    type: 'string'
  }
  location: 'string'
  name: 'string'
  properties: {
    path: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

屬性值

Microsoft.AzureStackHCI/storageContainers

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

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

擴展位置

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

StorageContainerProperties

名稱 說明 價值觀
路徑 storage 容器在磁碟上的路徑 字串 (必要)

TrackedResourceTags

名稱 說明 價值觀

ARM 樣本資源定義

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

使用範例

Azure Quickstart templates

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

範本 說明
建立Azure Stack人機互動Storage路徑

部署至Azure
此範本會建立一個 Azure Stack HCI Storage Path/Container,代表 Azure Stack HCI 叢集上的實體路徑。

資源格式

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

{
  "type": "Microsoft.AzureStackHCI/storageContainers",
  "apiVersion": "2024-08-01-preview",
  "name": "string",
  "extendedLocation": {
    "name": "string",
    "type": "string"
  },
  "location": "string",
  "properties": {
    "path": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

屬性值

Microsoft.AzureStackHCI/storageContainers

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

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

擴展位置

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

StorageContainerProperties

名稱 說明 價值觀
路徑 storage 容器在磁碟上的路徑 字串 (必要)

TrackedResourceTags

名稱 說明 價值觀

Terraform (AzAPI 提供者) 資源定義

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

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

資源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.AzureStackHCI/storageContainers@2024-08-01-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    extendedLocation = {
      name = "string"
      type = "string"
    }
    properties = {
      path = "string"
    }
  }
}

屬性值

Microsoft.AzureStackHCI/storageContainers

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

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

擴展位置

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

StorageContainerProperties

名稱 說明 價值觀
路徑 storage 容器在磁碟上的路徑 字串 (必要)

TrackedResourceTags

名稱 說明 價值觀