DEV Community

Cover image for Implementing Resource Tagging in Azure
Adisa Oluwaseyi
Adisa Oluwaseyi

Posted on

Implementing Resource Tagging in Azure

What are Tags?
Tags provides metadata for Azure resources, it also logically organizes resources into a taxonomy.

Tags are very useful for rolling up billing information.

In this guide we will be creating a policy assignment that requires tagging, we will also create a storage account and test the tagging.

Creating a Policy Assignment that requires Tagging

Step 1:
Visit portal.azure.com, login or sign up if you don't have an account, you can get a free account at azure.microsoft.com/en-us/free/

Step 2:
On the Azure portal page click the search box and enter policy, then click policy

Image description

Step 3:
On the policy page click assignments on the left, then click assign a policy

Image description

Step 4:
On the Assign Policy page click ... button on the right under policy definition

Image description

Step 5:
Search for tag in the search bar, click require a tag and its value on resource, then click add

Image description

Step 6:
Go to the parameters tab, then enter a tag name of your choice and a tag value of your choice then click review + create

Image description

Step 7:
After validation has passed click create button

Image description

Creating a Storage Account to test required tagging

Step 1:
Go back to Azure portal homepage then on the search bar search for storage accounts, then click storage accounts

Image description

Step 2:
On the storage accounts page click create button

Image description

Step 3:
On the create a storage account page, select an existing resource group or create a new one, enter a storage account name of your choice, also select a region of your choice leave performance and redundancy as default

Image description

Step 4:
Go to tags tab, enter the tag name that was created earlier and also the tag value created earlier then click review

Image description

Step 5:
After validation has passed click create button

Image description

Step 6:
After deployment is completed, click Go to resource

Image description

Step 7:
Viola!!! as you can see we have added a tag to our storage account

Image description

Top comments (0)