Hi. @Ali Rizvi
Can you see the information in the portal for the Azure SQL Database you are trying to connect to?
Double-check the Server Name and Firewalls and virtual networks settings that appear on the overview page. (Can I share the screen capture?)