Tagging Resources

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
Required fields are marked with an *
or

Already have an account? Sign In »

Time
3 hours 51 minutes
Difficulty
Beginner
CEU/CPE
4
Video Transcription
00:00
>> Let's look at one more way to
00:00
organize resources in Azure.
00:00
Tagging. Tags are name value pairs
00:00
that you can apply to resources
00:00
and resource groups in Azure.
00:00
You can think of tags as
00:00
textual metadata that you can add to your resources.
00:00
You can use tags to add additional information to
00:00
resources that is meaningful for your organization.
00:00
You can have up to 15 tags per resource,
00:00
and each tag key is limited to 512 characters.
00:00
Except for Azure storage resources like blocks, tables,
00:00
and queues, or tag keys are limited to 128 characters.
00:00
Tag values are limited to 256 characters.
00:00
Tags are not inherited from the parent resource.
00:00
For example, the tags applied to a resource group are
00:00
not automatically applied to
00:00
the resources in the resource group.
00:00
Also, not all resources in Azure support tags yet.
00:00
But let's see how we can apply
00:00
tags to resources using the Azure portal.
00:00
The first thing we will do is we will
00:00
apply tags to the resource group.
00:00
You can choose the resource group by
00:00
going to resource groups on the left,
00:00
and selecting the resource group.
00:00
In the overview blade,
00:00
you will see there is this line called tags.
00:00
You can click here to add tags to the resource group.
00:00
We'll add two tags here.
00:00
One will be cost center,
00:00
and we will say, learning.
00:00
The second one will be owner,
00:00
and I'll put the course architect's name there.
00:00
When you click save, the tags will be applied.
00:00
They will also appear where the link was previously.
00:00
We applied those tax.
00:00
However, those tags are applied
00:00
only to the resource group.
00:00
If you click on the resource itself,
00:00
you will see that there are no tags
00:00
applied to the resource.
00:00
As you can see, the resource has no tags applied to it.
00:00
We can click here, and apply
00:00
completely different tags to
00:00
the resources inside the resource group.
00:00
Let's say for the VNet,
00:00
we can do owner again.
00:00
That'll be the course architect's name.
00:00
We can do environment for the resource group,
00:00
and we'll say this is training.
00:00
Actually, this is for the resource,
00:00
not for the resource group.
00:00
Now, we have the owner and
00:00
environment tag for the virtual network.
00:00
We have the cost center and
00:00
the owner tags for the resource group.
00:00
This is how you apply tags to
00:00
different resources and resource groups in Azure.
00:00
You can use tags in many different ways.
00:00
One common scenario where tags are
00:00
used is for billing purposes.
00:00
For example, you can tag each resource with a tag,
00:00
cost center, and add
00:00
the tag center as a value for the resource.
00:00
Then you can easily pull
00:00
a report that gives you the consumption of
00:00
resources for each individual cost center using the tag.
00:00
You can do this using Azure billing API's
00:00
or by exporting the data from
00:00
the Cost Management blade in Azure portal.
00:00
You can also use tags to
00:00
manage the resources and releases.
00:00
For example, after deploying V2 of your product,
00:00
you may want to shut down the resources for
00:00
V1 and eventually terminate them later on.
00:00
Tags are also helpful for monitoring purposes.
00:00
For example, you can tag resources with owners,
00:00
and if a resource fails,
00:00
you know which department needs to be notified.
00:00
You can also create automatic alerts to
00:00
be sent based on the tag values.
00:00
You can also use tags for automation.
00:00
Let's say you want to save on your computer power,
00:00
and shut down VM's in
00:00
different regions based on working hours.
00:00
You can use tags to specify
00:00
start and stop times for the day,
00:00
and use Azure Automation to start
00:00
and stop the VM's every day.
00:00
And last, but certainly not least,
00:00
you can use Azure policies to enforce standards.
00:00
Now you know, how you can use tags to add
00:00
additional organization principles to
00:00
your resources in Azure.
Up Next