What is the error message you are getting? What do you see when you ping logical server name?
for testing, can you try "Allow Azure Services" and share the behavior?
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Team,
I have created a sample database in azure cloud using azure sql database using single database approach.
Now issue is the particular database is not able to access through Azure VM or other machines but able to access through my local machine . For this i have set the fire wall rule to allow the access to all from start ip 0.0.0.0 to end ip 255.255.255.255 but still the azure Vm is not able to access the DB . Kindly let me know what is the mistake i am doing or any help is grateful .
What is the error message you are getting? What do you see when you ping logical server name?
for testing, can you try "Allow Azure Services" and share the behavior?
Most likely this issue is not caused by the SQL Server/Database. I would expect the virtual network your VM is connected to is the culprit. I would expect there to be either a firewall or a NSG that is blocking internet access for this VM, or the DNS settings for this VM are preventing it to find the SQL Server.
You could try to do a NSLOOKUP <SQL server name>.database.windows.net or ping the SQL Server from the VM. That might give you insights in if there is a network block going on.
If you are using a windows VM, you could also use powershell to check the connection on port 1433. https://learn.microsoft.com/en-us/powershell/module/nettcpip/test-netconnection?view=windowsserver2022-ps
Hi,
To get the meaningful network error/details, you can execute below Azure SQL Connectivity Checker from the VM
https://github.com/Azure/SQL-Connectivity-Checker
Please follow the instruction from the blog
You need to pass below details in the script and run from PowerShell ISE
Server = ''
Database = ''
User = ''
Password = ''
Once the script executes, it will generate an output in the folder and the folder opens automatically after the script completes.
I suppose you have followed the documentation: Configure the Azure VPN Client - Azure AD authentication - Windows
For Azure SQL Server to be accessed from Azure VM, could you please try below mentioned steps and let us know your results:
Let us know at which step you get error.
Please try and we can further check on this. Thanks.