title: The network path was not found -Azure SQL Server
body: <p>I am getting this error when I try to connect to Azure SQL Server.</p>
  
  <blockquote>
    <p>A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (.Net SqlClient Data Provider)</p>
  </blockquote>
  
  <p>I’ve been using the server and the databases under it for several months without a problem. The error starts after I deleted virtual network, public ip, virtual and local gateways, and some resources I created and played with. I’ve been searching the web the whole day but couldn’t find the right solution.</p>
  
  <p>My application that was deployed outside my network that's working find previously can no longer connect. I also set the firewall to accept all ip.</p>