Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 24 of 47
❮Prev Next❯

Move a VM to Another Resource Group, Subscription or Region

Module 3: Compute ⏱ 11 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    30-second answer

    To move a VM to another resource group or subscription, use Move in the portal, az resource move or Move-AzResource. The region doesn't change and the VM keeps running, but every resource ID changes, and the VM must move with its dependent resources (OS and data disks, network interface, and usually its public IP and NSG; across subscriptions the virtual network too). Both subscriptions must be in the same Microsoft Entra tenant. To move a VM to another region, use Azure Resource Mover: add resources, validate dependencies, prepare, initiate move, commit, then delete the source.

    Simulate it » No Azure account needed

    Exam objective: 3.2.3 Move a virtual machine to another resource group, subscription, or region. (Skills measured as of April 17, 2026)

    Simulations

    Feel it before you read it. No account needed, nothing leaves this page.

    Azure portal: Move a VM to another resource group, then to another region Move a VM to another resource group, then to another region.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    In <strong>rg-contoso-prod</strong>, select the VM <strong>and</strong> its disk, NIC, public IP and NSG, then select <strong>Move</strong>.

    👆 Click the glowing item in the portal to continue

    Read the steps as text
    1. In rg-contoso-prod, select the VM and its disk, NIC, public IP and NSG, then select Move.
    2. Pick where it goes. A resource group or subscription move keeps the region; a region move is a different tool.
    3. Choose the target resource group, here rg-finance.
    4. On Resources to move, validation runs. Leave out the disk or NIC and it fails: a VM moves with its dependent resources. Across subscriptions the virtual network has to come too.
    5. Tick the box: every resource ID changes because it contains the resource group name. Both groups are locked for writes while the move runs, but the VM keeps running. CLI: az resource move --destination-group rg-finance --ids ….
    6. Now a copy has to run in West US 2. On the VM, select Move › Move to another region. That opens Azure Resource Mover.
    7. Select Validate dependencies. Resource Mover finds the disk, NIC and virtual network the VM needs and offers to add them.
    8. Then Prepare and Initiate move. Test the copy, then Commit move.
    9. Finally Delete source. A region move is really copy, test, commit and clean up.

    🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.

    😟 THE PROBLEM

    The VM was built in the wrong resource group, and now it must also run in another region.

    😊 THE SOLUTION

    Move it with its dependencies, then copy it across regions with Resource Mover.

    • Wrong resource group✓ az resource move
    • Move fails validation✓ Include disks and NIC
    • Needs another region✓ Azure Resource Mover
    🛠️ Solved with: Resource moves and Azure Resource Mover

    Start with a question

    Is moving to another department the same as moving to another city?

    If you switch department, you keep your desk, your building and your commute. Only your badge and your manager change.

    If you move to another city, you pack everything, set up a new desk, check it all works, then hand back the old keys.

    A VM moving to another resource group or subscription is the department change: same region, still running, new ID badge. A move to another region is the city move, and Azure Resource Mover is the removal company.

    Explain it like I’m 10

    The technical explanation

    Resource group and subscription moves

    Portal: select the VM and its related resources in the resource group, then Move › Move to another resource group (or subscription). The wizard has Source + target, Resources to move (validation) and Review, where you confirm that scripts using the old IDs will need updating.

    az resource move --destination-group rg-finance \
      --ids $(az resource list -g rg-contoso-prod --query "[?contains(name,'vm-rpt-01')].id" -o tsv)
    # to another subscription:
    az resource move --destination-group rg-finance --destination-subscription-id <sub-id> --ids <ids>
    $ids = (Get-AzResource -ResourceGroupName rg-contoso-prod | Where-Object Name -like 'vm-rpt-01*').ResourceId
    Move-AzResource -DestinationResourceGroupName rg-finance -ResourceId $ids

    What you need to know:

    TopicRule
    RegionDoesn’t change
    VM stateKeeps running; source and target groups are locked for writes during the move
    Resource IDsChange (they contain the resource group and subscription)
    DependenciesVM + OS and data disks + NIC; public IP and NSG with them. Across subscriptions, the VNet and everything on it too
    SubscriptionsSame Microsoft Entra tenant; resource provider registered in the target; enough quota
    PermissionsmoveResources/action on the source group and write on the target (Contributor on both works)
    Role assignmentsOnes made directly on the moved resource don’t come along
    LimitsSome VMs can’t move, for example ones with Marketplace plans across subscriptions or with certain backup setups. Check the move guidance for VMs

    Moving a VM doesn’t move its resource group’s locks, tags or policies. Policies at the target apply from then on.

    Region moves with Azure Resource Mover

    From the VM: Move › Move to another region, or open Azure Resource Mover › Across regions. The flow:

    1. 1 Add

      Pick the source and target regions and the VM. This creates a move collection.

    2. 2 Validate

      Validate dependencies adds the disks, NIC, VNet, NSG and resource group it needs.

    3. 3 Prepare

      The resource group is prepared first, then VM disk replication starts (it uses Azure Site Recovery).

    4. 4 Initiate

      Target resources are created in West US 2. Test them.

    5. 5 Commit

      Commit keeps the copy, or Discard throws it away. Then Delete source.

    Moving vm-rpt-01 from East US to West US 2

    The CLI has the same steps under az resource-mover move-collection (create, resolve-dependency, prepare, initiate-move, commit, discard) and az resource-mover move-resource add. A region move is really a copy: until you delete the source, you’re paying for both.

    Architect level Zones, not regions

    Moving a VM into an availability zone in the same region is a separate job. Resource Mover has an Across zones option, and Azure Site Recovery can also do a zone-to-zone move. You can’t simply edit the zone of an existing VM, just as you can’t add an existing VM to an availability set. When a question says “with minimal downtime” and “another region”, think about Site Recovery replication under Resource Mover and testing before commit.

    Real-world business scenario

    E-commerce

    Tailwind Traders (fictional)

    The problem
    After a reorganisation, the reporting VMs had to be billed to the finance subscription, and the European team needed a copy closer to them in West Europe.
    What they used
    Admins used Move to send each VM with its disks, NIC, public IP, NSG and VNet to a resource group in the finance subscription in the same tenant, then updated alert rules with the new IDs. For Europe they ran Azure Resource Mover: validate, prepare, initiate, test, commit and delete the source.
    Why that choice
    Subscription moves don't stop the VMs or change the region, and Resource Mover copies the VM and its dependencies to the new region with a test step before anything is final.
    The result
    Finance sees the costs on its own bill, European reports run 120 ms faster, and nothing was rebuilt by hand.

    When to use it and when not to

    ✓ Use it when…

    • A VM was created in the wrong resource group or must be billed to another subscription.
    • A workload needs to run in another region and you want the dependencies moved with it.
    • Tidying ownership after a reorganisation, with no downtime for group or subscription moves.

    ✕ Think twice when…

    • Expecting a resource group move to change region or improve latency.
    • Moving into a subscription in a different Microsoft Entra tenant. Transfer the subscription or rebuild instead.

    ↔ Alternatives to consider

    • Azure Site Recovery for ongoing disaster recovery replication to another region.
    • Redeploy from a template when the VM is easy to rebuild.
    • Azure Migrate for servers coming from outside Azure.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    Test yourself with exercises

    5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.

    Question 1

    Question 1 of 5

    VM1 is in resource group RG1 in East US. You move VM1 and its dependent resources to resource group RG2, which is located in West Europe.

    In which region is VM1 located after the move?

    Question 2

    Question 2 of 5

    You need to move VM1 from East US to West Europe, including its disks and network resources, by using a process that lets you test the target before you finalize the move. What should you use?

    Question 3

    Question 3 of 5 · Select 2

    You plan to move VM1 from resource group RG1 to RG2 in the same subscription. VM1 has an OS disk, one data disk, a network interface, a public IP address, and a network security group.

    Which two resources must be included in the move together with VM1 at a minimum? Each correct answer presents part of the solution.

    Question 4

    Question 4 of 5

    After you move VM1 from RG1 to RG2, an automation script that manages VM1 fails with a ResourceNotFound error. What is the most likely cause?

    Question 5

    Question 5 of 5

    You need to move VM1 and its dependent resources from Subscription1 to Subscription2. Subscription1 is associated with tenant A. Subscription2 is associated with tenant B.

    What prevents the move?

    Interview preparation

    Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.

    Beginner Does moving a VM to another resource group change its region?

    Model answer

    No. Moving between resource groups or subscriptions only changes where it's managed and billed. The VM stays in the same region and keeps running. Changing region needs Azure Resource Mover or a rebuild.

    Intermediate Your VM move fails validation. What's the usual reason?

    Model answer

    The VM was selected without its dependent resources. Its OS and data disks and network interface have to move together, and for a subscription move the virtual network as well. I'd select the whole set, or check the error, which lists what's missing.

    Experienced developer What breaks after you move a VM to another subscription?

    Model answer

    Anything that uses the old resource ID: scripts, alerts, dashboards, automation and role assignments made directly on the VM, which don't move. I'd also check that the target subscription has the Microsoft.Compute provider registered and enough quota, and that both subscriptions are in the same tenant.

    Scenario A VM in East US must run in West Europe with as little rework as possible. How do you do it?

    Model answer

    Azure Resource Mover. I'd create the move from the VM's Move menu, let it add the dependencies, prepare and initiate the move, test the copy in West Europe, commit, update DNS, then delete the source. Until I commit I can discard and nothing changes in the source.

    Quick revision

    Key points

    • Resource group and subscription moves keep the region and the VM keeps running.
    • Resource IDs change. Update scripts, alerts and role assignments on the resource.
    • Move a VM with its disks and NIC; across subscriptions the VNet goes too.
    • Subscription moves need the same Microsoft Entra tenant and the provider registered in the target.
    • Region moves use Azure Resource Mover - validate, prepare, initiate, commit, delete source.

    Important terminology

    Resource move
    Moving resources to another resource group or subscription. The resources keep their region and keep running.
    Resource ID
    The full path of a resource, which includes the subscription and resource group, so it changes after a move.
    Dependent resources
    Resources a VM needs, such as its disks and network interface, that must move with it.
    Azure Resource Mover
    The service that moves VMs and related resources to another Azure region through prepare, initiate and commit steps.
    Move collection
    The Resource Mover object that groups the resources moving from one source region to one target region.
    Commit
    The Resource Mover step that makes the copied resources in the target region final. Discard throws them away instead.

    Common mistakes

    • Expecting a resource group move to change the region.
    • Moving the VM without its disks or NIC.

    Exam tips

    • "Move to another region" = Azure Resource Mover.
    • "Move to another resource group or subscription" = Move / az resource move.
    • "What changes after a move?" = the resource ID, not the region or the IP configuration.

    Five quick revision questions

    1. 1.Which command moves resources to another resource group?Show

      az resource move --destination-group <rg> --ids <ids>.

    2. 2.Does a resource group move change the VM's location?Show

      No.

    3. 3.Which service moves a VM to another region?Show

      Azure Resource Mover.

    4. 4.What must both subscriptions share for a move between them?Show

      The same Microsoft Entra tenant.

    5. 5.Which Resource Mover step makes the target resources final?Show

      Commit.

    Official references

    Finished this lesson? Tick it off. Your progress is saved in this browser.

    Next up: Availability Zones, Availability Sets and VM Scale Sets

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.