How to Create Tags in Microsoft Azure
Tags: tag, azure, tutorial, productivity
Published: 2023-03-21 17:47:41

Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups - Microsoft Azure
Tags are metadata elements and key-value pairs that help to identify resources based on settings that are relevant to an organization.
They logically organise Azure resources, resource groups, subscriptions, and management groups hierarchy into taxonomy or for better filtering, monitoring or either for querying a few scenarios.
Each tag consists of a name and a value pair. 
Tags are very useful for rolling up billing information and their name is case insensitive, but their value pair is case sensitive.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gqizpkqt2yo9o9vzlng5.png)

Steps to Create Tags in Microsoft Azure

Step 1:
- Create a Microsoft Azure account and login
- Navigate to https://azure.microsoft.com/
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i5pc29kifwp7ybnu9fdq.png)

Step 2:
- Search and click on policy

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m772ch5yy5s52e6xqy8x.png)

Step 3:
- Click on Assignments
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i7prqnscct9ww24jq805.png)

Step 4:
- Click on 'Assign Policy'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jsbdu3mae96mavtzz42k.png)

Step 5:
- Click on 'Policy definition' 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/27kebi9o7g1455i7152o.png)

Step 6:
- Search for 'Tag'
- Click on 'Require a tag and its value on resources'
- Add

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ywx3w42qxv47nzd7312w.png)

Step 7:
Click on 'Parameters' to add your Tag Name and Tag Value

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pgv9qjdji2xucpfmk47k.png)

Step 8:
- Tag Name: Name of Environment
- Tag Value: Name of the company
- Click 'Review + Create'

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bb57biwwpvrgoc8pz911.png)

Step 9:
- Create

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0a1y6qt01rhhlim14n7p.png)

Step 10:
Create a Storage Account and add Tag
- Click Home to create a Storage Account
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9olxbtpeyep66b1gya23.png)

Step 11:
- Create
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3xum0d1zel2gy8la453q.png)

Step 12:
- Subscription: Choose your subscription
- Resource Group: Choose a resource group if you already have one
- Storage Account Name: Choose a unique name across all existing 
accounts in Azure
- Region: Choose your region
- Click on ' Tag' to add tag
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qw0a3duf865csjdhgcgm.png)

Step 13:
- Use the same name you chose Name and Value in step 8
- Review
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/35kmrguicjm71v3gznjc.png)

Step 14:
- Create

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ymf6ilel7n6moxszwqb1.png)

Step 15:
We have successfully created a policy and added a tag on the resource.
The tag in the resource is 'obicloud' as shown in the attached pic.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7r8rxrg7amx7fkratj5i.png)

To delete the policy assignment
Step 16:
- Click on 'Home'
- Follow step 2
- Click on 'Require a tag and its value on resources'
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gv1f9oa6oiw2b35fi270.png)

Step 17:
- Delete Assignment

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9zv3n362brmlj90fjs57.png)