BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeMicrosoft Azure Administrator (AZ-104)Lab — Watch a dynamic group fill itself in
Build Lab183 words

Lab — Watch a dynamic group fill itself in

AZ-104 › Unit 1 › Lab

Lab — Watch a dynamic group fill itself in

Lab brief

Node
AZ104-U1.T1
Time
20 minutes
Creates
Directory users and groups
Subscription
required
Difficulty
Core

The claim to make physical: membership type is decided once. A group that can carry Entra roles is forced to Assigned and can never become dynamic — and you find that out by trying it, not by reading it.

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

An Azure subscription and the Groups Administrator or User Administrator role, which is what creating groups requires. Sign in with az login first. Directory objects are not billable resources.

Walkthrough

Watch a dynamic group fill itself in

  1. 1

    1. Create two users with different departments

    Use az ad user create twice, giving one user a department of Engineering and the other Finance. Note the object ids it returns; you will want them in step 4.

Did it teach you what it was meant to?

Multiple choice · MediumGroup membership types

You watched a user join a group in step 4 without anybody adding them, then watched the portal refuse to change membership type in step 5. Which requirement can a role-assignable group NOT satisfy?

Multiple choice · MediumDynamic membership licensing

Your tenant has 40 Microsoft Entra ID P1 licences and 250 users would match your dynamic rule. What does the documentation require?

What goes wrong

What goes wrong

Creating groups fails with an authorization error if you hold neither Groups Administrator nor User Administrator — that is the governance model, not a broken lab. Dynamic membership does not update instantly; give step 4 a few minutes before concluding the rule is wrong. And if your tenant has no P1 licences, step 3 is the one step you cannot run.

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

    Delete the three groups, then the two users

    Use az ad group delete for each group and az ad user delete for each user. Directory objects cost nothing, but leaving test principals in a directory is how a stale account outlives the person who made it.

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 Microsoft Entra groups and group membership5e94c543e4b9
Dynamic membership rules for groupsc7bcd79f770a
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 — Tags do not inherit, and a lock is not a permission204 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.