Share via

Move Subcription

Handian Sudianto 6,826 Reputation points
2024-11-28T07:08:40.0366667+00:00

hello,

I have 2 subscription on my tenant and i try to move one VM from subcription-1 to subcription-2 with always got this error. Anyone know why?

User's image

On the log i can see why another resource like NSG, Virtual Network gateway etc is listed?

I'm only want to migrate the VM and the disk without move another resources.

Please check details for missing resource Ids. (Code: MissingMoveDependentResources, Target: Microsoft.Network/networkInterfaces) /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Network/virtualNetworks/vnet_failover, /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Network/networkSecurityGroups/nsg_test_failover, /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Network/virtualNetworks/vnet-dr-2-prod, /subscriptions/xxxx/resourceGroups/xxxx/providers/Microsoft.Network/virtualNetworkGateways/vngdr-2,

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

Answer accepted by question author
  1. Anonymous
    2024-12-06T16:45:48.0933333+00:00

    Hi Handian Sudianto,

    I'm glad that you were able to resolve your issue and thank you for posting your solution so as an original poster cannot accept their own answer, I am reposting it so that you can accept it an answer. Accepted answer will help other community members navigate to the appropriate solutions.

    Issue: I have 2 subscriptions on my tenant and i try to move one VM from subcription-1 to subcription-2 with always got this error. Anyone know why?

    Solution: Microsoft and they say it's better to make disk snapshot then copy the snapshot to new subscription, make manage disk based this snapshot and create the vm using this manage disk.

    I think this way is more easily than we use Azure Resource Mover.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    User's image

    Thank you.


1 additional answer

Sort by: Most helpful
  1. Shikha Ghildiyal 7,170 Reputation points Microsoft Employee Moderator
    2024-11-28T07:26:43.0733333+00:00

    Hi @Handian Sudianto ,

    Thanks for reaching out to Microsoft Q&A.

    Whenever you try to move VM, there are dependent resources connected to VM. NIC, NSG,VNETs are all dependent resources of VM without which VM won't move

    Please make sure to move the VM and dependent resources together from the source subscription to the target subscription.

    If you want to move VM only, then you have to first detach VNET associated to it and then move it.

    If you are using portal, to move resources, select VM and all dependent parts of it as per below reference:image

    For more details please check this document- https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/move-resource-group-and-subscription#use-the-portal

    Note: Scenarios not supported

    The following scenarios aren't yet supported:

    • Virtual Machine Scale Sets with Standard SKU Load Balancer or Standard SKU Public IP can't be moved.
    • Virtual machines in an existing virtual network can be moved to a new subscription only when the virtual network and all of its dependent resources are also moved.
    • Virtual machines created from Marketplace resources with plans attached can't be moved across subscriptions. For a potential workaround, see Virtual machines with Marketplace plans.
    • Low-priority virtual machines and low-priority virtual machine scale sets can't be moved across resource groups or subscriptions.
    • Virtual machines in an availability set can't be moved individually.
    • Virtual machines using scheduled patching can't be moved across resource groups or subscriptions. For a potential workaround, see Managing VM updates with Maintenance Configurations

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

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