Task: Tag Resources

Video: Resource Tagging

Estimated time: 5 minutes

Goal

The goal of this task is to use ARM tags to group and manage resources. This includes assigning tags to resources and a resource group, and then using the tags to locate resources.

Pre-requisites

  1. Non-production Azure subscription
  2. Resource group named task-tag-rg
  3. Several resources in the task-tag-rg resource group

Requirements

  1. Requirement 1: Tag Resources
  2. Requirement 2: Find Resources by Tag

Pre-requisite setup

For this task, you will need to start with a resource group named task-tag-rg. The resource group should contain the following resources:

  1. A route table named tag-rt
  2. A network security group (NSG) named tag-nsg
  3. A virtual network named tag-vnet

You can deploy the resources to your subscription by running the following from a bash cloud shell:

curl https://inedemoassets.blob.core.windows.net/taskfiles/azure_admin/deploy-3509T030-pre.sh | sh

Requirement 1: Tag Resources

The resources in the task-tag-rg resource group must be tagged with a cost center and project code. The resource group must be tagged with a production status code (Production, Test, or Development). To complete this requirement add the following tags:

Resource Tag Value
task-tag-rg ProductionStatus Development
tag-rt CostCenter 101010
tag-rt Project Hybrid-net
tag-nsg CostCenter 101010
tag-nsg Project Intranet
tag-vnet CostCenter 10101
tag-vnet Project** Hybrid-net**

Requirement 2: Find Resources by Tag

For this requirement you need to find all resources that are part of the Hybrid-net project, and all resources that belong to cost center 10101. Use the tags blade of the Azure portal to quickly find these resources.

Cleanup

Once the task is complete, delete the task-tag-rg resource group.