Share via

How to fix connection issue to Azure SQL DB from local

Wesley Kalata 0 Reputation points
2026-03-20T17:59:06.45+00:00

Screenshot 2026-03-20 140100

I have created firewall exceptions in the console for my IP address, but something else is going on and I don't know how to troubleshoot. Can someone help?

Azure SQL Database

2 answers

Sort by: Most helpful
  1. Alberto Morillo 35,501 Reputation points MVP Volunteer Moderator
    2026-03-25T19:34:33.1366667+00:00

    This is usually an intermittent error, an error associated with pre-login handshakes caused by network delays or delays in certificate validation by the SqlClient driver. Pre-login handshake should ideally complete in 100-200 ms. Please consider collecting a network trace to verify the existence latencies greater than expected.

    0 comments No comments

  2. Pilladi Padma Sai Manisha 6,740 Reputation points Microsoft External Staff Moderator
    2026-03-25T00:47:10.5433333+00:00

    Hi Wesley Kalata,

    This error typically means the connection reaches Azure SQL, but the SSL/TLS handshake or login phase is being interrupted. Since your IP is already allowed, the issue is usually related to encryption settings, drivers, or network restrictions.

    Ask the customer to first confirm they are using the latest version of SSMS or an up-to-date SQL client, as older clients may not support the required TLS versions used by Azure SQL. They should also ensure that “Encrypt connection” is enabled and “Trust server certificate” is checked in the connection settings.

    Next, have them verify that TLS 1.2 is enabled on their machine, as Azure SQL requires it. If they are on an older OS or using outdated drivers, this can cause the connection to be forcibly closed.

    It’s also important to check whether a corporate firewall, proxy, or antivirus is interfering with outbound traffic on port 1433. Even if Azure firewall rules are correct, local network security can terminate the connection.

    Additionally, confirm they are connecting using the correct server name format (servername.database.windows.net) and SQL authentication format (username@servername).

    If the issue persists, ask them to try connecting using Azure Data Studio or sqlcmd to isolate whether it is a client-specific issue, and capture a network trace or error logs for deeper analysis.


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.