Faced with this problem with Azure VM, I cannot connect to the SQL server. All steps described in the answer above, but not successful, have been completed.
It started working when I set a specific port for TCP / IP.
So, open SQL Server Configuration Manager, find the TCP / IP protocol for your instance, open "Properties" and set the port to 1433 in the IPAll section.
source share