Hi ,
Thanks for reaching out to Microsoft Q&A.
- Deploy a small VM in the same region as your Azure SQL Database and try to connect to the SQL server from that VM using the same tools and credentials. This can help determine if the issue is with your home network or your Azure setup.
- Check your home network's stability and speed. Intermittent connectivity could be due to network instability or slow speeds.
- If you are using a VPN or a proxy server from your home, try disabling it to see if it affects the connection stability to Azure SQL. Re-check the firewall settings on Azure SQL Database to ensure your home IP is indeed allowed. Sometimes, dynamic IPs can change, so verify the current IP is listed. Check if there are any Network Security Group rules applied at the subnet or the resource level that might be blocking your connectivity.
- Verify if any server parameters or settings that might influence connectivity are configured differently from defaults, which might impact connections under certain conditions.
- Use tools like
tracert
(on Windows) ortraceroute
(on Linux/Mac) to trace the route your packets take from your home to Azure SQL Database. This can show if there's a consistent point where packets drop. Also since telnet also fails, ensure that port 1433 is open and accessible from your network. Sometimes, ISPs may block certain ports used commonly by databases. - Enable client-side logging in SQLAlchemy to get more detailed error messages that might point to the exact cause of the failures.
- Even though the DTU percentage is low, check other metrics like blocked by firewall attempts, failed connections, and other related metrics in the Azure portal.
- Check if Azure SQL auditing is enabled and review the logs for any failed login attempts or errors that could give more context on the connectivity issues.
Please 'Upvote'(Thumbs-up) and 'Accept' as an answer if the reply was helpful. This will benefit other community members who face the same issue.