Azure vm move to different subscription

Rishabh Gupta 0 Reputation points
2022-02-09T14:36:18.993+00:00

I am not able to move my vm from one subscription to another. I am getting the error mentioned below -

{"code":"ResourceMoveValidationFailed","message":"The resource batch move request has '1' validation errors. Diagnostic information: timestamp '20220209T143225Z', tracking Id '46e81876-d330-42e3-87e0-8adcb115e897', request correlation Id '70d7a12e-a1ea-4a71-9473-ed0904a6f5a7'.","details":[{"code":"ResourceMoveValidationFailed","message":"Resource move is not supported for resources that have plan with different subscriptions. Resources are 'Microsoft.Compute/virtualMachines/freakydiodes' and correlation id is '70d7a12e-a1ea-4a71-9473-ed0904a6f5a7'."}]}

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

2 answers

Sort by: Most helpful
  1. srbhatta-MSFT 8,586 Reputation points Microsoft Employee
    2022-02-09T15:13:04.047+00:00

    Hello anonymous user,

    Thanks for reaching out to Microsoft QnA Platform. Happy to answer your question.
    You are getting this error because virtual machines created from Marketplace resources with plans attached cannot 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. The steps mentioned in this document will help you recreate the virtual machine in the new subscription. However, they might not work for all scenarios. If the plan is no longer available in the Marketplace, these steps won't work. Please find the commands below.

    172557-2022-02-09-20-38-14-clipboard.png

    I hope this helps.

    Reference links:
    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations?tabs=azure-cli

    -----------------------------------------------------------------------

    Please don't forget to "Accept as Answer" and "Upvote" and if you think my response was helpful, so that it can help others in the community looking for help on similar issues.

    1 person found this answer helpful.
    0 comments No comments

  2. Vidya Narasimhan 2,126 Reputation points Microsoft Employee
    2022-02-09T15:11:54.893+00:00

    anonymous user Please go through this article which lists the unsupported scenarios for moving VM across Subscriptions & check if your scenario corresponds to any of them https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-limitations/virtual-machines-move-limitations?tabs=azure-cli

    0 comments No comments

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.