Azure VM Stuck

This happened with me alot of times as subject says AzureVM stuck , now thing is Azure VM gets stuck either in Starting , deallocating or in running state, it could be anything.

If machine is in starting or deallocating state then giving little time also helps sometimes or try to stop or start programmatically i.e Powershell or cloudshell , sometimes this works but the ultimate trick are below -

  1. Re-size the VM and always try to re-size larger what is current.
  2. Re-deploy the VM from the portal.

In both the above cases the underlying host changes which helps VM to come up fine.

There are situations where VM shows running perfectly fine on the portal and when you get the status via powershell it says succeeded and running but still you are unable to ping , unable to login and boot diagnostic shows login screen. Even in this situation above mentioned 2 solution helps.

Now if everything is failed and you want the VM up and running as there could be business loss or other reasons then the best option is - Delete the VM and re-create it from the disk. 



https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/

2 comments:

  1. I was able to get my VM up and running again by going to VM > Operations > Run Command

    In there was a button saying I needed to turn on the VM - Clicked this and waited 5 minutes and it was back up and running

    On the main overview page it was stuck in "Deallocating" state, with the start/stop buttons disabled. The Run Command screen had the option to start.

    ReplyDelete

Azure DevOps

Azure DevOps is a suite of development tools provided by Microsoft, designed to support the entire development lifecycle of a software proje...