Using Tags in Microsoft Azure

Share this:

When using Azure Resource Manager deployment model the administrator can use Tags, which helps to organize resources and categorize them in a simple way.

Solution


The tag feature is only available on the Azure Resource Manager deployment model and using PowerShell, and besides of the categorization benefit, we can also use the same tags on the billing reports.

Using Tags..

Before starting using the Tags, these following points can help to use better the tag resource.

  • Create a consistent standard for your Tags
  • Pay attention for spaces, a tag “ServiceOwner” and “Service Owner” are two different tags because of the space between the words
  • You have to type in the Tags (including Key and Value) on new objects (Resource Groups, VMs and etc), the existent ones are not listed

The tags are exposed on the Azure Preview Portal, in the example below we are checking a specific resource group called azana-rg-exchange, and then we can click on Tags icon located on the right-upper side of the blades, and the new blade is where we can define the key and its value.

image

A best practice is to keep consistency of the tags among all resources, for this Tutorial we re going to use a couple of keys to identify the service, such as CostCenter, Department, Owner and ServiceName.

image

After defining the Tags, the administrator can click on Browse and then click on Tags. A list of all existent tags will be listed.

image

When we click on any given Tag a new blade will show up on the right side with all resources that have that tags.

image

If we click on a different Tag (in the example below Owner: Anderson Patricio) we can see that tag was used in two different Resource Groups and they are listed on the right side.

image

Another way to use Tags, is to click on and pin them to the dashboard.

image

This way by clicking on the tag the administrator has easy access to all resources associated to that tag.

image

Tags and the billing report…

Another benefit of using tag is the ability to use them on the billing report, and by doing that we can charge back a specific service based on Tags. When exporting the usage of the Microsoft Azure, make sure to download the Version 2 – Preview

image

A csv file will be downloaded, and a column Tags will be available and you can filter using Excel to get the exact cost of any given service/resource associated to a tag.

image

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at ITPROCentral.com, MSExchange.org, Techgenix.com and Anderson Patricio.org (Portuguese).

Related Post

How to move blob data between Storage Accounts usi... In some situations, data from a Storage Account must be moved to a different Storage Account and we can use several options to accomplish this task, s...
Azure Backup – Part 1 One of the first workloads that usually the majority the organizations wants to start to use in Azure is to replace the tape to Cloud Backup. Followin...
How to configure Azure Logic Apps Usually for social media automation I used for a long time IFTTT, although with Azure Logic Apps I decide to give a try. I started to use Azure Logic ...
Installing Azure CLI on a Mac OS X Microsoft Azure is open for all type of administrators, and if you use a Mac OS X,  you can access the portal using your Safari and also use Azure CLI...