AZ-104 Part 1: Identity & Governance (Azure AD, RBAC, Policy)
Users, groups, roles, subscriptions and Management Groups — the plumbing that decides *who can do what* in Azure.
Series
Azure AZ-104 Notes
- 0Azure AZ-104 Study Guide: Roadmap & Summary
- 1AZ-104 Part 1: Identity & Governance (Azure AD, RBAC, Policy)Reading
- 2AZ-104 Part 2: Storage, Redundancy & Access Tiers
- 3AZ-104 Part 3: Compute (VMs, Availability, VMSS, App Service, AKS)
- 4AZ-104 Part 4: Networking (VNet, NSG, VPN, Load Balancer, DNS)
- 5AZ-104 Part 5: Monitor, Backup & Recovery
AZ-104 Part 1 — Identity & Governance
The mental picture
Tenant (your company)
└── Management Group (folder of subscriptions)
└── Subscription (billing container)
└── Resource Group (folder of resources)
└── Resource (VM, storage, DB…)
Rule of thumb: apply RBAC and Policies at the highest level that makes sense — they flow down.
Azure AD in plain English
- User — a login (real person or a bot).
- Group — a bag of users to keep permissions clean.
- Service Principal — an identity for an app (like a CI/CD pipeline).
- Managed Identity — a service-principal that Azure creates & rotates for you.
# Create a user
az ad user create --display-name "Priya Sharma" \
--user-principal-name "priya@contoso.com" --password "Secret@123"
# Create a group and add the user
az ad group create --display-name "AZ-Admins"
az ad group member add --group "AZ-Admins" --member-id <object-id>
RBAC — Role-Based Access Control
Every access decision is who × what × where:
- Who — a user, group, service principal or managed identity.
- What — a built-in role (Reader / Contributor / Owner) or a custom role.
- Where — the scope (Management Group → Subscription → RG → Resource).
az role assignment create \
--role "Reader" \
--assignee priya@contoso.com \
--scope "/subscriptions/<sub-id>"
Deny assignments beat allow — even Owner can be blocked by a deny.
Azure Policy — the auto-inspector
- Policy definition — a single rule (e.g. "resources must live in East US").
- Initiative — a bundle of definitions (e.g. "HIPAA baseline").
- Effect — Audit / Deny / DeployIfNotExists / Append.
az policy assignment create --name "OnlyEastUS" \
--policy "Allowed Locations" \
--params '{"allowedLocations": "eastus"}' \
--scope "/subscriptions/<sub-id>"
Real-world example
The finance team files an audit finding: any VM created outside India violates data-residency. You create one policy at the Management Group level with effect Deny and scope India-only regions. Now every future subscription in the org inherits it automatically — zero clicks per team.
Exam gotchas
- RBAC ≠ Azure AD roles. Azure AD roles manage AD itself; RBAC manages Azure resources.
- Deny assignments override allow.
- Azure Advisor gives you optimization tips; Service Health tells you when Azure itself is broken.
- Custom roles are JSON with
actions,notActions, andassignableScopes.
Keep reading
You may also like
azure
AZ-104 Part 2: Storage, Redundancy & Access Tiers
Storage Accounts, Blob vs File vs Disk, LRS/ZRS/GRS explained with a picture, plus SAS tokens and Soft Delete.
azure
Azure AZ-104 Study Guide: Roadmap & Summary
One-page map of the whole AZ-104 exam — the 5 domains, what each covers, and where to click next for the deep dive.
azure
Deploying a Static Web App on Azure
Zero to production Azure Static Web Apps with GitHub Actions in under 10 minutes.
Discussion (0)
No comments yet. Be the first to weigh in.