Hi @Greg Thomas ,
have you tried the Azure Resource Mover to get this done?
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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.
Hi @Greg Thomas ,
have you tried the Azure Resource Mover to get this done?
----------
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
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.
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.
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
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.