In this article will explain how to create and manage an Azure Resource group and implement tags in a resource group. We will see it step-by-step.
Before we start, let's understand the objective of this demonstration which tells what exactly will be covered in this article.
- Create a resource group in the Azure Portal.
- Manage the resource groups
- Understand the use of Tags in resource groups.
So, let's get started.
Resource Group
The resource is nothing but an Azure service such as an app service, Azure storage, azure active directory, etc. It means whenever you create a new resource, you are creating the azure service. As the name implies, a Resource Group is a group of Azure resources like virtual machines, app services, storage accounts, SQL databases, etc. It's a logical container for grouping related azure resources. You can use them to group related resources for an application and divide them into groups for production and non-production, or any other organizational structure you prefer.
Create a resource group in the Azure Portal
Step 1
Open the Azure management portal and log in to https://portal.azure.com
Step 2
Select "Resource Group" from the Home page or Search “Resource Group” from the search bar and Open it.
Home Page
Search
Step 3
Click on the “+ Create” button to create a resource group.
Step 4
After clicking create option, fill in the required details in the Basics tab
- Subscription: Choose a suitable subscription.
- Resource group: Resource group is a container that holds related resources for an Azure solution. You can keep the resource group as it is or you can also create one by clicking “Create New”.
- Region: Here, you are going to create all the resources associated with your virtual machine. Select your region
Step 5
Click on "Review + Create" to validate the settings. After clicking on it, A message appears - Validation Passed. Click on the "Create" button for the deployment process.
Step 6
A message will notify you on top of the notification bell icon that your Resource group is created.
Using Tags
Tagging is used to organize your Azure resources, resource groups, subscriptions, and management groups hierarchy. Each tag consists of a name and a value pair.
If you were working at the project level there should be some tagging compliance to organize your Azure resources, resource groups, subscriptions, and management groups hierarchy or for better filtering, monitoring, or for querying a few scenarios.
Note: Tag names are case-insensitive, but tag values are case-sensitive.
Step 7
On the resource group page, go to the Overview tab. Click on the "Click here to add tags" link to add the tags to your resource group.
Step 8
Provide the name and value for the tag as shown in the below image. Continue adding the tags as needed. When done, click "Save" to save the changes.
Step 9
The tags that you’ve added are now displayed in the overview.
Step 10
To add or delete a tag, select "edit".
Step 11
To delete a tag, click on the trash icon and select "Save" to save the changes.
Step 12
The tags that you’ve deleted, will be removed from the overview