Skip to main content
Теґи
Answer needs confirmation
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?

Proposed answer
  • A. az vm repair create
  • B. az vm boot-diagnostics enable
  • C. az vm capture
  • D. az vm disk attach
Comments
syu31svc

3 months, 1 week ago 

Selected Answer: A

The key here is "operating system disk" https://learn.microsoft.com/en-us/cli/azure/vm/repair?view=azure-cli-latest VM repair command will enable Azure users to self-repair non-bootable VMs by copying the source VM's OS disk and attaching it to a newly created repair VM. A is the answer

upvoted 3 times 

Leocan

7 months, 2 weeks ago 

Selected Answer: A

az vm repair create - Create a new repair VM and attach the source VM's copied OS disk as a data disk.

upvoted 2 times 

GoforIT21

10 months ago 

Selected Answer: A

Correct, see https://learn.microsoft.com/en-us/cli/azure/vm/repair?view=azure-cli-latest.

upvoted 3 times 

xxxxx85xx

1 year, 3 months ago 

Correct Answer

upvoted 2 times