hands-on lab

Implement Resource Tagging in Azure Using a Policy

Difficulty: Beginner
Duration: Up to 30 minutes
Students: 106
Rating: 3/5
Get guided in a real environmentPractice with a step-by-step scenario in a real, provisioned environment.
Learn and validateUse validations to check your solutions every step of the way.
See resultsTrack your knowledge and monitor your progress.

Description

In this walkthrough, we will create a policy assignment that requires tagging, create a storage account and test the tagging, view resources with a specified tag, and remove the tagging policy.

Please note:

The Cloud Academy Labs platform uses Azure Policy for securing the lab environments so permission to write/edit the policies cannot be granted in the lab session.

Although you will not be able to complete all the lab instructions using the lab's student user, you can follow the instructions to understand the impact of policy changes. If you have access to your own Azure subscription, you can also follow along using it.

When the students encounter the policy write error, that is expected because policy writes are not allowed. However, the following instructions illustrate the impact if the write was allowed so you can continue to follow along.

Lab steps

Logging in to the Microsoft Azure Portal
Create a policy assignment
Create a storage account to test the required tagging
View all resources with a specific tag
Delete the policy assignment