Azure VM : Connection refused by host
- by Simon Kérouack
I recently stopped a subscription with 14 VMs in it and restarted it a few days later. Now all my VMs are working just fine at the exception of 6 used for MongoDB.
They respond to ping and so they show as online in the azure dashboard but they do not answer to anything else.
I tried (from different locations, in and out of the azure cloud)
ssh : connect to host * port *: Connection refused
telnet : Unable to connect to remote host: Connection refused
mongo : exception: connect failed
The ports for ssh and mongo are opened in azure. I tried restarting the VMs a few times trough the azure dashboard, they seem to restart successfully but still refuse all connections.
I already looked for similar issues and the best solutions I found was to wait... the issue has been happening for 7 days and waiting is no more an option.