Share via

azure sql server access from VM with different Virtual Network

meroazure1244 101 Reputation points
2022-03-16T22:28:32.477+00:00

Hi,

I have SQL DB locked down to be able to connect through private endpoint and have a VM created in different virtual network. I do have private endpoint created to in the Vnet where the VM is hosted but still not able to connect to the database from the vm. I do have access to the database. Port is also open for inbound traffic. Can some help me please?

Azure SQL Database
Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

0 comments No comments

Answer accepted by question author

KarishmaTiwari-MSFT 20,862 Reputation points Microsoft Employee Moderator
2022-03-17T00:53:15.967+00:00

Issue Description : You are trying to access Azure SQL server from a VM created in different Virtual network

Recommendations:

-One of the reason as seen in previous cases is that the internal load balancer was configured using basic version. After creating a load balancer with Standard version, cx was able to connect. I was able to reproduce this on my side as well. Please try this and let me know if that was the case with you.

Reference doc : https://learn.microsoft.com/en-us/azure/azure-sql/virtual-machines/windows/failover-cluster-instance-vnn-azure-load-balancer-configure#create-load-balancer

-Please refer to this document with details on how to Connect to SQL Server within a virtual network and see if you are missing any step.

Let me know if you are still seeing issue after going through the above suggestions and I can investigate further. Thanks.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.