We have just learned how to create a resource group and how to add a resource. What we are still missing? We still need a way to organize our resources logically, for example, for the calculation of cost or for a targeted tracking.
ARM offers a solution for this—Azure resource tags. Resource tags are any key/value pairs that appear useful for describing a resource.
Let's see an example:
Key | Value |
Department | Management |
Project | PPBook |
Tenant | ACD |
Once you have defined a resource tag, you can use this as a filter in Azure PowerShell or in the Azure Billing APIs (Azure Usage API and Azure RateCard API). Up to 15 tags can be defined per resource.
I will show you the necessary work steps on the example of tagging an Azure storage account, but note that the description of the procedure applies to all other resource types in the same form:
- Open your Azure portal at https://portal.azure.com.
- In the portal, click on
Resource groups,
and then click on theResource groups
blade, then theacdppbook
...