An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.
Hi ammy J
Yes, resources created in the wrong resource group can be moved to the correct one in Microsoft Azure, please follow the below options.
Option 1: Azure Portal
Go to the source resource group
Click “Move” → “Move to another resource group”
Select the resources you want to move
Choose the target resource group
Validate and click Move
Option 2:
Move-AzResource -DestinationResourceGroupName "TargetRG" -ResourceId "/subscriptions/{subId}/resourceGroups/{sourceRG}/providers/{resourceProvider}/{resourceType}/{resourceName}"
Option 3:
az resource move --destination-group TargetRG --ids /subscriptions/{subId}/resourceGroups/{sourceRG}/providers/{resourceProvider}/{resourceType}/{resourceName}
Please note:
The source and destination resource groups must be within the same subscription.
Some resource types may not support the move operation.
If there are dependencies, all related resources must be moved together.
If the move option is not available or validation fails, the alternative would be to recreate the resources in the correct resource group and migrate the configuration/data accordingly.
Please let me know if you face any challenge here, I can help you to resolve this issue further
Provide your valuable Comments.
Please do not forget to "Accept the answer” and “upvote it” wherever the information provided helps you, this can be beneficial to other community members.it would be greatly appreciated and helpful to others.