Azure VM Stuck in Starting and Stopping States

BA 120 Reputation points
2026-07-27T20:07:47.12+00:00

Our Azure VM has been stuck in conflicting Starting and Stopping states for over 30 minutes. We are unable to start, stop, or manage the VM normally and require assistance resolving the issue.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. SUNOJ KUMAR YELURU 18,496 Reputation points MVP Volunteer Moderator
    2026-07-31T16:25:39.86+00:00

    Hello @BA,

    Thank You for using Q & A forum

    Azure VMs can get stuck when a previous operation didn't complete cleanly.

    Resolution Steps

    1. Force-Redeploy via Azure Portal (Easiest)

    Navigate to your VM in the Azure Portal

    Under Help → click Redeploy + Reapply

    Click Redeploy — Azure moves the VM to a new host node and forces a clean state

    This resolves the issue in most cases.

    1. Force Stop via Azure CLI

    Skip OS-level shutdown and force the VM off at the fabric level

    az vm stop --resource-group <your-rg> --name <your-vm> --skip-shutdown

    Then deallocate to fully release the compute allocation

    az vm deallocate --resource-group <your-rg> --name <your-vm>

    Confirm the state changed to "deallocated"

    az vm get-instance-view --resource-group <your-rg> --name <your-vm> \

    --query "instanceView.statuses[*].displayStatus"

    1. Cancel the Stuck Operation via REST API

    Find the stuck operation ID

    az vm list-operations --resource-group <your-rg> --name <your-vm>

    Cancel it (replace with actual subscription/rg/vm values)

    az rest --method post \

    --url "https://management.azure.com/subscriptions/<sub-id>/resourceGroups/<rg>/providers/Microsoft.Compute/virtualMachines/<vm-name>/cancelVMAgentUpgrade?api-version=2023-03-01"

    1. Restart the Azure VM Agent (if you have console access)

    If you can reach the VM via Serial Console (Portal → VM → Serial Console):

    Linux:

    bash

    sudo systemctl restart waagent

    Windows:

    powershell

    Restart-Service WindowsAzureGuestAgent

    Restart-Service WindowsAzureTelemetryService

    If none of the above work after 60+ minutes:

    Open an Azure Support ticket — Microsoft can force-reset the VM at the fabric level without data loss


    If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

    Was this answer helpful?

    0 comments No comments

  2. Christos Panagiotidis 3,546 Reputation points
    2026-07-28T13:21:37.49+00:00

    Your VM appears to have a lifecycle operation stuck between Azure’s control plane and the guest OS, rather than simply being powered on or off. First, open the VM’s Activity log and Resource health, then note the failed operation, timestamp, error code, and correlation ID. Check Service Health for a regional compute incident.

    If no incident is reported, go to Help > Redeploy + reapply and run Reapply first. Microsoft documents that Reapply reruns VM provisioning and can repair a failed VM state caused by an earlier action. If it remains stuck, confirm that important data is on managed disks and then use Redeploy. Redeploy moves the VM to a new host; temporary or ephemeral-disk data is lost, and dynamic NIC IP addresses can change.

    If Azure will not accept Reapply or Redeploy, open a support request with the collected correlation ID because only Microsoft can clear a host-side operation.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.