Hi @Pankaj Sharma
Agreed With @Erland Sommarskog the issue you are facing is because of network issue.
The root cause of Error Message 64 is typically a transient network issue preventing the application from establishing a connection to the target server. This may be due to temporary network disruptions, firewall restrictions, or server unavailability.
- Network settings might block the port 1433 which is used by Azure SQL to connect, switch to another network to connect if possible. Ensure that your network connection is stable.
- Ensure the application's connection string is correctly configured in application, specifying the correct port (1433) and the fully qualified server name. Try increasing the connection timeout value in connection string.
- As a best practice, ensure that retry logic is implemented to handle transient faults or you retry the connection with better network. For more details, refer to Troubleshoot transient faults and connection errors to SQL Database.
- You can use Azure SQL Connectivity Checker it is a PowerShell script will run some connectivity checks from this machine to the server and database to detect and fix a wide variety of connectivity errors.