Creating Azure Resource Group And Using Tags

In this article will explain how to create and manage an Azure Resource group and implement tags in a resource groupWe 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

Resource group on Home Page

Search

Resource group on search

Step 3

Click on the “+ Create” button to create a resource group.

create resource group

Step 4

After clicking create option, fill in the required details in the Basics tab

  1. Subscription: Choose a suitable subscription.
  2. 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”.
  3. Region: Here, you are going to create all the resources associated with your virtual machine. Select your region

Create Resource group

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.

Validation pass

Step 6

A message will notify you on top of the notification bell icon that your Resource group is created.

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.

Add Tag

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.

Add Tag Name value

Step 9

The tags that you’ve added are now displayed in the overview.

Tag added successfully

Step 10

To add or delete a tag, select "edit".

edit tag

Step 11

To delete a tag, click on the trash icon and select "Save" to save the changes.

Azure Resource Group and Using Tags

Step 12

The tags that you’ve deleted, will be removed from the overview

Azure Resource Group and Using Tags