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
Step 3:
On the policy page click assignments on the left, then click assign a policy
Step 4:
On the Assign Policy page click ... button on the right under policy definition
Step 5:
Search for tag in the search bar, click require a tag and its value on resource, then click add
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
Step 7:
After validation has passed click create button
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
Step 2:
On the storage accounts page click create button
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
Step 4:
Go to tags tab, enter the tag name that was created earlier and also the tag value created earlier then click review
Step 5:
After validation has passed click create button
Step 6:
After deployment is completed, click Go to resource
Step 7:
Viola!!! as you can see we have added a tag to our storage account
Top comments (0)