允许 Azure Web 应用访问 VM 上的数据库,而无需将该 VM 公开给外界
Allow Azure Web App to Access Database on the VM Without Exposing that VM to the World
我们有需要访问 VM 上托管的数据库的 Web 应用程序。存在哪些选项可以让 Web 应用程序在不打开数据库 VM 端口到 Internet 的情况下访问数据库?
对于这个需求,你可以integrate with the VNet for the Web App,它可以让你的Web App访问VNet中的资源。可以在没有 public IP 地址的 VNet 中创建承载数据库的 VM,以便只能在 VNet 中访问该 VM。下面是可以帮助理解的描述:
VNet Integration gives your app access to resources in your VNet, but
it doesn't grant inbound private access to your app from the VNet.
我们有需要访问 VM 上托管的数据库的 Web 应用程序。存在哪些选项可以让 Web 应用程序在不打开数据库 VM 端口到 Internet 的情况下访问数据库?
对于这个需求,你可以integrate with the VNet for the Web App,它可以让你的Web App访问VNet中的资源。可以在没有 public IP 地址的 VNet 中创建承载数据库的 VM,以便只能在 VNet 中访问该 VM。下面是可以帮助理解的描述:
VNet Integration gives your app access to resources in your VNet, but it doesn't grant inbound private access to your app from the VNet.