Virtual Machine agent Status is not ready.

John Igot - Astute 0 Reputation points
2026-12-02T22:17:44.1433333+00:00

I'm getting this error below and would like to know how to fix this.

I did the recommended steps like Reset the primary NIC and Redeploy the VM to a new host.

The error is below.

We have investigated and determined that your virtual machine (VM) JohnOffshore is in an inaccessible state because Windows ran into a problem and needs to restart with the stop code 'CRITICAL SERVICE FAILED'. If you encounter this error message, it usually is due to unsigned drivers. Typically, this will occur after attempting to install a Windows Update KB, but the installation fails. Checking the system log on the latest KB will provide insight into which KB could have caused the problem.

unnamed (1)

unnamed

Azure Virtual Machines
Azure Virtual Machines

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

0 comments No comments

2 answers

Sort by: Oldest
  1. AI answer

    2026-12-02T22:18:38.0233333+00:00

    The VM must be repaired at the guest-OS level by attaching a copy of its OS disk to a recovery VM, because the CRITICAL_SERVICE_FAILED (0x5A) boot failure prevents both the Azure VM Agent and RDP from starting.

    Resetting the NIC or redeploying changes Azure networking or the physical host; neither repairs a Windows boot failure, so those already-tried actions do not need to be repeated.

    1. Protect the OS disk and create a repair VM

    These operations modify boot configuration and possibly system drivers. Keep the original OS disk unchanged so that you can roll back.

    1. Stop the affected VM if possible.
    2. In Azure portal → affected VM → Disks, select the OS disk.
    3. On the disk’s Overview page, select Create snapshot.
    4. Open the resulting snapshot and select Create Disk.
    5. Create a temporary Windows repair VM in the same region and availability zone as the copied disk.
    6. On the repair VM, open Disks → Attach existing disks, select the disk created from the snapshot, and select Save.
    7. Connect to the repair VM and use Disk Management to identify the attached disk’s Windows volume letter—for example, F:.

    This snapshot-copy workflow allows offline servicing without changing the original disk.^1^

    If the disk uses Azure Disk Encryption, follow the applicable encrypted-disk path in that recovery article rather than mounting it as an ordinary data disk.

    2. Boot the affected OS into Safe Mode

    From an elevated Command Prompt on the repair VM, set Safe Mode on the attached OS disk. Replace F: with its actual volume letter:

    bcdedit /store F:\boot\bcd /set {default} safeboot minimal
    

    Then:

    1. Detach the copied OS disk from the repair VM.
    2. In affected VM → Disks, select Swap OS disk and choose the repaired copy.
    3. Start the affected VM. Windows should attempt to enter Safe Mode.

    Microsoft’s documented remediation for this stop code uses Safe Mode to locate unsigned drivers. The stop error can also result from a corrupted system file or memory issue, so the Windows Update or unsigned-driver explanation should not be treated as confirmed until the failing component is identified.[^2^](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/windows/troubleshoot-critical-service-failed-boot-error#solution "Windows shows "CRITICAL SERVICE FAILED" on blue screen when booting an Azure VM")

    3. Identify and replace an unsigned driver

    If Windows reaches Safe Mode:

    1. Press Windows+R, enter verifier, and press Enter.
    2. In Driver Verifier Manager, select Automatically select unsigned drivers.
    3. Record every driver file reported.
    4. Replace an identified file only with the same version obtained from an equivalent, working VM.
    5. Shut down the VM and attach its OS disk to the repair VM again.
    6. Remove the Safe Mode setting:
    bcdedit /store F:\boot\bcd /deletevalue {default} safeboot
    
    1. Detach the disk, swap it back onto the affected VM, and start the VM normally.[^2^](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/windows/troubleshoot-critical-service-failed-boot-error#solution "Windows shows "CRITICAL SERVICE FAILED" on blue screen when booting an Azure VM")

    Do not copy an arbitrary driver from a different Windows build; a mismatched system driver can leave the VM unbootable.

    4. If Safe Mode still crashes

    Collect the crash dump rather than continuing with network or RDP changes:

    1. Attach the affected OS disk to the repair VM.
    2. Check <attached-drive>:\Windows\Memory.dmp.
    3. Open an Azure support request and attach Memory.dmp.

    If no dump exists, the official procedure provides the registry and BCD configuration required to enable crash dumps and the serial console. Registry editing is risky; preserve the snapshot and back up Windows\System32\config before making those changes.[^2^](https://learn.microsoft.com/troubleshoot/azure/virtual-machines/windows/troubleshoot-critical-service-failed-boot-error#solution "Windows shows "CRITICAL SERVICE FAILED" on blue screen when booting an Azure VM")

    If a recent known-good Azure Backup recovery point exists, restoring the VM from that backup is the safer alternative to manual driver replacement.

    5. Verify recovery

    After Windows boots normally:

    • Confirm Boot Diagnostics no longer shows the blue-screen loop.
    • Wait for the Azure VM Agent status to change to Ready.
    • Test RDP.
    • Review Event Viewer → Windows Logs → System and Windows Update history to identify the driver, update, or system component involved before applying updates again.

    Only troubleshoot the VM Agent or RDP separately if Windows now remains booted but the agent still reports Not ready or RDP still fails.


    References

    1. Troubleshoot a Windows VM by attaching the OS disk to a repair VM through the Azure portal
    2. Windows shows "CRITICAL SERVICE FAILED" on blue screen when booting an Azure VM
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Sedat SALMAN 14,705 Reputation points MVP
    2026-12-02T23:09:47.06+00:00

    Hi John,

    The NIC reset and redeploy only touch the Azure side, while CRITICAL_SERVICE_FAILED is Windows crashing during boot. The guest agent never gets to start, which is why it shows Not Ready. This has to be fixed offline on the OS disk.

    If you have an Azure Backup restore point or a snapshot from before the update, restoring it is the quickest way out. If not, and since the diagnostics point at a failed KB, I'd try backing that update out before going after drivers:

    1. Take a snapshot of the OS disk first.
    2. Create a repair VM. az vm repair create (vm-repair CLI extension) copies the OS disk, creates a repair VM in a new resource group and attaches the copy. Attaching a disk copy to another VM by hand works too.
    3. On the repair VM, open Disk Management, make sure the attached disk is online and note its letter (F: below). Create c:\temp, then list the packages:
    dism /image:F:\ /get-packages > c:\temp\Patch_level.txt
    
    1. Read the file from the bottom up and look for a package in Install Pending or Uninstall Pending state. Remove it:
    dism /Image:F:\ /Remove-Package /PackageName:<package identity from the file>
    
    1. Swap the disk back with az vm repair restore -g <resource-group> -n JohnOffshore --verbose (or Swap OS disk in the portal if you did it by hand) and start the VM.

    If nothing is pending, or the VM still stops with the same code, the update probably wasn't the cause. Then follow the driver path in the CRITICAL SERVICE FAILED article (safe mode plus verifier to find unsigned drivers), or copy Memory.dmp off the disk and open a support case with it.

    Docs:

    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.