How can transfer Azure VM to another subscription in the same tenant?

Abdulaziz Khaled 20 Reputation points
2023-05-11T08:14:20.0633333+00:00

I have an Azure subscription, I want to move the Az-VM to another subscription in the same tenant.
How can i do it?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,041 questions
{count} votes

2 answers

Sort by: Most helpful
  1. TP 125.8K Reputation points Volunteer Moderator
    2023-05-11T09:09:21.0633333+00:00

    Hi,

    Please refer to articles below for limitations/unsupported scenarios and how to steps:

    Move virtual machines to resource group or subscription

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

    Move resources to a new resource group or subscription

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription

    If the above was helpful please click Accept Answer.

    Thanks.

    -TP

    0 comments No comments

  2. KarishmaTiwari-MSFT 20,777 Reputation points Microsoft Employee Moderator
    2023-05-11T16:26:31.6433333+00:00

    @Anonymous
    Thanks for reaching out on Microsoft Q&A.

    Can you move Azure VM from Subscription A to Subscription B within the same tenant?
    Yes.

    For a cross subscription move, the target subscription must exist in an enabled state within the same tenant as the source subscription. 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
    

    How to move Azure VM from Subscription A to Subscription B within the same tenant?
    For a move across subscriptions, the resource and its dependent resources must be located in the same resource group and they must be moved together. For example, a VM with managed disks would require the VM and the managed disks to be moved together, along with other dependent resources.Scenario for move across subscriptions.

    See Scenario for move across subscriptions

    You can move the VM from SubA to Sub B within the same tenant by using Azure Portal, Azure CLI or PowerShell, as described here: https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription#use-the-portal

    User's image

    Clicking on Subscription (move) takes you to this page on Azure Portal.
    User's image

    If you have any questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.