Resource Groups, Subscriptions and Management Groups
30-second answer
Azure organises everything in a ladder: management groups → subscriptions → resource groups → resources. A resource group holds resources that share a lifecycle; each resource is in exactly one group, and you can move resources between groups or subscriptions (the resource ID changes, the region doesn't). A subscription is a billing, quota and access boundary that trusts one Microsoft Entra tenant. Management groups sit above subscriptions, up to six levels below the Tenant Root Group, so a policy or role assigned once flows to every subscription below. Each subscription and management group has exactly one parent.
Simulate it » No Azure account neededExam objective: 1.3.4 Manage resource groups. 1.3.5 Manage subscriptions. 1.3.7 Configure management groups. (Skills measured as of April 17, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
Search for <strong>Management groups</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Search for Management groups.
- Type management groups in the search bar and pick Management groups under Services.
- Every tenant has one Tenant Root Group. You can nest management groups six levels deep below it. Select + Create.
- The ID is permanent and used in scopes; the display name can change later.
- Move Contoso Dev/Test under mg-nonprod. It instantly inherits that group's policies and role assignments, and loses the old parent's.
- Inside a subscription, resources can move between resource groups. Open rg-app and select Move → Move to another resource group.
- Pick the target resource group. Both groups are locked for writes while the move runs.
- Validation passed. The resource ID changes; the region doesn't. CLI: az resource move --destination-group rg-archive --ids <id>.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
The management ladder
Management groups sit above subscriptions, which hold resource groups, which hold resources. You can nest management groups six levels below the Tenant Root Group. Move a subscription and it takes on its new parent's policies and roles.
🤔 What happens if…
Read this tour as text
- Users and groups in your tenant. Your Microsoft Entra tenant holds users and groups. In an assigned group you add people yourself. In a dynamic group a rule such as
user.department -eq "Sales"adds and removes them as their properties change (Entra ID P1). - Licenses and guests. Group-based licensing gives every member of a group a license, and takes it back when they leave. A direct assignment needs the user's usage location first. A guest from a partner tenant signs in with their own account (B2B collaboration).
- Self-service password reset. SSPR lets users reset their own password at aka.ms/sspr. You choose who it's for (None, Selected group or All) and how many methods they must prove (1 or 2). Users must register methods before they can use them.
- The management ladder. Management groups sit above subscriptions, which hold resource groups, which hold resources. You can nest management groups six levels below the Tenant Root Group. Move a subscription and it takes on its new parent's policies and roles.
- Role assignments flow down. An Azure role assignment = who (user, group, service principal, managed identity) + role definition + scope. Assign it at a management group and it inherits to every subscription, resource group and resource below.
- Effective access. Roles add up. Owner does everything, Contributor everything except grant access, Reader only looks, and User Access Administrator only manages access. A deny assignment beats every role.
- Azure Policy: deny, audit, modify. Azure Policy checks what gets deployed. Deny refuses it, Audit lets it in but flags it non-compliant, Modify changes it (for example adds a tag) and needs a managed identity. A remediation task fixes resources that already exist.
- Locks and tags. A CanNotDelete lock lets people change a resource but not delete it. A ReadOnly lock blocks every write. Locks apply to everyone, Owners too. Tags on a resource group aren't inherited unless a policy copies them down.
- Budgets and Advisor. A budget watches spend for a scope and sends alerts at thresholds, on actual or forecasted cost, optionally to an action group. It doesn't stop anything by itself. Azure Advisor points at savings like idle VMs.
Ben needs to read everything in the company and manage one app. Put the subscription under a management group, give Ben Reader high up and Contributor low down, read his effective access, see what Contributor still can't do, and move a resource between resource groups.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Thirty subscriptions, and every policy has to be assigned thirty times.
😊 THE SOLUTION
Group subscriptions under management groups and assign once at the top.
- Same setting everywhere✓ Assign at a management group
- Resources in the wrong group✓ Move them between groups
- One bill for everything✓ Subscriptions per workload
Start with a question
How does a supermarket chain run the same rules in 300 stores?
Head office doesn’t phone every store when a rule changes. It sets rules for regions, regions pass them to stores, and stores apply them to each aisle. Each store has its own budget and books. Inside a store, things that belong together sit in one aisle, and you can move a product from aisle 4 to aisle 9 without moving it to another town.
In Azure, head office and regions are management groups, each store is a subscription with its own bill, the aisles are resource groups, and the products are resources.
Explain it like I’m 10
The technical explanation
The ladder
Tenant Root Group
└── mg-contoso
├── mg-prod
│ └── Contoso Production (subscription)
│ ├── rg-app → vm-app01, stapp0424
│ └── rg-data → sql-contoso
└── mg-nonprod
└── Contoso Dev/Test (subscription)
| Level | Limits and rules |
|---|---|
| Management group | Up to 10,000 per tenant, six levels deep below the root, one parent each |
| Subscription | One parent management group; trusts one Entra tenant; its own billing, quotas and RBAC boundary |
| Resource group | Each resource in exactly one group; the group’s region holds metadata only; deleting it deletes everything inside |
| Resource | Can be in a different region from its resource group |
Policy, role assignments and budgets set at any level apply below it.
Resource groups
az group create -n rg-app -l westeurope --tags env=prod costcenter=APP-11
az group list -o table
az resource list -g rg-app -o table
az group delete -n rg-old --yes # deletes everything inside (locks permitting)
Group things by lifecycle: what you create, update and delete together. An app’s VMs, disks and NICs in one group; a shared hub network in another.
Moving resources
Portal: resource group → Move → Move to another resource group, Move to another subscription or Move to another region. The first two run validation, then move.
az resource move --destination-group rg-archive \
--ids /subscriptions/<sub-id>/resourceGroups/rg-app/providers/Microsoft.Storage/storageAccounts/stapp0424
# another subscription: add --destination-subscription-id <id>
What to remember:
- The resource ID changes; the region doesn’t. Update scripts, alerts and role assignments that point at the old ID. Role assignments on the resource itself don’t move with it.
- Source and target groups are locked for writes during the move (reads still work).
- Not every resource type can move, and some have rules (for example, dependent resources moving together). Check the move support list.
- You need write and move rights on the source group and write on the target.
- To change region, use Azure Resource Mover or redeploy.
Subscriptions
A subscription is how Azure bills and limits you. Common reasons to have several: separate production from dev/test, separate billing for departments, hit quota limits, or isolate access. A subscription trusts one Entra tenant; you can change the directory (transfer it to another tenant), but RBAC assignments in it are removed when you do. Rename, cancel and transfer billing ownership are on the subscription’s blade.
az account list -o table
az account set --subscription "Contoso Production"
Management groups
Portal: search Management groups → + Create (Management group ID, display name). Then move subscriptions or groups under it with … → Move.
az account management-group create --name mg-nonprod --display-name "Non-production" --parent mg-contoso
az account management-group subscription add --name mg-nonprod --subscription "Contoso Dev/Test"
az account management-group list -o table
The ID can’t change; the display name can. New subscriptions land under the root (or a default management group you set in Settings). Moving a subscription needs write access on the subscription and on the source and target management groups. By default, the root’s access is controlled by elevated Global Administrators.
-
1 Before
Dev/Test is under mg-contoso and inherits its Deny policies.
-
2 Move
az account management-group subscription add --name mg-nonprod ...
-
3 After
It now inherits mg-nonprod's looser policies and roles instead.
-
4 Check
Compliance and Check access show the new inherited settings.
Architect level Landing zones
Microsoft’s Cloud Adoption Framework suggests a management group layout: Platform (identity, management, connectivity subscriptions), Landing zones (split into Corp for internal apps and Online for internet-facing ones), Sandbox and Decommissioned. Policies get stricter as you go down, and workloads get their own subscriptions. Even if you don’t build the full design, separating production and non-production management groups early saves painful moves later.
Real-world business scenario
Proseware Inc. (fictional)
- The problem
- Proseware had 28 subscriptions hanging directly off the root, so every policy and Reader role for the security team was assigned 28 times and new subscriptions were missed.
- What they used
- A management group tree: mg-proseware with mg-platform, mg-prod and mg-nonprod beneath it. Allowed locations and tag policies at mg-proseware, stricter policies at mg-prod, the security team's Reader at the top, and a default management group so new subscriptions land under mg-nonprod.
- Why that choice
- Each rule is assigned once and every subscription, old or new, inherits the right set.
- The result
- Policy assignments dropped from over 150 to 14, and a new subscription is governed from the minute it's created.
When to use it and when not to
✓ Use it when…
- Management groups when you have more than a couple of subscriptions to govern.
- Separate subscriptions for production, dev/test or departments with their own budgets.
- Resource groups per workload or lifecycle.
✕ Think twice when…
- One giant resource group for unrelated things. Deleting or locking it hits everything.
- Deep management group trees nobody understands. Keep it to three or four levels.
- Move to change regions.
↔ Alternatives to consider
- Azure Resource Mover for moves across regions.
- Tags for cross-cutting labels such as cost center that don't fit the hierarchy.
Test yourself with exercises
5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner What's the difference between a resource group and a subscription?
Model answer
A resource group is a folder for resources that belong together, like one app's VM, database and network. A subscription is bigger: it's where the bill, quotas and access boundary live, and it holds many resource groups.
Intermediate What happens when you move a resource to another resource group?
Model answer
Its resource ID changes because the group name is part of it, so scripts and anything referencing the old ID need updating. The region doesn't change. Both the source and target groups are locked for writes during the move, and the move is validated first.
Experienced developer Why put subscriptions under management groups?
Model answer
So governance is set once. An Allowed locations policy or a Reader role for the security team assigned at a management group applies to every subscription beneath it, including new ones. Typically I'd have Platform, Landing zones split into Corp and Online, and Sandbox, following the Cloud Adoption Framework.
Scenario A team wants to move a VM to another region. Can they use Move?
Model answer
Not the resource-group or subscription move. That keeps the region. For a region change I'd use Azure Resource Mover, or rebuild from a backup or image in the new region, then switch traffic and clean up the old one.
Quick revision
Key points
- Management groups → subscriptions → resource groups → resources. Everything inherits from above.
- Up to six levels of management groups below the Tenant Root Group; each item has one parent.
- A resource is in exactly one resource group. Deleting the group deletes everything inside.
- Moving a resource changes its ID, not its region. Both groups are locked during the move.
- A subscription is a billing, quota and access boundary that trusts one Entra tenant.
Important terminology
- Resource group
- A container for resources that share a lifecycle. Its location stores metadata only; resources inside can be in any region.
- Subscription
- A billing and access boundary with its own quotas, linked to one Microsoft Entra tenant.
- Management group
- A container above subscriptions used to apply policy and access to many subscriptions at once.
- Tenant Root Group
- The top management group every tenant has. Everything sits beneath it.
- Resource move
- Moving resources to another resource group or subscription. The resource ID changes; the region stays the same.
- Resource Mover
- The Azure service for moving supported resources to another region, which a normal move can't do.
Common mistakes
- Thinking a resource group's location limits where its resources can be. It only stores metadata.
- Using Move to change regions. Use Azure Resource Mover or redeploy.
Exam tips
- "Apply a policy to all current and future subscriptions" = assign it at a management group.
- "Move a VM to another resource group" = Move, then update anything using the old resource ID.
- "Move a VM to another region" = Azure Resource Mover, not Move.
Five quick revision questions
-
1.How many management group levels can sit below the root?Show
Six (not counting the root or subscriptions).
-
2.Does moving a resource change its region?Show
No. Only its resource group or subscription and its resource ID.
-
3.Which CLI command moves resources?Show
az resource move --destination-group ... --ids ...
-
4.Which CLI command moves a subscription under a management group?Show
az account management-group subscription add --name <mg> --subscription <sub>
-
5.Can a resource be in two resource groups?Show
No. Each resource is in exactly one.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Manage Costs with Budgets, Alerts and Azure Advisor
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.