Connection error when tried to connect Azure Database from On-prem virtual machine through SQL management studio

saurabh patel 0 Reputation points
2024-01-10T20:55:13.7466667+00:00

We're currently facing a connectivity issue while attempting to connect to the Azure database from our on-prem Virtual Machine (VM) through SQL Management Studio.Vm is hosted on ESXI. The VM consistently displays a network error message upon connection attempts. However, when we try the same connection from a physical server, it establishes successfully. In addition, we've tested this connection from two other Virtual Machines, and unfortunately, they also encountered the same error. Although we've ensured that Port 1433 is open on the VMs, we're perplexed as to why this issue persists exclusively within the VM environment despite our efforts. please share your idea if you had similar issues in past

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. RahulRandive 10,321 Reputation points
    2024-01-16T22:17:42.8266667+00:00

    Hi saurabh patel •, As you mentioned, you are able to connect to the SQL Server from the local environment but not from the VM's, indicating a potential connectivity issue or network problem between them. The error you provided is quite generic. To obtain a more meaningful error, please run the following network trace from the VM and analyze the networking issues from the output file or attach the results. This PowerShell script will run some connectivity checks from this machine to the server and database. https://github.com/Azure/SQL-Connectivity-Checker Thank you!


Your answer

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