你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.Compute diskAccesses 2023-01-02

Bicep 资源定义

diskAccesses 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskAccesses 资源,请将以下 Bicep 添加到模板。

resource symbolicname 'Microsoft.Compute/diskAccesses@2023-01-02' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  extendedLocation: {
    name: 'string'
    type: 'EdgeZone'
  }
  properties: {}
}

属性值

diskAccesses

名称 说明
name 资源名称 字符串 (必需)
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
extendedLocation 将在其中创建磁盘访问的扩展位置。 无法更改扩展位置。 ExtendedLocation
properties DiskAccessProperties

ExtendedLocation

名称 说明
name 扩展位置的名称。 字符串
type 扩展位置的类型。 “EdgeZone”

DiskAccessProperties

此对象不包含部署期间要设置的任何属性。 所有属性均为 ReadOnly。

ARM 模板资源定义

diskAccesses 资源类型可以使用面向以下对象的操作进行部署:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskAccesses 资源,请将以下 JSON 添加到模板。

{
  "type": "Microsoft.Compute/diskAccesses",
  "apiVersion": "2023-01-02",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "extendedLocation": {
    "name": "string",
    "type": "EdgeZone"
  },
  "properties": {}
}

属性值

diskAccesses

名称 说明 Value
type 资源类型 'Microsoft.Compute/diskAccesses'
apiVersion 资源 API 版本 '2023-01-02'
name 资源名称 字符串 (必需)
location 资源位置 字符串 (必需)
标记 资源标记 标记名称和值的字典。 请参阅 模板中的标记
extendedLocation 将在其中创建磁盘访问的扩展位置。 无法更改扩展位置。 ExtendedLocation
properties DiskAccessProperties

ExtendedLocation

名称 说明
name 扩展位置的名称。 字符串
type 扩展位置的类型。 “EdgeZone”

DiskAccessProperties

此对象不包含部署期间要设置的任何属性。 所有属性均为 ReadOnly。

Terraform (AzAPI 提供程序) 资源定义

diskAccesses 资源类型可以使用面向以下对象的操作进行部署:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.Compute/diskAccesses 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Compute/diskAccesses@2023-01-02"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {}
    extendedLocation = {
      name = "string"
      type = "EdgeZone"
    }
  })
}

属性值

diskAccesses

名称 说明 Value
type 资源类型 “Microsoft.Compute/diskAccesses@2023-01-02”
name 资源名称 字符串 (必需)
location 资源位置 字符串 (必需)
parent_id 若要部署到资源组,请使用该资源组的 ID。 字符串 (必需)
标记 资源标记 标记名称和值的字典。
extendedLocation 将在其中创建磁盘访问的扩展位置。 无法更改扩展位置。 ExtendedLocation
properties DiskAccessProperties

ExtendedLocation

名称 说明
name 扩展位置的名称。 字符串
type 扩展位置的类型。 “EdgeZone”

DiskAccessProperties

此对象不包含部署期间要设置的任何属性。 所有属性均为 ReadOnly。