Microsoft.Compute diskAccesses 2022-03-02

Bicep 資源定義

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

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

資源格式

若要建立 Microsoft.Compute/diskAccesses 資源,請將下列 Bicep 新增至您的範本。

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

屬性值

diskAccesses

名稱 描述
NAME 資源名稱 字串 (必要)
location 資源位置 字串 (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱 範本中的標記
extendedLocation 將建立磁碟存取的擴充位置。 無法變更擴充位置。 ExtendedLocation
properties DiskAccessProperties

ExtendedLocation

名稱 描述
NAME 擴充位置的名稱。 字串
type 擴充位置的類型。 'EdgeZone'

DiskAccessProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。

ARM 範本資源定義

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

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

資源格式

若要建立 Microsoft.Compute/diskAccesses 資源,請將下列 JSON 新增至您的範本。

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

屬性值

diskAccesses

名稱 描述
類型 資源類型 'Microsoft.Compute/diskAccesses'
apiVersion 資源 API 版本 '2022-03-02'
NAME 資源名稱 字串 (必要)
location 資源位置 字串 (必要)
tags 資源標籤 標記名稱和值的字典。 請參閱 範本中的標記
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@2022-03-02"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {}
    extendedLocation = {
      name = "string"
      type = "EdgeZone"
    }
  })
}

屬性值

diskAccesses

名稱 描述
類型 資源類型 “Microsoft.Compute/diskAccesses@2022-03-02”
NAME 資源名稱 需要字串 ()
location 資源位置 需要字串 ()
parent_id 若要部署至資源群組,請使用該資源群組的標識碼。 需要字串 ()
tags 資源標籤 標記名稱和值的字典。
extendedLocation 將建立磁碟存取的擴充位置。 無法變更擴充位置。 ExtendedLocation
properties DiskAccessProperties

ExtendedLocation

名稱 描述
NAME 擴充位置的名稱。 字串
type 擴充位置的類型。 “EdgeZone”

DiskAccessProperties

此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。