问题描述
我正在尝试设置一个应用程序服务,以两个不同的订阅方式连接到VM上的SQL数据库.我将应用程序服务配置为通过VNET网关使用指向站点VPN".然后在两个订阅中配置VNET对等.我仍然无法从应用程序服务连接到数据库.我已经验证了为VM子网配置的网络服务组不是连接失败的原因.我还会缺少什么其他配置?
I'm trying to setup an app service to connect to a SQL database on a VM in two different subscriptions. I configured the app service to use Point to Site VPN through a VNET gateway. Then configured VNET peering in both subscriptions. I still cannot connect to the database from the app service. I have verified that the network service groups configured for the VM subnet aren't the reason the connection is failing. What other configuration could I be missing?
推荐答案
我能够使其正常运行.问题是第二个VNET的配置不正确,无法将流量路由回P2S地址范围.
I was able to get it working. The problem was the second VNET wasn't configured properly to route traffic back to the P2S address range.
这篇关于Azure应用服务和VNet到VNet的连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!