PROBLEM:
I'm able to connect to the Azure SQL Database using the private link from VM within the virtual network, but not from my pc trough virtual network gateway
- In sqlserver1 firewall, I have denied public network access.
- From MyVM in the myvnet, I'm able to connect to the sqlserver1 using FQDN. nslookup shows correctly private address 10.0.0.4
- I connected my pc to the vnet using the gateway. I'm able to ping MyVM using private adresss 10.0.0.5.
- When I try to connect to the sqlserver1 using FQDN, I get error:
An instance-specific error occurred while establishing a connection to SQL Server. The public network interface on this server is not accessible. To connect to this server, use the Private Endpoint from inside your virtual network. (Microsoft SQL Server, Error: 47073)
So it looks like that it's using the public dns record and not the private dns zone that I have created with the private endpoint. How can I connect to the database?