Microsoft Azure Administrator Associate AZ-104 Practice Question
You need to reorganize your Azure resources by placing an existing virtual machine named VM1 into a different resource group named RG2. VM1 is currently running and uses managed disks in resource group RG1. What should you do to accomplish this task?
Use the Azure Portal to change VM1's resource group to RG2 while it is running.
Stop VM1, then use the Azure Portal to change its resource group to RG2.
Use Azure PowerShell to detach VM1's disks, move them to RG2, and recreate VM1 in RG2.
Create a new VM in RG2 from a snapshot of VM1, then delete VM1 from RG1.
To move a virtual machine to a different resource group, you must first stop (deallocate) the VM. This is because certain operations, including moving resources, cannot be performed on a running VM. Option B is correct because it involves stopping VM1 and then using the Azure Portal to change its resource group to RG2. Option A is incorrect because moving a running VM is not supported and will result in an error. Option C is unnecessarily complex and involves manual steps that are not needed when you can move the VM directly after stopping it. Option D involves creating a new VM from a snapshot, which does not actually move the existing VM and could lead to data inconsistency or loss of settings.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
Why do I need to stop the VM before moving it to a different resource group?
Open an interactive chat with Bash
What are Managed Disks in Azure and how do they relate to moving VMs?
Open an interactive chat with Bash
What could happen if I try to move a running VM without stopping it first?
Open an interactive chat with Bash
Microsoft Azure Administrator Associate AZ-104
Deploy and manage Azure compute resources
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access