且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从Azure Web应用连接到Prem SQL Server

更新时间:2023-02-15 11:41:26

由于内部部署数据库位于私有内部部署网络中,Azure服务找不到该数据库,因此可以公开内部部署的公共IP数据库或使用Azure Web应用程序服务 VNet集成 Azure VPN网关以安全地访问Azure VNet或本地网络中的资源.

Since your on-premise database is in your private on-premise network, Azure service could not find it, you could expose a public IP for the on-premise database or use Azure web app service VNet integration with Azure VPN gateway to securely access the resource in an Azure VNet or on-premise network.

另一种推荐的方法是使用 AzureApp Service混合连接.为此,您需要在您的应用中添加并创建混合连接.您将在数据库服务器或与本地数据库位于同一网络的另一台服务器中下载并安装代理(Hybrid Connection Manager).

Another recommended method is to use an Azure App Service Hybrid Connections. To do this, you need to add and create Hybrid Connections in your app. You will download and install an agent (the Hybrid Connection Manager) in the database server or another server which is in the same network as the on-premise database.

主要步骤如下:

  1. 您在应用程序服务或网络应用程序上配置逻辑连接.
  2. 已下载小型代理程序Hybrid Connection Manager,并将其安装在远程运行的Windows Server(2012或更高版本)上您需要与之通信的网络(本地或任何地方).
  3. 您在混合连接管理器中登录Azure订阅,然后在应用程序服务中选择逻辑连接.
  4. Hybrid Connection Manager将启动到您的Azure应用服务的安全隧道(TCP 80/443).
  5. 您的应用程序服务现在可以通过Hybrid Connection与Windows或Linux上的远程网络中基于TCP的服务进行通信经理.

您可以获得有关如何将Azure Web Apps连接到本地的更多详细信息.