question

GregThomas-0401 avatar image
0 Votes"
GregThomas-0401 asked karishmatiwari-msft commented

Process to move Azure Virtual Machine to a new Subscription

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

karishmatiwari-msft avatar image
0 Votes"
karishmatiwari-msft answered karishmatiwari-msft commented

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://docs.microsoft.com/en-us/azure/virtual-machines/windows/move-vm

Here is the move guidance for Virtual machines: https://docs.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.


· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@GregThomas-0401
Just checking in to see if the above answer helped. If this answers your query, do click “Accept the answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.


<<Private message note: This is a private message which only you as Original Poster and Microsoft Moderators can view. Please respond directly to this comment to privately share the requested information. For your privacy, please do not share any Personal Identifiable Information (PII) as a public or private comment. All the private messages on the platform will be deleted on periodic basis>>

0 Votes 0 ·
AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @GregThomas-0401 ,

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GregThomas-0401 avatar image
0 Votes"
GregThomas-0401 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

GregThomas-0401 avatar image
0 Votes"
GregThomas-0401 answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

AndreasBaumgarten avatar image
0 Votes"
AndreasBaumgarten answered

Hi @GregThomas-0401 ,

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



image.png (144.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.