Virtual machine stuck in a failed state

Applies to: ✔️ Linux VMs ✔️ Windows VMs

This article provides steps to resolve issues in which a Microsoft Azure virtual machine (VM) is stuck in a failed state.

Symptoms

The VM status in the Azure portal is shown as Failed.

Cause

The last operation that was run on the VM failed after the input was accepted.

Resolution

Note

This resolution is supported only for API version "2019-07-01" or a later version.

Update the VM objects and properties by running the reapply command in the Azure portal:

  1. Navigate to the VM that's stuck in the Failed state.
  2. Under Support + troubleshooting, select Redeploy + reapply.
  3. Select the Reapply option.

Screenshot of the region options that shows the difference in pricing and eviction rates as a table.

Next steps

If reapply doesn't clear the VM Failed state, try redeploying to a new host node.

Contact us for help

If you have questions or need help, create a support request, or ask Azure community support. You can also submit product feedback to Azure feedback community.