将 Azure 应用服务托管计划的网络配置与 Azure SQL 托管实例同步Sync networking configuration for Azure App Service hosting plan with Azure SQL Managed Instance

适用于:是Azure SQL 托管实例 APPLIES TO: yesAzure SQL Managed Instance

虽然已将应用与 Azure 虚拟网络集成,仍可能出现无法建立与 SQL 托管实例的连接的情况。It might happen that although you integrated your app with an Azure Virtual Network, you can't establish a connection to SQL Managed Instance. 刷新或同步服务计划的网络配置可以解决此问题。Refreshing, or synchronizing, the networking configuration for your service plan can resolve this issue.

同步网络配置Sync network configuration

为此,请执行以下步骤:To do that, follow these steps:

  1. 转到 Web 应用应用服务计划。Go to your web apps App Service plan.

    应用服务计划的屏幕截图

  2. 选择“网络”,然后选择“单击此处进行管理” 。Select Networking and then select Click here to Manage.

    管理服务计划的屏幕截图

  3. 选择“VNet”,并单击“同步网络” 。Select your VNet and click Sync Network.

    同步网络的屏幕截图

  4. 请等待同步完成。Wait until the sync is done.

    已完成同步的屏幕截图

现在可尝试重新建立与 SQL 托管实例的连接。You are now ready to try to re-establish your connection to your SQL Managed Instance.

后续步骤Next steps