Cannot access new Azure SQL DB

Dom 941 Reputation points
2023-09-08T22:11:32.91+00:00

I just created my first Azure SQL DB. I went into Query Editor so that I can start creating tables. I get this error.

Active Directory authentication

Reason: An instance-specific error occurred while establishing a connection to SQL Server. Connection was denied since Deny Public Network Access is set to Yes (https://docs.microsoft.com/azure/azure-sql/database/connectivity-settings#deny-public-network-access). To connect to this server, use the Private Endpoint from inside your virtual network (https://docs.microsoft.com/azure/sql-database/sql-database-private-endpoint-overview#how-to-set-up-private-link-for-azure-sql-database).

I assume that I picked the wrong authentication method when setting it up. But I cannot figure out where to go to change it to the right one. There is NO Active Directory option under "Settings." Where do I go and what should I set it to?

Azure SQL Database
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Tushar Kumar 3,371 Reputation points MVP
    2023-09-08T23:03:29.32+00:00

    You are not using wrong authentication method you have "Deny public network access" knob to Yes in the Firewall settings on my Azure SQL Database server.

    Just Change it to No or check the exceptions and add your IPs

    User's image

    2 people found this answer helpful.

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.