BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeMicrosoft Azure Administrator (AZ-104)Lab — Tags do not inherit, and a lock is not a permission
Build Lab204 words

Lab — Tags do not inherit, and a lock is not a permission

AZ-104 › Unit 1 › Lab

Lab — Tags do not inherit, and a lock is not a permission

Lab brief

Node
AZ104-U1.T3
Time
25 minutes
Creates
A resource group, a tag, a policy assignment, a lock
Subscription
required
Difficulty
Core

Two claims in one sitting: resources do not inherit a resource group's tags, and a lock stops a delete even when your role permits it. Both are one command away from being obvious.

These commands have not been run

There is no Azure subscription in the environment this lab was written in, so not one of these commands has been executed. The syntax is derived from Microsoft's own CLI documentation, and the elements this lab asserts are quoted from it at the bottom of the page — but the specific invocations, with these names in this order, are unrun. Read each command before you run it, and expect to adjust names and regions. Treat the teardown as part of the lab, not an optional extra.

Before you start

A subscription and the ability to create policy assignments and locks on it. Everything created here is a governance object or an empty resource group; none of it is billable.

Walkthrough

Tags do not inherit, and a lock is not a permission

  1. 1

    1. Create a tagged resource group

    az group create --name bb-lab-gov --location westeurope --tags costCenter=1234. The tag is on the group.

Did it teach you what it was meant to?

Multiple choice · MediumTag inheritance

Step 2 showed an untagged resource inside a tagged resource group. What does that rule out as a design?

Multiple choice · HardLocks versus permissions

In step 5 the delete was refused although your role allows it. Which statement does that experiment support?

What goes wrong

What goes wrong

Policy assignments do not take effect instantly; give step 4 several minutes before deciding the assignment is wrong. The lock in step 5 is inherited by everything in the group, including anything you add afterwards, and the most restrictive lock in the chain wins — so remember it exists when the teardown refuses. And if step 2's storage account is more spend than you want, read it rather than run it.

Tear it down

Run this whether or not the lab worked. Everything above was chosen to cost approximately nothing, and leaving it in place is how approximately nothing becomes something.

Teardown

  1. 1

    Remove the lock first, then the assignment, then the group

    The order matters and it is the lab's last lesson: az lock delete for the lock, az policy assignment delete --name --scope $rgid for the assignment, then az group delete --name bb-lab-gov. With the lock still in place, the group delete is refused.

Where these figures come from

Every figure above was read from the raw documentation below on the day this sheet was written. The sha1 is git hash-object over the bytes as fetched, so a doc that changes underneath this sheet can be detected rather than assumed.

Documentsha1
Manage Azure resource groups by using Azure CLIa3840d837a3d
Use tags to organize your Azure resourcesb1d92e330865
Create a policy assignment with Azure CLI9adc3ee57e46
What is Azure Policy?0bc00fcd34d3
Lock your Azure resources0a4f4f548288
All Microsoft Azure Administrator (AZ-104) Study Resources

Related Notes

  • Lab — A budget notifies and stops nothing166 words
  • Lab — Prove that inheritance only flows one way212 words
  • Lab — Watch a dynamic group fill itself in183 words
  • AZ-104 exam map391 words
  • Unit 1 roadmap — Manage Azure identities and governance358 words
  • Unit 1 capstone — Onboarding an acquired subsidiary810 words
  • Cram sheet — Manage access to Azure resources447 words
  • Cram sheet — Manage Azure subscriptions and governance841 words
  • Cram sheet — Manage Microsoft Entra users and groups580 words
  • Unit 2 roadmap — Implement and manage storage375 words
  • Unit 2 capstone — A media archive on a budget808 words
  • Cram sheet — Configure access to storage520 words

Ready to study Microsoft Azure Administrator (AZ-104)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Microsoft Azure Administrator (AZ-104)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Microsoft Azure Administrator (AZ-104) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.