Bicep 資源定義
磁碟區資源類型可以使用目標作業來部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.NetworkCloud/volumes 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.NetworkCloud/volumes@2026-08-01-preview' = {
extendedLocation: {
name: 'string'
type: 'string'
}
location: 'string'
name: 'string'
properties: {
sizeMiB: int
storageApplianceId: 'string'
}
tags: {
{customized property}: 'string'
}
}
屬性值
Microsoft.NetworkCloud/卷
| Name | Description | 價值 |
|---|---|---|
| extendedLocation | 資源的延伸位置。 此特性在建立資源時是必需的。 | AzureResourceManagerCommonTypesExtendedLocation (required) |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 模式 = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$ (必要) |
| 屬性 | 資源屬性的清單。 | VolumeProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
AzureResourceManagerCommonTypesExtendedLocation
| Name | Description | 價值 |
|---|---|---|
| name | 擴充位置的名稱。 | 字串 (必要) |
| 型別 | 擴充位置的類型。 | “CustomLocation” 'EdgeZone' (必要) |
TrackedResourceTags
| Name | Description | 價值 |
|---|
VolumeProperties
| Name | Description | 價值 |
|---|---|---|
| 大小MiB | 磁區所要求的儲存體配置 (以 Mebibytes 為單位)。 | int 約束: 最小值 = 1 (必要) |
| 儲存裝置識別碼 | 代管磁碟區之儲存設備的資源 ID。 | 字串 |
ARM 樣本資源定義
磁碟區資源類型可以使用目標作業來部署:
使用範例
資源格式
若要建立 Microsoft.NetworkCloud/volumes 資源,請將下列 JSON 新增至您的範本。
{
"type": "Microsoft.NetworkCloud/volumes",
"apiVersion": "2026-08-01-preview",
"name": "string",
"extendedLocation": {
"name": "string",
"type": "string"
},
"location": "string",
"properties": {
"sizeMiB": "int",
"storageApplianceId": "string"
},
"tags": {
"{customized property}": "string"
}
}
屬性值
Microsoft.NetworkCloud/卷
| Name | Description | 價值 |
|---|---|---|
| apiVersion | API 版本 | 『2026-08-01-預覽』 |
| extendedLocation | 資源的延伸位置。 此特性在建立資源時是必需的。 | AzureResourceManagerCommonTypesExtendedLocation (required) |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 模式 = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$ (必要) |
| 屬性 | 資源屬性的清單。 | VolumeProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 請參閱範本中的 標籤 |
| 型別 | 資源類型 | “Microsoft.NetworkCloud/卷” |
AzureResourceManagerCommonTypesExtendedLocation
| Name | Description | 價值 |
|---|---|---|
| name | 擴充位置的名稱。 | 字串 (必要) |
| 型別 | 擴充位置的類型。 | “CustomLocation” 'EdgeZone' (必要) |
TrackedResourceTags
| Name | Description | 價值 |
|---|
VolumeProperties
| Name | Description | 價值 |
|---|---|---|
| 大小MiB | 磁區所要求的儲存體配置 (以 Mebibytes 為單位)。 | int 約束: 最小值 = 1 (必要) |
| 儲存裝置識別碼 | 代管磁碟區之儲存設備的資源 ID。 | 字串 |
Terraform (AzAPI 提供者) 資源定義
磁碟區資源類型可以使用目標作業來部署:
- 資源團體 關於每個 API 版本變更屬性的清單,請參見 變更日誌。
資源格式
若要建立 Microsoft.NetworkCloud/volumes 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.NetworkCloud/volumes@2026-08-01-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
extendedLocation = {
name = "string"
type = "string"
}
properties = {
sizeMiB = int
storageApplianceId = "string"
}
}
}
屬性值
Microsoft.NetworkCloud/卷
| Name | Description | 價值 |
|---|---|---|
| extendedLocation | 資源的延伸位置。 此特性在建立資源時是必需的。 | AzureResourceManagerCommonTypesExtendedLocation (required) |
| 位置 | 資源所在的地理位置 | 字串 (必要) |
| name | 資源名稱 | string 約束: 模式 = ^([a-zA-Z0-9][a-zA-Z0-9-_]{0,62}[a-zA-Z0-9])$ (必要) |
| 屬性 | 資源屬性的清單。 | VolumeProperties (必要) |
| 標籤 | 資源標籤 | 標記名稱和值的字典。 |
| 型別 | 資源類型 | 「Microsoft。NetworkCloud/volumes@2026-08-01-預覽」 |
AzureResourceManagerCommonTypesExtendedLocation
| Name | Description | 價值 |
|---|---|---|
| name | 擴充位置的名稱。 | 字串 (必要) |
| 型別 | 擴充位置的類型。 | “CustomLocation” 'EdgeZone' (必要) |
TrackedResourceTags
| Name | Description | 價值 |
|---|
VolumeProperties
| Name | Description | 價值 |
|---|---|---|
| 大小MiB | 磁區所要求的儲存體配置 (以 Mebibytes 為單位)。 | int 約束: 最小值 = 1 (必要) |
| 儲存裝置識別碼 | 代管磁碟區之儲存設備的資源 ID。 | 字串 |