Azure VM stuck in Failed State (ARM)

Symptom:

VM is stuck in a "Failed" state

Resolution:

You can attempt to clear this state by updating the VM via PowerShell. This causes no additional downtime and only takes a moment.

To do this, open a PowerShell session as an Administrator and run the following modifying as needed

# To view all subscriptions for your account

Login-AzureRmAccount

      

# To view all subscriptions for your account

Get-AzureRmSubscription

             

# To select a default subscription for your current session

Get-AzureRmSubscription –SubscriptionID “SUBID” | Select-AzureRmSubscription

Get-AzureRmVM -Name "VMname" -ResourceGroupName 'RGName' | Update-AzureRmVM