In the Azure portal, to create any resource, be it a VM, Disk, or Storage Account, the Azure Resource Group, is mandatory. Every Resource/Instance created will be linked to a Resource Group. So you can define it as a Group created to centrally manage the resources that we create, similar to AD Groups. If you go by Microsoft Definition, you can call it a container containing all the resources created.
One should always allocate resources to the resource group of the same category as a best practice though it is not mandatory. For Example, all IT resources under one Resource group and resources of HR Employees under one group, and so on. It will only make the life of the admins easier when they manage it to deploy, update and delete them as a Group.
Below are some of the points to keep in mind while creating a Resource Group:
- Name of the group should be unique : when you create a Resource Group in public cloud it should not be matching with any other resource group.
- Group Renaming is not allowed : Once a group is created you cannot rename it. Hence an admin should be cautious of the naming conventions to be followed while creating the group.
- Group can have different types of resources: A group can have different types of resources i.e. VM, Disk, DB etc. Any resource available in the portal can be allocated to a Group
- Groups can have resources from different regions : You can allocate resources from different regions. For example a resource from East US region and a resource from West US Region.
Prerequisites for Azure Resource Group
Let’s check the prerequisites for Azure Resource Group.
- Azure account with valid subscription
- A browser
- Internet connection
NOTE! There is no cost for creating a Resource Group. It is Zero Cost.
Creation and Deletion of Resource Group
Let’s check how to create and delete resource groups.
- Sign into Azure Portal
- Open the Navigation Panel by Clicking on top left Corner.
3. Click on Resource Groups as shown from the Navigation Panel.
4. Click on Create.
5. Select Subscription, Region, and provide a Name to the group.
6. Click on Review + create.
7. Once the validation is passed, you should see a create button. Click Create.
8. You can check the progress in the notification bar on the top right corner, as shown below. Once finished, you should see a notification that the creation of the group is complete.
9. If you click on the go-to resource group, you should see the list of all the groups that have been created in the portal. You can click on the group to open and see the available operations to perform within a group.
10. As you can see, the list of operations includes create, edit columns, refresh, etc. let’s go ahead and try creating a new resource. So, click on create.
11. I will select the first available option for testing purposes which is “Windows Server 2019 Datacenter,” and it will create a Virtual Machine.
12. You should see that the name of the resource group is already allocated because you are trying to create the resource from within the group. You can change the allocation as needed or even create a new one if you like. That is how you create a resource group, now. Let’s take a look at how to delete a resource group.
13. From the Navigation panel, if you go to the group as mentioned in Step 10, you should see a list of available actions in which delete is also a part of it, as you see below. Go ahead and click on “Delete Resource Group.”
14. To prevent accidental deletion of the resource group, Microsoft has put in a check. you have to enter the name of the resource group precisely to delete the group and then click on “Delete.”
15. Once successfully deleted, you should see a notification that it is successfully deleted.
NOTE! If you delete a Resource Group, all the resources linked to the group will also be deleted.
- You can refer to the Microsoft article for more information.
- Azure Portal Walkthrough and User Preferences