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

Microsoft.Databricks workspaces/virtualNetworkPeerings

Bicep 资源定义

workspaces/virtualNetworkPeerings 资源类型可以通过针对以下操作进行部署:

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

资源格式

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

resource symbolicname 'Microsoft.Databricks/workspaces/virtualNetworkPeerings@2023-02-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    allowForwardedTraffic: bool
    allowGatewayTransit: bool
    allowVirtualNetworkAccess: bool
    databricksAddressSpace: {
      addressPrefixes: [
        'string'
      ]
    }
    databricksVirtualNetwork: {
      id: 'string'
    }
    remoteAddressSpace: {
      addressPrefixes: [
        'string'
      ]
    }
    remoteVirtualNetwork: {
      id: 'string'
    }
    useRemoteGateways: bool
  }
}

属性值

workspaces/virtualNetworkPeerings

名称 说明
name 资源名称

了解如何在 Bicep 中为子资源设置名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: 工作区
properties vNet 对等互连的属性列表 VirtualNetworkPeeringPropertiesFormat (必需的)

VirtualNetworkPeeringPropertiesFormat

名称 说明
allowForwardedTraffic 远程虚拟网络中是否允许/禁止来自本地虚拟网络中 VM 的转发流量。 bool
allowGatewayTransit 是否可以在远程虚拟网络中使用网关链接来链接到此虚拟网络。 bool
allowVirtualNetworkAccess 本地虚拟网络空间中的 VM 是否能够访问远程虚拟网络空间中的 VM。 bool
databricksAddressSpace 对 databricks 虚拟网络地址空间的引用。 AddressSpace
databricksVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...
remoteAddressSpace 对远程虚拟网络地址空间的引用。 AddressSpace
remoteVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe... 所需的 ()
useRemoteGateways 如果远程网关可以在此虚拟网络上使用。 如果标志设置为 true,并且允许远程对等互连上的 allowGatewayTransit 也为 true,则虚拟网络将使用远程虚拟网络的网关进行传输。 只有一个对等互连可以将此标志设置为 true。 如果虚拟网络已有网关,则无法设置此标志。 bool

AddressSpace

名称 说明
addressPrefixes 以 CIDR 表示法为此虚拟网络保留的地址块列表。 string[]

VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...

名称 说明 Value
id databricks 虚拟网络的 ID。 字符串

VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe...

名称 说明 Value
id 远程虚拟网络的 ID。 字符串

ARM 模板资源定义

workspaces/virtualNetworkPeerings 资源类型可以通过针对以下操作进行部署:

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

资源格式

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

{
  "type": "Microsoft.Databricks/workspaces/virtualNetworkPeerings",
  "apiVersion": "2023-02-01",
  "name": "string",
  "properties": {
    "allowForwardedTraffic": "bool",
    "allowGatewayTransit": "bool",
    "allowVirtualNetworkAccess": "bool",
    "databricksAddressSpace": {
      "addressPrefixes": [ "string" ]
    },
    "databricksVirtualNetwork": {
      "id": "string"
    },
    "remoteAddressSpace": {
      "addressPrefixes": [ "string" ]
    },
    "remoteVirtualNetwork": {
      "id": "string"
    },
    "useRemoteGateways": "bool"
  }
}

属性值

workspaces/virtualNetworkPeerings

名称 说明 Value
type 资源类型 “Microsoft.Databricks/workspaces/virtualNetworkPeerings”
apiVersion 资源 API 版本 '2023-02-01'
name 资源名称

了解如何在 JSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
properties vNet 对等互连的属性列表 VirtualNetworkPeeringPropertiesFormat (必需的)

VirtualNetworkPeeringPropertiesFormat

名称 说明
allowForwardedTraffic 远程虚拟网络中是否允许/禁止来自本地虚拟网络中 VM 的转发流量。 bool
allowGatewayTransit 是否可以在远程虚拟网络中使用网关链接来链接到此虚拟网络。 bool
allowVirtualNetworkAccess 本地虚拟网络空间中的 VM 是否能够访问远程虚拟网络空间中的 VM。 bool
databricksAddressSpace 对 databricks 虚拟网络地址空间的引用。 AddressSpace
databricksVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...
remoteAddressSpace 对远程虚拟网络地址空间的引用。 AddressSpace
remoteVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe... 所需的 ()
useRemoteGateways 如果远程网关可以在此虚拟网络上使用。 如果标志设置为 true,并且允许远程对等互连上的 allowGatewayTransit 也为 true,则虚拟网络将使用远程虚拟网络的网关进行传输。 只有一个对等互连可以将此标志设置为 true。 如果虚拟网络已有网关,则无法设置此标志。 bool

AddressSpace

名称 说明
addressPrefixes 以 CIDR 表示法为此虚拟网络保留的地址块列表。 string[]

VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...

名称 说明 Value
id databricks 虚拟网络的 ID。 string

VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe...

名称 说明 Value
id 远程虚拟网络的 ID。 string

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

workspaces/virtualNetworkPeerings 资源类型可以通过针对以下操作进行部署:

  • 资源组

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

资源格式

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Databricks/workspaces/virtualNetworkPeerings@2023-02-01"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      allowForwardedTraffic = bool
      allowGatewayTransit = bool
      allowVirtualNetworkAccess = bool
      databricksAddressSpace = {
        addressPrefixes = [
          "string"
        ]
      }
      databricksVirtualNetwork = {
        id = "string"
      }
      remoteAddressSpace = {
        addressPrefixes = [
          "string"
        ]
      }
      remoteVirtualNetwork = {
        id = "string"
      }
      useRemoteGateways = bool
    }
  })
}

属性值

workspaces/virtualNetworkPeerings

名称 说明 Value
type 资源类型 “Microsoft.Databricks/workspaces/virtualNetworkPeerings@2023-02-01”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源 ID。 类型为“工作区”的资源的 ID
properties vNet 对等互连的属性列表 VirtualNetworkPeeringPropertiesFormat (必需的)

VirtualNetworkPeeringPropertiesFormat

名称 说明
allowForwardedTraffic 远程虚拟网络中是否允许/禁止来自本地虚拟网络中 VM 的转发流量。 bool
allowGatewayTransit 是否可以在远程虚拟网络中使用网关链接来链接到此虚拟网络。 bool
allowVirtualNetworkAccess 本地虚拟网络空间中的 VM 是否能够访问远程虚拟网络空间中的 VM。 bool
databricksAddressSpace 对 databricks 虚拟网络地址空间的引用。 AddressSpace
databricksVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...
remoteAddressSpace 对远程虚拟网络地址空间的引用。 AddressSpace
remoteVirtualNetwork 远程虚拟网络应位于同一区域。 若要详细了解 (/azure/databricks/administration-guide/cloud-configurations/azure/vnet-peering) ,请参阅此处。 VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe... 所需的 ()
useRemoteGateways 如果远程网关可以在此虚拟网络上使用。 如果标志设置为 true,并且允许远程对等互连上的 allowGatewayTransit 也为 true,则虚拟网络将使用远程虚拟网络的网关进行传输。 只有一个对等互连可以将此标志设置为 true。 如果虚拟网络已有网关,则无法设置此标志。 bool

AddressSpace

名称 说明
addressPrefixes 以 CIDR 表示法为此虚拟网络保留的地址块列表。 string[]

VirtualNetworkPeeringPropertiesFormatDatabricksVirtu...

名称 说明 Value
id databricks 虚拟网络的 ID。 string

VirtualNetworkPeeringPropertiesFormatRemoteVirtualNe...

名称 说明 Value
id 远程虚拟网络的 ID。 字符串