Trouble in connecting to VM on Azure

Emil 0 Reputation points
2026-12-02T22:25:15.9966667+00:00

We've been having trouble in connecting to our VM for some reason. How to fix this issue?

Thank you

User's image

Whilst we've been restarting the machine, it still presents our VA with the same issue. I'm running the VM from my end, as the subscription owner and the machine does successfully start and runs. I've ran a diagnostic test and the process has identified no issues.

My VA is operating on a Windows based system

Asus TUF Gaming F15

The ASUS TUF Gaming F15 is a 15.6-inch budget-to-midrange gaming laptop built with MIL-STD-810H durability testing, high-refresh-rate displays, and upgradeable storage and memory. Configurations vary by model year, commonly pairing Intel Core i5

How to resolve please?

Thank you

Azure Virtual Machines
Azure Virtual Machines

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

0 comments No comments

1 answer

Sort by: Most helpful
  1. AI answer

    2026-12-02T22:29:48.69+00:00

    The VM must first be repaired from the CRITICAL_SERVICE_FAILED (0x5A) Windows boot failure; RDP cannot work while the guest operating system is repeatedly crashing.

    Since restarting has not helped and the diagnostic screenshot shows the stop code, proceed with OS-disk recovery rather than restarting again. This stop error can result from a faulty driver, corrupted system file, or invalid memory access, but the screenshot alone does not determine which one.[^1^](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")

    1. Protect the OS disk

    Disk replacement and offline repair carry risk, so preserve the current disk first:

    1. Stop the affected VM cleanly if possible.
    2. In Azure Portal, open Virtual machines → affected VM → Disks.
    3. Select the OS disk.
    4. Select Create snapshot and complete the deployment using the default settings.

    A snapshot provides a read-only recovery point before any repair changes.^2^

    If a recent known-good Azure Backup recovery point exists, restoring the VM from it is also a documented recovery option.[^1^](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")

    2. Repair a copy of the OS disk offline

    Use a repair VM rather than modifying the only copy:

    1. Open the new snapshot and select Create Disk.
    2. Create the disk in the same region and availability zone that will be used for the repair VM.
    3. Create a temporary Windows Server VM in that region and zone.
    4. On the repair VM, open Disks → Attach existing disks, select the disk created from the snapshot, and select Save.
    5. Connect to the repair VM and identify the attached Windows volume letter, such as F:.

    Microsoft documents automated Azure VM repair commands as the preferred method for supported managed-disk configurations; encrypted disks require the matching encryption-specific recovery procedure.^2^

    3. Recover the 0x5A boot failure

    Microsoft’s procedure for this stop code is to collect Memory.dmp from the attached disk and submit it with an Azure support request so the failing driver or component can be identified:

    1. On the repair VM, browse to <attached-drive>:\Windows.
    2. Locate Memory.dmp.
    3. Open an Azure support request and attach the dump file.[^1^](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 the dump analysis identifies an unsigned or corrupt driver, Microsoft’s documented repair path is to boot the repaired disk into Safe Mode and replace the identified file with the same version from a compatible working VM. For example, if the attached disk is F::

    bcdedit /store F:\boot\bcd /set {default} safeboot minimal
    
    REM After replacing the identified driver, remove Safe Mode:
    bcdedit /store F:\boot\bcd /deletevalue {default} safeboot
    

    Do not replace drivers speculatively. Use the file identified by dump analysis, and retain the snapshot for rollback.[^1^](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")

    After repair:

    1. Detach the repaired disk from the repair VM.
    2. Open the original VM’s Disks blade.
    3. Select Swap OS disk and choose the repaired disk.
    4. Start the original VM.
    5. Check Boot diagnostics. Continue to RDP troubleshooting only when it shows the normal Windows sign-in screen.^2^

    4. If Windows boots but the VA still cannot connect

    Then test the separate RDP network path from the VA’s current public IP:

    1. Open Network Watcher → Network diagnostic tools → IP flow verify.
    2. Select the VM and its primary NIC.
    3. Set:
      • Protocol: TCP
      • Direction: Inbound
      • Local IP: VM private IP
      • Local port: 3389
      • Remote IP: VA’s public IP
      • Remote port: any available port, such as 60000
    4. Select Check.

    If Denied, the result identifies the blocking NSG rule. Review VM → Networking → Network settings → NIC → Effective security rules. TCP 3389 must be allowed from the VA’s source IP at both the subnet and NIC levels, with no higher-priority deny rule.^3^

    Avoid allowing RDP from the entire Internet. Restrict the rule to the VA’s current public IP, or use Azure Bastion for production access.


    References

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

    Was this answer helpful?

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.