How to resolve Azure resource migration issue where VM resources are moved to new subscription but the VM remained in the previous subscription ?

Lawrence Wong 0 Reputation points
2024-09-26T06:26:32.08+00:00

I initiated an Azure linux VM migration from subscription A to subscription B. The process is validated and successful. Upon checking, only the VM resources (network, disks) was moved to subscription B. The VM itself is still in subscription A. Now I cannot move VM to subscription B coz the validation process indicated the associated resources are not there/included.

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

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 875 Reputation points Microsoft Vendor
    2024-09-26T15:26:16.6+00:00

    Hi Lawrence Wong,
    Thank you for patience while reviewing the issue
    Based upon your query there will be the several issue might be cause you can try the following step to resolve you issue

    First, please confirm whether the network, disk and VM are in the same resource group. If the network, disk and VM are in different resource groups, this could cause issues, even if the validation is successful. To resolve this, gather all the resources you want to move into a single resource group in Subscription A, and then try moving the resources to Subscription B again.

    And you provided another comment with more information about the issue. The problem arises because a resource with the same name already exists, which is why the issue occurs. Please rename the conflicting resource and try again.
    The error message states: "which have the same name as a resource in the target resource group."

    Please refer this document Scenario for move across subscriptions

    Note: Before moving the VM and its associated resources, make sure to back up your data and create snapshots of the disks to prevent any loss. Also, check for all dependencies, like NICs and public IPs, to ensure everything needed is included in the move

    If you found helpful, could you please click an accepting the answer and "Upvote" on my post to help increase visibility of this question for other members of the Microsoft Q&A community.
    User's image


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.