A VM (VM1) shows the error "Boot failure. Reboot and Select proper Boot Device or Insert Boot Media in selected Boot Device." You need to detach the OS disk from VM1 and attach it offline to a temporary VM for troubleshooting. 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 a copy of the OS disk from the problematic VM. This allows you to troubleshoot the original VM's OS disk without affecting the original VM itself. az vm capture creates an image of a VM, which is not relevant for troubleshooting a boot failure. az vm disk create creates a new managed disk, but doesn't attach an existing OS disk from another VM for repair. az vm boot-diagnostics enable enables boot diagnostics, which helps in viewing boot logs but doesn't provide a mechanism to attach the disk to another VM for repair.
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