Hello Sathwik,
Thanks for posting your question in Microsoft Q&A forum
- This error typically occurs with PaaS (Platform as a Service) or nested Azure resources where the control plane (management metadata) and data plane (underlying hosted components) are associated with different resource groups.
- In most cases, the issue arises from an incomplete or partially failed move operation. Although the resource now appears in the target resource group (
dit-dev), its internal metadata or a dependent component still references the original hosting resource group (installed-base-dev).
Deleting the old resource group does not remove these internal references, and in some cases, it can make recovery more complex. Azure’s validation process detects this inconsistency and prevents the move until the internal hosting link is corrected.
To resolve this, verify the resource’s internal hosting relationship using the following command:
az resource show --ids <resource-id> --query properties.hostingResourceGroupName
- If it still points to the old group, recreate the resource group with the same name and move the resource back temporarily, if not contact Microsoft Support to reset the internal hosting reference.
- Once the resource is successfully moved back, verify that all its dependent resources are in the same resource group. Ensure there are no dependencies still referencing another resource group.
- Move the consolidated resource group (with all its dependent resources) to the target subscription and target resource group. Performing the move in a single operation ensures Azure updates both control plane and data plane metadata correctly
- If you are unable to move the resource back due to the deleted hosting group, or if the move continues to fail, open a Microsoft Support ticket create an Azure support request, you can manage it in the Azure portal. to have the internal hostingResourceGroup reference reset.
Referral documents:
- Move Azure resources to a new resource group or subscription - Azure Resource Manager | Microsoft L…
- Manage an Azure support request - Azure supportability | Microsoft Learn
I hope the provided answer is helpful, do let me know if you have any further questions on this Please accept as Yes and upvote if the answer is helpful so that it can help others in the community.