Process to move Azure Virtual Machine to a new Subscription

Greg Thomas 121 Reputation points
2021-07-13T19:06:05.55+00:00

Hi,

I'm trying to find some technical guidance on how to move an Azure VM from one subscription to the other.

The subscriptions are not linked, so I cannot do the "Move to New Subscription". I thought I was on the right path of creating snapshots and exporting them but that seems to be resulting in errors.

From everything I have read, it looks like I will have to do this manually.

Is there a document that walks through the step-by-step instructions on how to do this?

Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,086 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Andreas Baumgarten 95,496 Reputation points MVP
    2021-07-13T19:19:47.5+00:00

    Hi @Greg Thomas ,

    have you tried the Azure Resource Mover to get this done?

    114327-image.png

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Greg Thomas 121 Reputation points
    2021-07-13T19:23:13.423+00:00

    From everything I have read (and attempted), this requires the resource groups to be in the same subscription.

    That and if the subscriptions are in completely different tenants you can't see the other subscription.

    0 comments No comments

  3. Greg Thomas 121 Reputation points
    2021-07-13T19:23:13.74+00:00

    From everything I have read (and attempted), this requires the resource groups to be in the same subscription.

    That and if the subscriptions are in completely different tenants you can't see the other subscription.

    0 comments No comments

  4. Andreas Baumgarten 95,496 Reputation points MVP
    2021-07-13T19:42:23.107+00:00

    Hi @Greg Thomas ,

    sorry I didn't got the "different tenant".

    Maybe this helps (never tried myself):
    https://navizblog.home.blog/2019/04/04/move-azure-vm-from-one-tenant-to-another/

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  5. KarishmaTiwari-MSFT 18,352 Reputation points Microsoft Employee
    2021-07-14T00:38:35.113+00:00

    It looks like you are trying to move the VM from Subscription A in Tenant A to Subscription B in Tenant B.

    As per the checklist before moving resources, the source and destination subscriptions must exist within the same Azure Active Directory tenant. To check that both subscriptions have the same tenant ID, use Azure PowerShell or Azure CLI.

    For Azure PowerShell, use:

    (Get-AzSubscription -SubscriptionName <your-source-subscription>).TenantId  
    (Get-AzSubscription -SubscriptionName <your-destination-subscription>).TenantId  
    

    For Azure CLI, use:

    az account show --subscription <your-source-subscription> --query tenantId  
    az account show --subscription <your-destination-subscription> --query tenantId  
    

    If the tenant IDs for the source and destination subscriptions aren't the same, use the following methods to reconcile the tenant IDs:

    Transfer ownership of an Azure subscription to another account
    How to associate or add an Azure subscription to Azure Active Directory

    For the scenario in which both subscriptions belong to the same tenant
    Here is the step by step document for moving Azure VM from one subscription to another: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/move-vm

    Here is the move guidance for Virtual machines: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations
    This article describes the scenarios that aren't currently supported, for example, Virtual machines created from Marketplace resources with plans attached can't be moved across subscriptions. To work around this limitation, you can de-provision the virtual machine in the current subscription, and deploy it again in the new subscription.

    Let me know if you have further questions.

    ----------

    Please accept an answer and upvote, if correct. Original posters help the community find answers faster by identifying the correct answer.