Azure VM on start shows- "Restart computer to repair drive errors."

Leonard Schwenk 20 Reputation points
2023-12-06T17:31:12.56+00:00

Hello everyone,

When I connect my Windwos 11 - Multiuser Azure Virtual Desktop machine.

The following error appears
image

Im not sure what i should do here, as I found this article:
https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/repair-windows-vm-using-azure-virtual-machine-repair-commands

Which talks about a repair maschine I should use.

The problem here is when I read to step 4 it says:
If the troubleshooting guide you are using specified a run-id, use it here. Otherwise, you can use az vm repair list-scripts to see available repair scripts.

Then I checked the github repo for the repair scripts:
https://github.com/Azure/repair-script-library

But I could not find any suitable script.

Then I found the same question I have.
Here in german:
https://answers.microsoft.com/de-de/windows/forum/all/computer-zum-reparieren-von-laufwerkfehlern-neu/2a9b3c28-2f6a-4742-8fb1-8a481e251d0f

Which basicly says, run **chkdsk /f /r **and you will be fine.

So what exacly should I do now ?

Backup the disk and then run chkdsk /f /r ?

Any help or advise appreciated, thanks !

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,157 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
572 questions
Azure Virtual Desktop
Azure Virtual Desktop
A Microsoft desktop and app virtualization service that runs on Azure. Previously known as Windows Virtual Desktop.
1,366 questions
{count} votes

Accepted answer
  1. TP 76,601 Reputation points
    2023-12-06T18:22:33.2366667+00:00

    Hi Leonard,

    The techniques in first article you linked to are more for scenarios where the VM will not boot up. If I understand you correctly, your VM is able to boot successfully. I recommend you first create a snapshot of the disk, and then run chkdsk C: /f

    If there is important data on the disk and you want to be extra careful, you could create a disk from the snapshot, attach this disk to a different VM, and verify that you are able to access any/all important data BEFORE you run chkdsk on your original still-up-and-running VM/disk.

    I'm assuming the error is with C: but if it is different drive please substitute correct drive letter in command above.

    Restart the VM so that it can work on the repairs and then once it has finished restarting connect to it and check to see if any message/errors are shown and things appear/function okay in general.

    Please note that while it will likely fix any issues and you will be fine, there are no guarantees and this is why you use Azure Backup or other similar solution to back up disks that have important data periodically.

    Please click Accept Answer and upvote if the above was useful.

    Thanks.

    -TP

    0 comments No comments

0 additional answers

Sort by: Most helpful