After installing an application on an Azure VM named VM1 and restarting it, VM1 shows: "Boot failure. Reboot and Select proper Boot Device or Insert Boot Media in selected Boot Device." You need to mount VM1's OS disk offline on a temporary VM to troubleshoot. Which Azure CLI command should you run?
Choose an answer
Tap an option to check your answer.
Correct answer: az vm repair create.
Why this is the answer
The az vm repair create command is the correct choice because it automates the process of creating a repair VM and attaching the OS disk of the problematic VM (VM1) to it. This allows you to mount the disk offline on the temporary VM for troubleshooting, as required. az vm boot-diagnostics enable enables boot diagnostics, which helps analyze boot issues but doesn't provide a way to mount the disk for repair. az vm capture creates a generalized image of a VM, which is not relevant for troubleshooting a boot failure. az vm disk attach is used to attach a data disk to a running VM, not to attach an OS disk for repair purposes to a temporary VM.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed