rjt011000
rjt011000

Reputation: 112

Corrupted Azure Virtual Machine

Using my Google Fu, I am not finding any information on how to troubleshoot a corrupted Azure virtual machine. It has been working fine for almost 8 months and I have had to redeploy it 1-2 before because it would not start.

Any helpful pointers or point me to some troubleshooting steps please.

enter image description here

Upvotes: 1

Views: 2026

Answers (1)

rjt011000
rjt011000

Reputation: 112

I did a redeploy of my Azure virtual machine and perhaps did not wait long enough before shooting off the support request and creating this post as I am able to access my VM again. I received the following troubleshooting steps from Azure support professional so I am sharing here in case anyone else runs into these issues:

To over come this issue we can proceed to run a series of PowerShell scripts to force update the actual status of the VM on Azure backend, please follow this process:

Launch Cloud Shell

  • On the newly open window, click on “PowerShell” link:

Powershell

  • Then you can run the script, as is, line per line:

$vmName = "(Your VM NAME)"

$rgName = "(Your resource Group)"

$vm = Get-AzureRmVM -ResourceGroupName $rgName -Name $vmName

update-AzureRmVM -ResourceGroupName $rgName -VM $vm

  • This should bring the VM to healthy or ready state.
  • Please let me know the outcome of the PS command, if successful try to start the VM.
  • If it still shows as “corrupted” please share with support a screenshot of the error.

Upvotes: 3

Related Questions