Connectivity to SQL Server on Azure Error: 121 - The semaphore timeout period has expired
try to connect choosing the proper user database here:

Maybe the user you are using is not able to connect to the master database.
Here is how database firewall rules work:
https://docs.microsoft.com/it-it/azure/azure-sql/database/firewall-configure