Tagging Resources

Video Activity
Join over 3 million cybersecurity professionals advancing their career
Sign up with
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 organize resources in azure
00:04
tagging
00:05
tags are name value pairs that you can apply to resources and resource groups. In azure,
00:10
you can think of tags as textual metadata that you can add to your resources.
00:15
You can use tags to add additional information to resources that is meaningful for your organization.
00:20
You can have up to 15 tags for resource, and each tag key is limited to 512 characters, except for azure storage resources like blocks, tables and queues, where tag keys are limited to 128 characters,
00:35
tag values are limited to 256 characters.
00:39
Tags are not inherited from the parent resource.
00:42
For example,
00:43
the tags applied to a resource group are not automatically applied to the resources in the resource group.
00:49
Also, not all resources in azure support tags yet,
00:54
but let's see how we can apply tags to resources using the azure portal.
00:59
The first thing we will do is we will apply tags to the resource group.
01:03
You can choose the resource group by going to resource groups on the left and selecting the resource group
01:11
in the overview blade you will see there is this line called Tax.
01:15
You can click here to add tags to the resource group.
01:19
We'll add two tags here.
01:23
One will be cost center and we will say learning
01:29
The second one will be owner, and I'll put the course architects name there.
01:38
When you click, save the tags will be applied.
01:42
They will also appear where the link was previously.
01:48
We applied those tax. However, those tags are applied only to the resource group.
01:53
If you click on the resource itself, you will see that there are no tags applied to the resource.
02:04
As you can see, the resource has no tags applied to it. We can click here and apply completely different tags to the resources inside the resource group.
02:15
Let's say for the vignette, we can do owner again. That will be the course architects name.
02:29
We can do environment for the resource group, and we'll say this is training.
02:39
Actually, this is for the resource, not for the resource group.
02:44
Now
02:45
we have the owner and environment tag for the virtual network.
02:52
We have the cost center and the owner tags for the resource group,
02:57
and this is how you apply tags to different resources and resource groups. In Azure,
03:06
you can use tags in many different ways.
03:08
One common scenario where tags are used is for billing purposes.
03:13
For example, you can tag each resource with a tag cost center and add the toss center as a value for the resource.
03:20
Then you can easily pull a report that gives you the consumption of resources for each individual cost center using the tag.
03:29
And you can do this using azure billing APIs or by exporting the data from the cost management blade in Azure portal.
03:37
You can also use tags to manage the resources and releases.
03:40
For example, after deploying V two of your product, you may want to shut down the resources for V one and eventually terminate them later on.
03:49
Tags are also helpful for monitoring purposes. For example, you can tag resources with owners, and if a resource fails, you know which department needs to be notified.
03:59
You can also create automatic alerts to be sent based on the tag values.
04:04
You can also use tags for automation.
04:08
Let's say you want to save on your computer power and shutdown VMS in different regions based on working hours.
04:14
You can use tags to specify, start and stop times for the day and use azure automation to start and stop the VMS every day
04:21
and last. But certainly not least, you can use azure policies to enforce standards.
04:28
Now you know how you can use tags to add additional organization principles to your resources in Azure.
Up Next
AZ-900 Microsoft Azure Fundamentals

In this online Microsoft Azure Fundamentals training course, students will learn basic cloud computing concepts and how these concepts are applied specifically to Microsoft Azure. Upon completion, students will be prepared to take the AZ-900 certification exam.

Instructed By