Unable to access Azure SQL Server from my Azure VM SSMS

722 Views Asked by At

I'm getting the message when I attempt to access the my SQL Server from SSMS

Cannot connect to xxxxxxxxxx.database.windows.net.

Cannot open server 'xxxxxxxx' requested by the login. Client is not allowed to access the server. (Microsoft SQL Server, Error: 40914)

Can someone let me know what are the possible causes?

2

There are 2 best solutions below

0
On

Hi I just figured it out.

I needed to add my VM to the firewall Doh!

BTW, I'm using SSMS 18.12, not 16 as originally posted. Sorry for the confusion

0
On

I tried to repro the problem, and it worked for me.

  1. Check the DNS label virtual machine and check the properties of it. Select the SQL server VM
  2. Select the Public IP address

enter image description here

  1. Click on the Configurations in the Public IP Address
  2. Assign a name of the DNS label

enter image description here

  1. Open SSME and click on Connect in Object Explorer
  2. Click on Database Engine

enter image description here

  1. Give the following information required:
  • Server type
  • Server name
  • Authentication
  • Login
  • Password
  1. Click on connect