Moving resources failed because resource group 'testResforMoving' has active deployments

Riya Bharti 0 Reputation points
2023-11-07T12:48:28.5233333+00:00

I want to move Virtual machine with its dependent resources from one subscription to another by keeping infrastructure as existing but getting error as below {"message":"Moving resources failed because resource group 'testResforMoving' has active deployments. (Code: DeploymentActive)","code":"DeploymentActive","name":"c972a550-dab2-4658-b47c-cad313e3b003","status":409}

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,018 questions
Azure Resource Mover
Azure Resource Mover
An Azure service used for moving multiple resources between Azure regions.
238 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
553 questions
{count} votes

2 answers

Sort by: Most helpful
  1. v-vvellanki-MSFT 4,920 Reputation points Microsoft Vendor
    2023-11-08T13:01:17.6233333+00:00

    Hi @Riya Bharti ,
    Thanks for contacting Microsoft Q&A.

    The error message you're encountering, indicates that there are active deployments or resources within the resource group you are trying to move, which is preventing the move operation.

    Before moving a resource group or its resources to a different Azure subscription, it's important to ensure that there are no active deployments, resources in the process of being created, or resources that have not been fully provisioned within that resource group. Active deployments can include things like creating new virtual machines, deploying applications, or modifying existing resources.

    To resolve this issue, follow these steps:

    Check for Active Deployments: Review your resource group in the Azure portal and look for any ongoing or pending deployments. Ensure that there are no recent deployments or operations in progress.

    Check Resource States: Ensure that all resources in the resource group are in a stable state. This includes virtual machines, databases, storage accounts, and any other resources. Verify that there are no resources stuck in a provisioning or updating state.

    Deallocate/Stop Virtual Machines: If there are virtual machines in the resource group, make sure they are stopped or deallocated. Active virtual machines can prevent the move operation. Deallocate them from the Azure portal.

    Check for Running Services: Verify if there are any services, applications, or processes running on the virtual machines within the resource group that may be causing active deployments. Ensure that all services are stopped or paused.

    Hope this helps you.

    0 comments No comments

  2. Ketaki Satish Barde 0 Reputation points Microsoft Employee
    2024-07-01T19:19:09.4166667+00:00

    Is there a Kusto Table to check what were the active deployments from old runs? My RG is destroyed now so can;t access via portal

    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.