BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeMicrosoft Azure Administrator (AZ-104)Lab — Prove that inheritance only flows one way
Build Lab212 words

Lab — Prove that inheritance only flows one way

AZ-104 › Unit 1 › Lab

Lab — Prove that inheritance only flows one way

Lab brief

Node
AZ104-U1.T2
Time
25 minutes
Creates
Two resource groups, a role assignment, a custom role definition
Subscription
required
Difficulty
Core

The claim to make physical: you cannot narrow an inherited assignment from below. Everybody knows lower levels inherit from higher. Far fewer have watched an attempt to subtract fail.

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 where you can create role assignments — that needs Owner or User Access Administrator on it. Resource groups and role definitions are free; nothing here deploys a billable resource.

Walkthrough

Prove that inheritance only flows one way

  1. 1

    1. Create two resource groups

    az group create --name bb-lab-rbac-a --location westeurope and again for bb-lab-rbac-b. A resource group holds metadata about resources, so its location is where that metadata lives — resources inside one may sit in different regions.

Did it teach you what it was meant to?

Multiple choice · HardScope and inheritance

A principal has Reader at the subscription. You need them to keep reading resource group A but lose access to B. What does step 3 show you must do?

Multiple choice · MediumBuilt-in roles

Step 5 showed the boundary between two built-in roles. Which requirement does Contributor fail?

What goes wrong

What goes wrong

Creating a role assignment needs Owner or User Access Administrator; Contributor cannot do it, which is the lab's own lesson arriving early. Assignments take a short while to take effect, so a failed read immediately after step 2 may just be propagation. And remember to delete the assignment in step 4 rather than layering another one on top.

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 assignment, then the resource groups

    az role assignment delete for anything left, then az group delete --name bb-lab-rbac-a and the same for bb-lab-rbac-b. Deleting the resource groups removes anything inside them.

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
Manage Azure resource groups by using the Azure portalc2bc52250166
Understand scope for Azure RBAC87e7f6fe1b69
Assign Azure roles using Azure CLIb29025fd43e6
Create or update Azure custom roles using Azure CLI7b5d855bd425
Azure built-in roles068bc2c7255f
List Azure deny assignmentsf4d5fba1f410
All Microsoft Azure Administrator (AZ-104) Study Resources

Related Notes

  • Lab — A budget notifies and stops nothing166 words
  • Lab — Tags do not inherit, and a lock is not a permission204 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.