How to move my resource (VM) to another subscription under a different directory without impacting my associated data disk?

DY 20 Reputation points
2024-05-30T17:04:01.5933333+00:00

My lab has been running a VM (and a data disk on it) on an account for a while under the default directory and a regular subscription. My university later assigned us some education credits to our account, but as a different directory and a different subscription. How can I move my resources (VM+data disk) to this new subscription under a different directory without the risk of losing my data on the data disk?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,374 questions
Azure Disk Storage
Azure Disk Storage
A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
586 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
218 questions
{count} votes

Accepted answer
  1. kobulloc-MSFT 25,146 Reputation points Microsoft Employee
    2024-05-30T18:07:24.1666667+00:00

    Hello, @DY !

    How do I move my virtual machine (VM) with attached data disk to another subscription?

    You can use Move > Move to another subscription with your VM resources and your attached data disk selected:

    https://azure.microsoft.com/en-us/blog/move-managed-disks-and-vms-now-available/

    Make sure that all VM resources as well as the attached disk are selected, then click Move > Move to another subscription:

    User's image

    There are a couple special scenarios when moving a VM but it doesn't sound like those would apply here:

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations?tabs=azure-cli

    Sources and Additional Reading:


    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image


0 additional answers

Sort by: Most helpful