nerdexam
Microsoft

AZ-801 · Question #58

You have an Azure virtual machine named VM1. You install an application on VM1, and then restart the virtual machine. After the restart, you get the following error message: "Boot failure. Reboot…

The correct answer is A. az vm repair create. To troubleshoot an Azure VM boot failure by mounting its OS disk offline to a temporary VM, you should use the az vm repair create command.

Monitor and troubleshoot Windows Server environments

Question

You have an Azure virtual machine named VM1. You install an application on VM1, and then restart the virtual machine. After the restart, you get the following error message: "Boot failure. Reboot and Select proper Boot Device or Insert Boot Media in selected Boot Device." You need to mount the operating system disk offline from VM1 to a temporary virtual machine to troubleshoot the issue. Which command should you run in Azure CLI?

Exhibit

AZ-801 question #58 exhibit

Options

  • Aaz vm repair create
  • Baz vm boot-diagnostics enable
  • Caz vm capture
  • Daz vm disk attach

How the community answered

(48 responses)
  • A
    71% (34)
  • B
    4% (2)
  • C
    17% (8)
  • D
    8% (4)

Why each option

To troubleshoot an Azure VM boot failure by mounting its OS disk offline to a temporary VM, you should use the az vm repair create command.

Aaz vm repair createCorrect

The az vm repair create command in Azure CLI is specifically designed to create a repair virtual machine, attach the OS disk of the problematic VM to it, and automatically handle the necessary steps for troubleshooting. This command streamlines the process of mounting the OS disk offline to another VM for repair, allowing you to access the disk contents and troubleshoot boot issues effectively. It is the recommended approach for this scenario.

Baz vm boot-diagnostics enable

az vm boot-diagnostics enable enables boot diagnostics, which helps capture boot logs and screenshots, but it doesn't provide a mechanism to mount the OS disk offline to another VM for direct filesystem access.

Caz vm capture

az vm capture is used to generalize and create an image of a VM, which is not relevant for troubleshooting a boot failure by mounting its disk.

Daz vm disk attach

az vm disk attach can attach a data disk to a VM, but az vm repair create is the specific and recommended workflow to attach an OS disk from another VM for repair purposes, as it handles the creation of the temporary VM and disk attachment in one streamlined command.

Concept tested: Azure VM boot failure troubleshooting

Source: https://learn.microsoft.com/en-us/azure/virtual-machines/troubleshooting/repair-windows-vm-offline

Topics

#Azure Virtual Machines#VM Troubleshooting#Boot Issues#Azure CLI

Community Discussion

No community discussion yet for this question.

Full AZ-801 Practice