Question
You have an Azure virtual machine (VM) that has a single data disk. You have been tasked with attaching this data disk to another Azure VM.
You need to make sure that your strategy allows for the virtual machines to be offline for the least amount of time possible.
Which of the following is the action you should take FIRST?
- A. Stop the VM that includes the data disk.
- B. Stop the VM that the data disk must be attached to.
- C. Detach the data disk. Correct
- D. Delete the VM that includes the data disk.
Explanation
Detaching a data disk from one VM and attaching it to another can be done without stopping either VM, provided the disk is not in use. This minimizes downtime as per the requirement.