简体   繁体   English

通过 Azure VPN 网关连接到 Azure SQL Server

[英]Connect to Azure SQL Server through Azure VPN Gateway

I have an Azure SQL Server & Azure SQL Database, a virtual network with two subnets, a vm and an Azure VPN Gateway.我有一个 Azure SQL Server 和 Azure SQL 数据库,一个包含两个子网的虚拟网络、一个 vm 和一个 Azure VPN 网关。

The VM is on Subnet1. VM 位于子网 1 上。

Azure VPN Gateway uses GatewaySubnet. Azure VPN 网关使用 GatewaySubnet。

In the Azure SQL Server > Firewalls and virtual networks > I have added both subnets.在 Azure SQL Server > 防火墙和虚拟网络 > 我添加了两个子网。

Now if I VPN into my virtual network, and connect to the VM, I can then use SSMS inside this VM to connect to the Azure SQL Server successfully.现在,如果我通过 VPN 连接到我的虚拟网络并连接到 VM,然后我可以在此 VM 中使用 SSMS 成功连接到 Azure SQL Server。

If I try and connect to the Azure SQL Server from my laptop with the VPN connection established (So not through the VM), it will not let me connect.如果我尝试从我的笔记本电脑连接到 Azure SQL Server,并且建立了 VPN 连接(所以不是通过 VM),它不会让我连接。

I can see the documentation ( https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vnet-service-endpoint-rule-overview#limitations ) says Site-to-Site and Express route is not supported, but it does not say Point-to-Site is not supported, so would expect this to work.我可以看到文档( https://docs.microsoft.com/en-us/azure/sql-database/sql-database-vnet-service-endpoint-rule-overview#limitations )说 Site-to-Site 和 Express不支持路由,但它并没有说不支持点到站点,所以希望这能工作。

Does anyone know if the documentation is wrong by not stating this as unsupported or am I doing something wrong?有没有人通过不将其声明为不受支持或我做错了什么来知道文档是否有误?

I'm not sure if you ever found an answer or a workaround, but I'm currently hitting the same roadblock.我不确定您是否找到了答案或解决方法,但我目前遇到了同样的障碍。 I'm connecting to my P2S VPN OK and can access VM resources in the same subnet, but cannot access the Azure SQL server (or DB's) via SSMS on my laptop.我连接到我的 P2S VPN 正常,可以访问同一子网中的 VM 资源,但无法通过笔记本电脑上的 SSMS 访问 Azure SQL 服务器(或 DB)。

It looks like it's still not supported - https://social.msdn.microsoft.com/Forums/azure/en-US/da8da34a-ad48-43a4-a070-311036e23675/exposing-azure-sql-server-through-vpn-connection?forum=WAVirtualMachinesVirtualNetwork .看起来它仍然不受支持 - https://social.msdn.microsoft.com/Forums/azure/en-US/da8da34a-ad48-43a4-a070-311036e23675/exposing-azure-sql-server-through-vpn- connection?forum=WAVirtualMachinesVirtualNetwork

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM