Are you wondering how to rename a Resource Group in Azure? I’m sorry to say that there is no way to rename a Resource Group in Azure.
Table of Contents
Azure Rename Resource Group
To achieve this, you can create a new Resource Group with the new name you want to rename and then move all your Azure resources from the old Resource Group to the new Resource Group. Once you cross-check and ensure that all the Azure Resources have been moved successfully to the new Resource Group, delete the old Resource Group.
Follow the steps below to move all the resources from the old Resource Group to a new Resource Group using the Azure Portal.
- Log in to the Azure Portal.
- Search for Resource Groups and click on the search result Resource Groups.
3. you can now see the list of resource groups you created.
4. Click on the source or the old Resource Group. In my case, My old Resource Group was DEMORG1, which I want to rename it. Since renaming the Resource Group is impossible, I have created a new Resource Group DEMORG1. So here, I intend to move all the Azure resources from the DEMORG1 Resource Group to the DEMORG2 Resource Group.
So, Let me click on the source or the old Resource Group DEMORG1 from the lists of Resource Groups. Once you click on a Resource Group, you can see the Azure Resources it belongs to. Select all the Azure Resources by selecting the Name check box.
5. After selecting all the Azure resources, click on the More option, select Move, and then choose Move to another resource group.
6. Select the Target Resource Group on the Move Resources window. In my case, the target Resource Group is DEMORG2 –> Click on the Next button.
7. It takes a few seconds to check whether the resources can be moved.
8. Now click on the Next button on the Resources tab to move the tab.
9. Cross-check if the Source and target Resource Groups are correct on the Review tab. Select the check box “I understand that tools and scripts associated with moved resources will not work until I update them to use new resource IDs”. –> Finally, click on the Move button to move the resources from the source Resource Groups to the target Resource Groups.
10. You can see below that the Azure resource successfully moved from the source Resource Group (DEMORG1) to the target Resource Group (DEMORG2).
11. As a next step, you can navigate to the Source or the old Resource Group and click on the Delete Resource Group button to delete it. There is no point in keeping the old Resource Group, so you can delete the Source Resource Group as a clean-up activity.
You may also like following the articles below
- The ‘New-AzResourceGroup’ command was found in the module ‘Az.Resources’
- How to recover deleted Resource Group Azure
- The ‘Get-AzResourceGroup’ command was found in the module ‘Az.Resources’
- Azure PowerShell List Resource Groups
- The term ‘New-AzResourceGroup’ is not recognized as the name of a cmdlet
Wrapping Up
There is no provision to rename a Resource Group in Azure. However, you can create a new Resource Group and move all your Azure Resources from the old Resource Group to the new Resource Group in Azure Portal using the above instructions.
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.