将虚拟网络对等互连 Peer virtual networks

通过虚拟网络 (VNet) 对等互连,正在运行 Azure Databricks 资源的虚拟网络可与另一个 Azure 虚拟网络对等互连。Virtual network (VNet) peering allows the virtual network in which your Azure Databricks resource is running to peer with another Azure virtual network. 对等虚拟网络中虚拟机之间的流量通过 Microsoft 主干基础结构路由,非常类似于只通过专用 IP 地址在同一虚拟网络中的虚拟机之间路由流量。Traffic between virtual machines in the peered virtual networks is routed through the Microsoft backbone infrastructure, much like traffic is routed between virtual machines in the same virtual network, through private IP addresses only. 有关 Azure VNet 对等互连的概述,请参阅 Microsoft Azure 虚拟网络对等互连For an overview of Azure VNet peering, see Microsoft Azure Virtual network peering.

本文介绍如何将 Azure Databricks VNet 与 Azure VNet 对等互连,并提供有关如何将本地 VNet 连接到 Azure VNet 的参考信息。This article shows you how to peer an Azure Databricks VNet with an Azure VNet and provides references to information about how to connect an on-premises VNet to an Azure VNet.

有关如何管理 Azure VNet 对等互连的信息,请参阅创建、更改或删除虚拟网络对等互连For information about how to manage Azure VNet peering, see Create, change, or delete a virtual network peering. 但是,请不要按照该文中的步骤在 Azure Databricks VNet 和 Azure VNet 之间创建 VNet 对等互连;请按本文中提供的说明进行操作。However, do not follow the steps in that article to create a VNet peering between an an Azure Databricks VNet and an Azure VNet; follow the instructions given in this article.

将 Azure Databricks 虚拟网络对等互连到远程虚拟网络Peer an Azure Databricks virtual network to a remote virtual network

将 Databricks 虚拟网络对等互连到 Azure VNet 涉及两个步骤:将远程虚拟网络对等互连添加到 Azure Databricks 虚拟网络,并将 Azure Databricks 虚拟网络对等互连添加到远程虚拟网络。Peering a Databricks virtual network to an Azure VNet involves two steps: add remote virtual network peering to Azure Databricks virtual network and add Azure Databricks virtual network peer to remote virtual network.

步骤 1:将远程虚拟网络对等互连添加到 Azure Databricks 虚拟网络Step 1: Add remote virtual network peering to Azure Databricks virtual network

  1. 在 Azure 门户中,单击 Azure Databricks 服务资源。In the Azure portal, click an Azure Databricks Service resource.

  2. 在边栏的“设置”部分中,单击“虚拟网络对等互连”选项卡。In the Settings section of the sidebar, click the Virtual Network Peering tab.

  3. 单击“+ 添加对等互连”按钮。Click the + Add Peering button.

    添加对等互连按钮Add peering button

  4. 在“名称”字段中,输入对等互连虚拟网络的名称。In the Name field, enter the name for the peering virtual network.

  5. 根据你对远程虚拟网络了解的信息,请执行以下操作之一:Depending on the information you have about the remote virtual network, do one of the following:

    • 你知道远程虚拟网络的资源 ID:You know the resource ID of the remote virtual network:

      1. 选择“我知道我的资源 ID”复选框。Select the I know my Resource ID checkbox.

      2. 在“资源 ID”文本框中,粘贴远程虚拟网络资源 ID。In the Resource ID text box, paste in the remote virtual network resource ID.

        添加远程虚拟网络资源 IDAdd remote virtual network resource ID

    • 你知道远程虚拟网络的名称:You know the name of the remote virtual network:

      1. 在“订阅”下拉列表中,选择一个订阅。In the Subscription drop-down, select a subscription.

      2. 在“虚拟网络”下拉列表中,选择远程虚拟网络。In the Virtual network drop-down, select the remote virtual network.

        选择远程虚拟网络Select remote virtual network

  6. 在“配置”部分,指定对等互连的配置。In the Configuration section, specify the configuration of the peering. 参阅创建对等互连,获取配置字段的相关信息。See Create a peering for information about the configuration fields.

  7. 在“Databricks 虚拟网络资源 Id”部分中,复制“资源 ID”。In the Databricks Virtual Network Resource Id section, copy the resource ID.

  8. 单击 添加Click Add. 已部署虚拟网络对等互连。The virtual network peering is deployed.

步骤 2:将 Azure Databricks 虚拟网络对等互连添加到远程虚拟网络Step 2: Add Azure Databricks virtual network peer to remote virtual network

  1. 在 Azure 门户边栏中,单击“虚拟网络”。In the Azure portal sidebar, click Virtual networks.

  2. 搜索要与 Databricks 虚拟网络对等互连的虚拟网络资源,然后单击资源名称。Search for the virtual network resource to peer with the Databricks virtual network and click the resource name.

  3. 在边栏的“设置”部分中,单击“对等互连”选项卡。In the Settings section of the sidebar, click the Peerings tab.

  4. 单击“+ 添加”按钮。Click the + Add button.

    添加对等互连Add peering

  5. 在“名称”字段,输入对等互连虚拟网络的名称。In the Name field, enter a name for the peering virtual network.

  6. 对等互连的详细信息中,“虚拟网络部署模型”必须是“资源管理器” 。For the peering details, Virtual network deployment model must be Resource manager.

  7. 选择“我知道我的资源 ID”复选框。Select the I know my resource ID checkbox.

  8. 在“资源 ID”文本框中,粘贴在步骤 1 中复制的 Databricks 虚拟网络资源 ID。In the Resource ID text box, paste in the Databricks virtual network resource ID copied in Step 1.

    添加对等互连网络 IDAdd peering network ID

  9. 在“配置”部分,指定对等互连的配置。In the Configuration section, specify the configuration of the peering. 参阅创建对等互连,获取配置字段的相关信息。See Create a peering for information about the configuration fields.

  10. 单击“确定”。Click OK. 已部署虚拟网络对等互连。The virtual network peering is deployed.

将本地虚拟网络连接到 Azure 虚拟网络Connect an on-premises virtual network to an Azure virtual network

若要将本地网络连接到 Azure VNet,请按照使用 ExpressRoute 将本地网络连接到 Azure 中的步骤进行操作。To connect an on-premises network to an Azure VNet, follow the steps in Connect an on-premises network to Azure using ExpressRoute.

若要创建从本地网络到 Azure VNet 的站点到站点 VPN 网关连接,请按照在 Azure 门户中创建站点到站点连接中的步骤进行操作。To create a site-to-site VPN gateway connection from your on-premises network to an Azure VNet, follow the steps in Create a Site-to-Site connection in the Azure portal.