This issue can be caused by multiple reasons:

  • Port 1433 is closed on local network
  • Machine is on a network blocked by Azure firewall