Azure Landing Zone Hour 1: CAF and ALZ Architecture
- Explain the seven phases of the Cloud Adoption Framework (CAF), and why the output of the Ready phase is an Azure landing zone (ALZ). List the five most common failures when there is no landing zone.
- Name the eight design areas and the five design principles of ALZ. Know which Azure resources each design area produces once it is in place.
- Tell apart a platform landing zone from a workload (application) landing zone. Understand that the subscription is the scale unit, and what subscription vending is.
- Draw the default ALZ management group hierarchy (
alz→platform/landingzones/sandbox/decommissioned, 12 management groups in total), and explain how policy and RBAC inherit down the hierarchy. - Read how the ALZ default policy assignments are spread across the management groups. Tell apart the behavior of Deny, DenyAction, Audit, AuditIfNotExists, DeployIfNotExists (DINE) and Modify.
- Based on your team, choose between the portal accelerator, ALZ IaC Accelerator, Terraform
avm-ptn-alz, and Bicep AVM. Know that the classic ALZ-Bicep andcaf-enterprise-scaleare retired. - Use Azure CLI to build a full management group hierarchy in a sandbox tenant, move subscriptions, assign your first policy and verify that it blocks what it should. Finish with a readiness review.
1-hour timetable
| # | Time | Module | Core content | Animation / interaction | Lab |
|---|---|---|---|---|---|
| 0 | Before class | Setup: sandbox tenant, permissions and tools | Create a sandbox tenant, elevate access, install Azure CLI / Bicep / Terraform / PowerShell 7 | Environment self-check list | az account show |
| 1 | 00–06 | Why you need a landing zone | CAF seven phases, Ready phase, landing zone definition, five common failures | “No governance vs. landing zone” comparison simulation | Inventory the current state with Resource Graph |
| 2 | 06–13 | Eight design areas | Four environment design areas, four compliance design areas, five design principles, decision roles | Step through each design area → the resources it produces | Write a design decision record |
| 3 | 13–21 | Platform and application landing zones | Platform vs. workload, subscription democratization, subscription vending, Corp / Online / Local, single-subscription fallback | Subscription vending pipeline simulation | Fill in a vending request for myapp |
| 4 | 21–28 | Management group hierarchy | 12 default management groups and their IDs, 6 levels deep, default management group, required authorization, move permissions, 30-minute cache | Effective policy set recalculated after a subscription move | View the hierarchy and entities |
| 5 | 28–35 | Azure Policy overview | Definitions / policy sets / assignments / exemptions, effect list, default ALZ assignment distribution, DINE managed identity | One PUT request handled by Deny / Audit / DINE | Query built-in definitions and compliance state |
| 6 | 35–42 | Deployment options | Portal accelerator, four stages of the IaC Accelerator, Terraform avm-ptn-alz + alz provider, Bicep AVM vs. classic | Deployment method selector | Generate starter Terraform code locally |
| 7 | 42–50 | Hands-on: hierarchy + first policy | Create 12 management groups with the CLI, move subscriptions, assign Allowed locations, verify the Deny, clean up | Deployment progress replay | Full lab |
| 8 | 50–60 | Readiness review and troubleshooting basics | Readiness review checklist, Resource Graph checks, common errors | Readiness scorecard + interactive troubleshooting tree | Run the review queries |
| — | After class | Cheat sheet · Capstone lab | Design and build a minimal ALZ skeleton for a fictional company | Final quiz (12 questions) | Capstone lab |
Knowledge coverage matrix
| Target skills | M1 | M2 | M3 | M4 | M5 | M6 | M7 | M8 | Key commands / tools | Lab |
|---|---|---|---|---|---|---|---|---|---|---|
| Explain the CAF phases and the value of a landing zone | ✓ | ✓ | · | · | · | · | · | ✓ | CAF documentation | Current-state inventory |
| Organize decisions by design area | · | ✓ | ✓ | · | · | · | · | ✓ | Design decision record | M2 lab |
| Subscription planning and vending | ✓ | · | ✓ | ✓ | · | · | ✓ | · | az account alias | Vending request |
| Design and build the management group hierarchy | · | ✓ | · | ✓ | · | ✓ | ✓ | ✓ | az account management-group | 12 management groups |
| Read and assign Azure Policy | ✓ | · | · | ✓ | ✓ | · | ✓ | ✓ | az policy assignment / state | Allowed locations |
| Choose a deployment method | · | · | · | · | · | ✓ | · | · | Deploy-Accelerator, terraform | Starter code |
| Resource Graph inventory and review | ✓ | · | · | ✓ | ✓ | · | · | ✓ | az graph query | Review queries |
| Permissions and elevated-access troubleshooting | · | · | · | ✓ | · | ✓ | ✓ | ✓ | elevateAccess, az role assignment | Troubleshooting tree |
What this hour does not cover (and where to learn it)
| Topic | Why it is not in this hour | Where to learn it |
|---|---|---|
| Policy evaluation pipeline details, custom policies, remediation tasks, exemptions, policy as code | This hour gives only an overview | Hour 2: Resource organization and governance |
| Entra ID, PIM, Conditional Access, workload identity federation, RBAC design | Belongs to the identity design area | Hour 3: Identity and access |
| Hub-spoke, Azure Firewall, private DNS, Private Endpoint, Virtual WAN | Belongs to the network design area | Hour 4: Network topology and connectivity |
| Management and monitoring, security baseline, platform automation pipeline, subscription vending implementation | Needs the basics from the first four hours | Hour 5: Management and monitoring, Hour 6: Automation |
| Deploying specific workloads such as AKS | Belongs to the workload teams | AKS course |
How to use this course
Principles · diagrams · animation · commands · lab · production cases · troubleshooting · quiz · voice · video. Read “Principles” and “Animation” first, then do the “Lab”.
A quiz score of ≥ 70%, or clicking “Mark this module complete”, counts toward progress. It is saved in this browser (if local storage is blocked, progress is cleared on refresh).
The “Voice” page reads the narration script aloud with the browser's built-in Web Speech API (en-US). If no English voice pack is installed, the narration script can still be read.
platform/alz/2026.11.0 (2026-11-06). Terraform module Azure/avm-ptn-alz/azurerm is 0.23.0, and Azure/alz provider is 0.22.1. The IaC Accelerator uses the PowerShell module ALZ (requires PowerShell 7.4+ and Azure CLI 2.55.0+). The classic ALZ-Bicep was removed from the Accelerator on 2026-02-16 and is planned to be archived on 2027-02-16. The old Terraform module repository caf-enterprise-scale was archived on 2026-09-15. None of the cloud commands in this hour were run against a real tenant; all outputs are labeled as examples.Module 0 · Setup: sandbox tenant, permissions and tools (complete before class)
- Sandbox Entra tenant: in the Entra admin center, go to “Manage tenants → Create” to create a new tenant (free), or use a lab tenant set aside by your company. You need to be a Global Administrator of that tenant, because only that role can elevate access.
- At least one subscription: ideally four:
sub-alz-management,sub-alz-connectivity,sub-alz-identity,sub-lz-corp-myapp. With only one subscription you can still complete this hour. The hierarchy and policies can all be demonstrated, and platform resources can go in the same subscription later. - Tools: Azure CLI (the IaC Accelerator requires 2.55.0 or later), Bicep CLI (
az bicep install), Terraform (1.12 or later recommended;avm-ptn-alzrequires ≥ 1.12), PowerShell 7.4+ (the IaC Accelerator must run in pwsh), and Git.
Step 1: Elevate access to get permissions on the root management group
In a new tenant, no one has access to the root management group by default. A Global Administrator opens the Entra admin center → Properties → “Access management for Azure resources” and sets it to “Yes”, or calls elevateAccess from the CLI. After that, on the root scope / you get User Access Administrator. Then assign yourself Owner on the root management group.
az login --tenant <sandbox-tenant-id> # Elevate access (same as the toggle in the portal) az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01" TENANT_ID=$(az account show --query tenantId -o tsv) ME=$(az ad signed-in-user show --query id -o tsv) # The root management group ID equals the tenant ID az role assignment create --assignee-object-id $ME --assignee-principal-type User \ --role Owner --scope /providers/Microsoft.Management/managementGroups/$TENANT_ID
{
"principalType": "User",
"roleDefinitionName": "Owner",
"scope": "/providers/Microsoft.Management/managementGroups/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e",
...
}
/ scope). In production, this kind of permission should be activated on demand through PIM (hour 3).Step 2: Sign in again and confirm you can see the root management group
az logout; az login --tenant $TENANT_ID # Refresh the token so the new permissions take effect
az account management-group show --name $TENANT_ID --query "{id:name, displayName:displayName}" -o table
az account list --query "[].{name:name, id:id, state:state}" -o table
Id DisplayName ------------------------------------ ----------------- aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e Tenant Root Group Name Id State ------------------- ------------------------------------ ------- sub-lz-corp-myapp 1111aaaa-22bb-33cc-44dd-555555eeeeee Enabled
Step 3: Tool versions
az version --query '"azure-cli"' -o tsv az bicep version terraform version pwsh -NoLogo -Command '$PSVersionTable.PSVersion.ToString()'
2.79.0 Bicep CLI version 0.38.33 (...) Terraform v1.17.2 7.5.4
Version numbers are examples. Any versions that meet “Azure CLI ≥ 2.55.0, PowerShell ≥ 7.4, Terraform ≥ 1.12” are fine.
Links to later hours
- The management group IDs created in this hour (
alz,platform,landingzones,corp, and so on) are reused directly in Hours 2–4. If you don't have the results from the previous hour, the starting-point step at the beginning of each hour gives rebuild commands. - Unified region: primary
canadacentral, secondarycanadaeast. Unified tags:env,owner,costCenter,workload. - Naming:
rg-alz-mgmt-cc,law-alz-mgmt-cc,rg-alz-conn-cc,vnet-hub-cc(10.0.0.0/16),rg-lz-myapp-cc,vnet-spoke-myapp-cc(10.1.0.0/16).
Self-check list
- ☐ You are signed in to the sandbox tenant (
az account show --query tenantIdmatches the expected value). - ☐ You can
showthe root management group and you have Owner on the root. - ☐ You have at least one subscription in the Enabled state.
- ☐ Azure CLI, Bicep, Terraform and PowerShell 7 meet the version requirements.
- ☐ You have added “revoke elevated access after the lab” to your to-do list.
Module 1 · Why you need a landing zone: the CAF Ready phase and common failures
- List the seven phases of CAF Azure adoption in order, and name the output of the Ready phase.
- Define an Azure landing zone in one sentence, and explain how it differs from “one subscription + one VNet”.
- Recognize five typical failures: subscription sprawl, excessive permissions, overlapping addresses, missing logs, and after-the-fact compliance. Use Resource Graph to find the traces they leave.
What: CAF and landing zones
The Cloud Adoption Framework (CAF) is Microsoft's methodology for cloud decision-makers. Its core scenario, “Azure adoption”, has seven phases: 1 Strategy (why adopt the cloud) → 2 Plan (how to prepare the organization) → 3 Ready (how to build an Azure landing zone) → 4 Adopt (migrate, modernize, build new workloads) → 5 Govern (how to control the environment) → 6 Secure (how to protect the environment) → 7 Manage (how to run and optimize over the long term). Other scenarios, such as AI, data platforms and sovereign cloud, are built on top of it.
Official definition: An Azure landing zone is a proven, flexible architecture for governing, securing and scaling multi-subscription Azure environments. It has two parts:
- Platform landing zone: the centralized foundation, including the management group hierarchy, policies, and shared connectivity, identity and management resources, run by the platform team. A Microsoft Entra tenant usually has only one.
- Workload landing zone (formerly called the application landing zone): the environments that workload teams deploy and run inside the platform guardrails. There is one per workload, and each contains several subscriptions such as dev, test and prod.
Why: what happens without a landing zone
| Failure mode | Typical symptom | Countermeasure in a landing zone |
|---|---|---|
| Subscription sprawl | Dozens of subscriptions sit directly under “Tenant Root Group” and no one knows who owns them | Management group hierarchy + default management group + subscription vending process |
| Excessive permissions | Developers are Owners on subscriptions, can delete logs, change networking and grant access to others | RBAC layering, PIM, custom roles (hour 3) |
| Overlapping addresses | Every team uses 10.0.0.0/16, so the VNets can't be peered later or connected to on-premises | Central IP planning, hub-spoke (hour 4) |
| Missing logs | After an incident, the team finds that the activity log keeps only 90 days and diagnostic logs were never enabled | A DINE policy automatically configures diagnostic settings to a central Log Analytics workspace |
| After-the-fact compliance | A temporary scan before an audit finds hundreds of public storage accounts | Policy-driven governance: Deny to prevent, Audit to discover, DINE to remediate automatically |
How: what the Ready phase involves
- Make design decisions across the eight design areas (Module 2), and record them in a design decision record.
- Choose an implementation approach: an accelerator (IaC Accelerator or portal accelerator, Module 6), or build it yourself.
- Deploy the platform landing zone: management groups, policies, and shared resources in the management, connectivity, identity and security subscriptions.
- Set up the distribution process for workload landing zones (subscription vending, Module 3).
When: when you need a full ALZ
- When several teams or several subscriptions are expected, or when compliance requirements apply (finance, healthcare, government), the earlier the better. Moving dozens of subscriptions into the hierarchy later is much harder than placing them correctly from the start.
- Even with one small team and one subscription, it is worth setting up at least the management group hierarchy and a few root-level policies. CAF's “start small and expand” approach lets you build the skeleton first and add platform resources later.
Comparison with similar approaches
| Azure landing zone | AWS Control Tower / Landing Zone | Google Cloud foundation blueprint | |
|---|---|---|---|
| Organizational unit | Management group (up to 6 levels) | Organizations OU | Folder |
| Guardrails | Azure Policy (Deny / Audit / DINE / Modify) | SCPs + Config rules + proactive controls | Organization Policy |
| Account unit | Subscription | Account (vended through Account Factory) | Project |
| Reference implementation | ALZ library + AVM (Bicep / Terraform) | Control Tower / LZA | Terraform foundation blueprint |
The seven CAF phases and the output of the Ready phase
Side-by-side: the same company, two different starts
Comparison simulation: the same 6 events, with and without a landing zone
Choose a mode, then step through. Each step is a real ARM request or operational event; the log on the right shows what Azure actually returns or records (example).
Core commands: inventory the current state
| Command | Purpose | Notes |
|---|---|---|
az account list | List subscriptions visible to the current account | --all includes disabled subscriptions; --query filters fields |
az account management-group list | List management groups | A new tenant usually shows only the Tenant Root Group |
az graph query -q | Azure Resource Graph cross-subscription query (KQL) | The first use prompts you to install the resource-graph extension; --management-groups limits the scope |
az policy assignment list | View policy assignments for a scope | --scope sets a management group; --disable-scope-strict-match includes inherited assignments |
# 1) Which management group is each subscription under? (resourcecontainers table) az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions' | project name, subscriptionId, mg=tostring(properties.managementGroupAncestorsChain[0].displayName)" -o table
Name SubscriptionId Mg ----------------- ------------------------------------ ----------------- sub-lz-corp-myapp 1111aaaa-22bb-33cc-44dd-555555eeeeee Tenant Root Group
# 2) How many NSG rules open 22/3389 to the Internet?
az graph query -q "resources
| where type == 'microsoft.network/networksecuritygroups'
| mv-expand r = properties.securityRules
| where r.properties.direction == 'Inbound' and r.properties.access == 'Allow'
| where r.properties.sourceAddressPrefix in ('*','Internet','0.0.0.0/0')
| where r.properties.destinationPortRange in ('22','3389','*')
| project nsg=name, rule=tostring(r.name), port=tostring(r.properties.destinationPortRange)" -o table
# 3) Address spaces of VNets in each subscription (to find overlaps)
az graph query -q "resources | where type == 'microsoft.network/virtualnetworks'
| project subscriptionId, name, space=properties.addressSpace.addressPrefixes" -o table
Nsg Rule Port ------------- ------------ ---- vm-test-nsg RDP 3389 SubscriptionId Name Space ------------------------------------ ---------- --------------- 1111aaaa-22bb-33cc-44dd-555555eeeeee vnet-test ["10.0.0.0/16"]
How to verify: in query 1, if every subscription sits under the Tenant Root Group, the hierarchy doesn't exist yet. Common mistakes: Resource Graph only returns subscriptions you have read access to, so after elevating access, sign in again to see everything. The table names are lowercase resources, resourcecontainers and policyresources, and type strings must also be compared in lowercase.
Lab 1: take a “before you start” snapshot of the sandbox tenant (about 4 minutes)
az account show --query "{tenant:tenantId, user:user.name, sub:name}" -o tableTENANT_ID=$(az account show --query tenantId -o tsv)
echo "Subscription count: $(az account list --query 'length(@)')"
echo "Management group count: $(az account management-group list --query 'length(@)')"
az policy assignment list --scope /providers/Microsoft.Management/managementGroups/$TENANT_ID \
--query "[].{name:name, display:displayName}" -o table
Subscription count: 1 Management group count: 1 (No output: there are no policy assignments on the root yet)
mkdir -p ~/alz-lab && cd ~/alz-lab az graph query -q "resourcecontainers | project type, name, subscriptionId" -o json > baseline-containers.json az graph query -q "policyresources | where type == 'microsoft.authorization/policyassignments' | project name, properties.scope" -o json > baseline-policy.json ls -l
-rw-r--r-- 1 me me 812 Nov 18 10:02 baseline-containers.json -rw-r--r-- 1 me me 64 Nov 18 10:02 baseline-policy.json
Case 1: 140 subscriptions under the root after an acquisition
Problem: After a retailer acquired two companies, 140 subscriptions sat directly under the Tenant Root Group. 30 of them were employees' Visual Studio subscriptions. The audit required that all production subscriptions have Defender for Cloud enabled and logs centralized. Approach: First build the ALZ hierarchy (with alz as the intermediate root) and set the default management group to sandbox. Then move subscriptions in batches into corp / online, based on Resource Graph tags and billing information. Before each batch, observe the compliance results in DoNotEnforce mode. Result: placement was completed in 3 weeks. DINE policies automatically configured diagnostic settings and Defender plans.
Case 2: overlapping addresses delayed hybrid connectivity by half a year
Problem: Each team built its own VNets with 10.0.0.0/16. When ExpressRoute went live, the address range conflicted with on-premises networks, and the spokes could not be peered with each other. Approach: Introduce centralized IPAM planning (hour 4). New landing zones receive address ranges through the vending process. Old VNets are rebuilt one by one. Lesson: the network design area must be decided before the first workload goes live.
Case 3: a developer deleted the activity log diagnostic setting
Problem: A developer was Owner on a subscription. While investigating costs, they deleted a diagnostic setting, and after a security incident no record of the actions could be found. Approach: Workload teams were downgraded to Contributor plus a custom role. The DINE policy Deploy-AzActivity-Log redeploys the deleted setting (remediation task). Critical platform resources are protected with DenyAction.
Common errors and fixes
(AuthorizationFailed) The client '…' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/…'
Cause: you don't have a role on the root management group yet, or you elevated access but the token has not been refreshed.
az role assignment list --scope / --query "[?roleDefinitionName=='User Access Administrator']" -o table az logout && az login --tenant <tenant-id>
Fix: follow the “Setup” page to elevate access and assign yourself Owner on the root management group, then sign in again.
az graph query returns 0 rows, but the portal shows resources
Cause: Resource Graph only queries subscriptions you have permission to; or the type strings in KQL have mismatched case (they must be lowercase); or a default scope setting in the CLI overrode the query scope.
az graph query -q "resources | summarize count() by subscriptionId" -o table az graph query -q "resources | take 1" --management-groups <tenant-id>
Fix: use --management-groups to specify the root management group; compare types in lowercase or use =~.
The command requires the extension resource-graph. Do you want to install it now?
Cause: az graph comes from the resource-graph extension.
az extension add --name resource-graph --upgrade
Fix: install the extension; in CI you can set az config set extension.use_dynamic_install=yes_without_prompt.
The “Access management for Azure resources” toggle in the portal is greyed out
Cause: the current account is not a Global Administrator of this tenant, or you signed in to the wrong tenant (as a guest account).
Fix: switch to a local administrator account in the sandbox tenant. Even a guest account with Global Administrator should confirm that the directory is switched correctly.
1. Use one Resource Graph query to list all subscriptions and the display name of each one's direct parent management group.
az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions' | project name, parent=tostring(properties.managementGroupAncestorsChain[0].displayName)" -o table
2. List the names of all policy assignments on the root management group (including the inherited view).
az policy assignment list --scope /providers/Microsoft.Management/managementGroups/$TENANT_ID --query "[].name" -o tsv
The CTO says: “We only have 3 subscriptions. We'll build a landing zone when we have 30.” How do you respond?
A management group hierarchy, a default management group and a few root-level policies cost almost nothing, and the earlier they are set up the cheaper they are. Moving subscriptions when there are 30 means evaluating RBAC inheritance changes and policy impact one by one, and you may hit irreversible problems such as overlapping addresses and missing logs. We recommend building the skeleton now, using an accelerator or the CLI. Shared platform resources (firewalls, gateways) can be added later as needed.
Verified teaching videos
Official documentation
Video storyboard script (about 80 seconds)
On screen: seven arrows light up one after another and stop at Ready.
Narration: CAF breaks cloud adoption into seven steps. The output of the Ready step is the landing zone.
On screen: dozens of subscriptions scattered under the root management group, with red warning icons appearing one by one.
Narration: a cloud with no foundation runs into subscription sprawl, excessive permissions, overlapping addresses and missing logs. These problems surface after go-live.
On screen: subscriptions fly into a neat management group tree, and policy icons flow down from the top.
Narration: a landing zone writes the rules into the hierarchy, so every new subscription inherits the guardrails as soon as it lands.
Module 2 · ALZ conceptual architecture: eight design areas
- Name the eight design areas and their groups: environment (billing and tenant, identity and access, resource organization, network) and compliance (security, management, governance, platform automation and DevOps).
- State the five design principles, and explain the cost of deviating from one of them.
- Assign a specific decision (for example, “which firewall SKU”) to the correct design area, and name the type of Azure resource it results in.
What: the eight design areas
CAF breaks landing zone design into eight design areas. The official architecture diagram labels them with letters A–I to show where they sit in the diagram (some areas map to more than one letter):
| Group | Design area | Diagram letter | Core question to answer | Course hour |
|---|---|---|---|---|
| Environment | Azure billing and Microsoft Entra tenant | A | EA / MCA / CSP? How many tenants? Who can create subscriptions? | This hour M3 |
| Identity and access management | B | RBAC, PIM, conditional access and workload identity for platform and workload teams | Hour 3 | |
| Resource organization | C | Management group hierarchy, subscription design, naming and tags | This hour M3–M4 | |
| Network topology and connectivity | E | Hub-spoke or Virtual WAN, IP planning, DNS, hybrid connectivity | Hour 4 | |
| Compliance | Security | F | Defender for Cloud, Sentinel, key management, zero trust | Later hours |
| Management | D, G, H | Log Analytics, monitoring alerts, backup, update management | Later hours | |
| Governance | C, D | Azure Policy, cost management, compliance audit | This hour M5, hour 2 | |
| Platform automation and DevOps | I | IaC tools, pipelines, team topology, version upgrades | This hour M6, later hours |
The environment areas decide what the foundation looks like. The earlier they are decided, the better, because changing them later is expensive. The compliance areas need continuous iteration and are refined as new applications and regulations arrive. The official guidance is to assess them one at a time, in order. You can skip any area that has already been decided.
Why: five design principles
| Principle | Meaning | Cost of deviating |
|---|---|---|
| Subscription democratization | Subscriptions are the management unit. Use subscriptions to isolate environments. Provide self-service vending. Support it with the management group hierarchy. | Teams bypass the process to build their own subscriptions, or even their own tenants, creating shadow IT |
| Policy-driven governance | Use Azure Policy for guardrails, independent of the deployment tool | Compliance depends on manual checks, with high operational overhead |
| Single control and management plane | Use Azure Resource Manager as the one control plane, without relying on a homegrown portal | Multi-vendor integration becomes complex and features go missing |
| Application-centric service model | Think about migration by application rather than by VM. Treat IaaS and PaaS the same way. | Duplicated policies and more exceptions |
| Align with native Azure design and roadmap | Prefer native services and follow the platform roadmap | Third-party dependencies make integration and support complex |
How: who makes the decisions
Each design area lists its “roles involved” in the official documentation. A typical split: the cloud platform team handles resource organization, networking, management and automation; the security team handles security and part of governance; the identity team handles identity; finance and procurement take part in billing. Workload teams are the “customers”: they state requirements but usually do not change the platform directly.
When: how design areas relate to implementation
- When you use an accelerator, most design areas come with a default answer, such as the default management group hierarchy and default policies. Your job is to review the defaults and record deviations, not to design everything from scratch.
- Any decision that deviates from a default should be written into a design decision record (ADR), with the reason, owner and date.
Comparison with similar frameworks
| ALZ design areas | Well-Architected Framework (WAF) | |
|---|---|---|
| Scope | The whole platform (multi-subscription environment) | A single workload |
| Dimension | 8 design areas | 5 pillars: reliability, security, cost optimization, operational excellence, performance efficiency |
| Used by | Platform team | Workload teams |
Where the eight design areas sit in the reference architecture
Decision flow: from design area to resource
Step by step: what each design area looks like once it is in place
Click “Next step” to assess the eight design areas one by one, in the order the official guidance recommends. A card on the left lights up when its area has been decided. The log shows the resource type and command (example) that the decision becomes in Azure. You can also click any card to jump to it.
Core commands: see what each design area looks like in the tenant
| Design area | Command | What to look at |
|---|---|---|
| Billing and tenant | az billing account list | Agreement type (EA / MCA); requires billing read permission |
| Identity and access | az role assignment list --all | Who has Owner on subscriptions / management groups |
| Resource organization | az account management-group entities list | Flat list of management groups and subscriptions |
| Network | az network vnet list | Address spaces and peering |
| Security | az security pricing list | Whether Defender plans are enabled |
| Management | az monitor log-analytics workspace list | Whether there is a central workspace |
| Governance | az policy assignment list | Which scope the assignment is on |
| Automation | az ad sp list --show-mine / federated credentials | Whether the deployment identity uses OIDC |
# Who is Owner on the subscription? (identity and access)
az role assignment list --all --include-inherited \
--query "[?roleDefinitionName=='Owner'].{who:principalName, type:principalType, scope:scope}" -o table
# Defender plan status (security)
az security pricing list --query "value[].{plan:name, tier:pricingTier}" -o table
Who Type Scope ------------------------ ----- ------------------------------------------------------------ admin@contosolab.onmicrosoft.com User /providers/Microsoft.Management/managementGroups/aaaa0a0a-... Plan Tier ---------------- ------ VirtualMachines Free StorageAccounts Free KeyVaults Free
How to verify: in a new sandbox tenant, usually only you are Owner, and all Defender plans are Free. Common mistake: the output structure of az security pricing list may differ in newer CLI versions. If value[] is empty, remove --query to see the raw structure.
Lab 2: write a design decision record for the sandbox (about 5 minutes)
cd ~/alz-lab cat > design-decisions.md <<'EOF' # ALZ sandbox design decision record | # | Design area | Decision | Default / deviation | Reason | Owner | Date | |---|---|---|---|---|---|---| | 1 | Billing and tenant | Separate sandbox tenant, starting with one subscription | Deviation: ideally 4 platform subscriptions | Lab cost | Me | 2026-11-18 | | 2 | Resource organization | Use the ALZ default 12 management groups, IDs without prefix | Default | Consistent with the ALZ library | Me | 2026-11-18 | | 3 | Governance | Assign Allowed locations on the intermediate root (canadacentral, canadaeast) | Added | Data residency | Me | 2026-11-18 | | 4 | Network | Hub 10.0.0.0/16, spokes starting from 10.1.0.0/16 | Default hub-spoke | Implemented in hour 4 | Me | 2026-11-18 | | 5 | Platform automation | Learn with the CLI first, then migrate to the IaC Accelerator | Deviation | Teaching | Me | 2026-11-18 | EOF wc -l design-decisions.md
8 design-decisions.md
git init -q && git add design-decisions.md && git commit -qm "ADR: initial ALZ decisions" && git log --oneline
3f2a9c1 ADR: initial ALZ decisions
Cleanup: no cloud resources, so nothing to clean up.
Case 1: did networking only and forgot billing and the tenant
Problem: A project team spent two months designing hub-spoke. Only before go-live did they find that the company had three legacy tenants and two EA enrollments, and that subscription creation rights were spread across departments. Approach: Go back to design area A and settle on “one primary tenant + one unified MCA billing account”, and use billing roles to limit who can create subscriptions. Lesson: the environment design areas must be settled before implementation.
Case 2: design decisions were not recorded, and three years later no one knew why
Problem: The new platform lead found that Deny-Public-Endpoints had been turned off under corp, and did not know who did it or why. Approach: Introduce ADRs, so every change to a policy parameter references an ADR number in the PR. Replace outright disabling of the policy with a policy exemption that has an expiry date.
Case 3: treating WAF as if it were ALZ
Problem: The team assessed each application with the Well-Architected Framework, but had no platform-level governance, so logging, networking and identity were handled differently in every application. Approach: The platform team builds a unified foundation based on the ALZ design areas. WAF continues to be used for workload reviews. The two complement each other.
Common errors and fixes
(AuthorizationFailed) … does not have authorization to perform action 'Microsoft.Billing/billingAccounts/read'
Cause: billing permissions are separate from Azure RBAC. Owner does not mean you can read billing.
Fix: a billing account administrator grants a billing role, such as Billing account reader, in Cost Management + Billing.
az role assignment list is slow or times out
Cause: --all walks every visible scope and resolves names for each principal (calls Graph).
az role assignment list --scope /subscriptions/<sub-id> --fill-principal-name false -o table
Fix: limit the query with --scope, or turn off name resolution. For large-scale inventories, use the authorizationresources table in Resource Graph instead.
In design reviews, endless debate over “which design area does this decision belong to”
Cause: many decisions cross areas. For example, a Private Endpoint involves networking, security and governance at once.
Fix: pick one “primary area” to own the decision and list the others as related areas. Write the scope of impact in the ADR.
1. Use Resource Graph to list all Owner role assignments and their scopes.
az graph query -q "authorizationresources | where type == 'microsoft.authorization/roleassignments' | where properties.roleDefinitionId endswith '8e3af657-a8ff-443c-a75c-2fe8c4bcb635' | project principal=tostring(properties.principalId), scope=tostring(properties.scope)" -o table
8e3af657-a8ff-443c-a75c-2fe8c4bcb635 is the definition ID of the built-in Owner role.
The security team requires “no public internet access for any PaaS service”, while the networking team says “online applications must be public-facing”. Which design areas does this involve, and how do you implement it?
The primary area is governance (policy), with networking and security as related areas. The ALZ approach is exactly this: Deny-Public-Endpoints is assigned only on the corp management group, not on online. Applications that must be public go into the online landing zone and are exposed through a controlled entry point such as WAF / Front Door. Record the decision in an ADR.
Verified teaching videos
Official documentation
Video storyboard script (about 90 seconds)
On screen: letters A–I light up one after another on the reference architecture diagram.
Narration: eight design areas. The first four decide the foundation; the last four keep iterating.
On screen: a requirement card, “data must not leave Canada”, slides into the governance area and becomes a policy assignment.
Narration: every requirement must be traceable to a design area, a decision record and a piece of code.
On screen: five principles, like five directions on a compass.
Narration: the five design principles are a compass. You can deviate from them, but you should be clear about the cost.
Module 3 · Platform and application landing zones, subscription democratization
- Tell apart the responsibilities, owners and subscriptions of the platform landing zone and the workload (application) landing zone.
- Explain that “the subscription is the management unit and the scale unit”, and why subscriptions rather than management groups are used to separate dev / test / prod.
- Describe the steps of the subscription vending process, and know which modules implement it in Terraform / Bicep.
- Make a fallback plan for a lab environment that has only one subscription.
What: two types of landing zone
| Platform landing zone | Workload (application) landing zone | |
|---|---|---|
| Quantity | Usually one per Entra tenant | One per workload, including all of its environments |
| Owner | Platform team (Cloud Center of Excellence / CCoE) | Workload team |
| Contents | Management group hierarchy, policies, shared services: connectivity, identity, management, security | The application's VNet (spoke), compute, data, and the application's own monitoring |
| Subscriptions | management, connectivity, identity, security | For example sub-lz-corp-myapp (prod), …-dev |
| Management group it sits in | Child management groups under platform | corp / online / local under landingzones |
In recent years Microsoft's documentation has renamed “application landing zone” to workload landing zone, and describes the workload types as Online, Internal (that is, Corp) and Local. In this course, “application landing zone” and “workload landing zone” mean the same thing.
Platform subscriptions (requirements of the IaC Accelerator)
- Management (required): Log Analytics, the automation account, and the accelerator's bootstrap resources.
- Connectivity (required): hub VNet / Virtual WAN, Azure Firewall, gateways, private DNS zones.
- Identity (recommended): AD DS domain controllers or Entra Domain Services.
- Security (recommended): Microsoft Sentinel and SIEM tools.
The official guidance is to “strongly recommend 4 platform subscriptions”. Small and medium businesses (SMB) need at least 2 (Management + Connectivity), and can split them later.
Why: subscription democratization
- The subscription is the management unit: RBAC, budgets, quotas and Defender plans are all bounded by the subscription, which makes it a good unit to hand to one team.
- Use subscriptions to isolate environments: put dev / test / prod in different subscriptions under the same management group, not in separate dev and prod management groups. Workloads of the same kind should be bound by the same policies, and differences are handled with policy parameters or exemptions.
- Self-service vending: if the process is slow, teams will go to another billing account or even another tenant and build their own subscriptions (shadow IT).
- Several subscription product lines: for example “corp standard”, “online public-facing” and “sandbox experiments”, each with its own network and budget defaults.
- Supported by the management group hierarchy: once a subscription is placed in the right management group, it automatically gets the matching guardrails.
How: the subscription vending process
- The workload team submits a request (a form or a PR): name, environment, type (corp / online), budget, owner, and the address space it needs.
- The platform pipeline validates the request and approves it.
- Create the subscription through the subscription alias API (
Microsoft.Subscription/aliases), with the billing scope set to the EA enrollment account or the MCA invoice section. - Move the subscription into the target management group (for example
corp). Policy inheritance starts immediately. - Grant subscription-level RBAC to the team (not on the management group).
- Create the spoke VNet, peer it to the hub, and configure budget alerts and tags.
- Hand the subscription over to the team.
Implementation modules: Terraform Azure/avm-ptn-alz-sub-vending/azure (0.3.4, 2026-10) or the older Azure/lz-vending/azurerm; for Bicep, use the AVM subscription vending pattern module. The vending process is implemented in Hour 6.
When: what to do if you have only one subscription
- You can still create the management group hierarchy and policy assignments as usual. Put this one subscription in
corp(orsandbox) to demonstrate inheritance. - Platform resources (Log Analytics, hub VNet) and workload resources can go in different resource groups of the same subscription:
rg-alz-mgmt-cc,rg-alz-conn-cc,rg-lz-myapp-cc. - Note: a subscription can have only one parent management group, so with a single subscription you cannot demonstrate “platform subscription under platform, application subscription under corp” at the same time. When the course includes a step like this, it is marked “skip if single subscription”.
Comparison with similar concepts
| Isolation method | Good for | Not suitable for |
|---|---|---|
| Subscription | Team / environment boundaries, quota and cost boundaries | Splitting components inside one application |
| Resource group | Resources with the same lifecycle | Isolating different teams' permissions (easy to exceed access) |
| Management group | Sharing policies across workloads of the same kind | Splitting by environment, region or organizational structure |
Responsibilities split between platform and workloads
Subscription vending pipeline
Subscription vending simulator
Choose a workload type and environment, then click “Next step” to run the vending pipeline step by step. The log shows the API or command each step actually calls (example output). At the end, it shows how many policies the subscription will inherit.
Core commands
| Command | Purpose | Notes |
|---|---|---|
az account alias create | Create a subscription programmatically through the alias API | Comes from the account extension; requires permissions on the EA / MCA / MPA billing scope |
az account alias show/list | View aliases and their corresponding subscription IDs | An alias is the name of the “creation request”, not the subscription name |
az account management-group subscription add | Put a subscription into a management group | Requires subscription Owner + write permission on the target management group |
az consumption budget create / az costmanagement | Budget | Budget alerts are created automatically during the vending process |
# Create a subscription programmatically (EA example; for MCA, billing-scope is the invoice section path) az account alias create --name "sub-lz-corp-myapp" \ --billing-scope "/providers/Microsoft.Billing/billingAccounts/<ea-account>/enrollmentAccounts/<enrollment>" \ --display-name "sub-lz-corp-myapp" --workload "Production" SUB_ID=$(az account alias show --name sub-lz-corp-myapp --query properties.subscriptionId -o tsv) # Place in the corp management group (corp is only created in Module 7; here we only demonstrate the command) az account management-group subscription add --name corp --subscription $SUB_ID # Grant the team access at subscription level (do not grant on the management group) az role assignment create --assignee-object-id <myapp-team-group-id> --assignee-principal-type Group \ --role Contributor --scope /subscriptions/$SUB_ID
{
"name": "sub-lz-corp-myapp",
"properties": { "provisioningState": "Succeeded", "subscriptionId": "1111aaaa-22bb-33cc-44dd-555555eeeeee" },
"type": "Microsoft.Subscription/aliases"
}
How to verify: az account list --refresh shows the new subscription, and az account management-group show --name corp --expand shows it under children. Common error: free or pay-as-you-go personal accounts have no programmable billing scope, so the alias API will fail. In the lab, create the subscription manually in the portal instead, or use an existing subscription.
Lab 3: write a vending request for myapp and plan a single-subscription fallback (about 5 minutes)
cd ~/alz-lab
cat > vend-myapp-prod.yaml <<'EOF'
name: sub-lz-corp-myapp
workload: myapp
environment: prod
archetype: corp # target management group
location: canadacentral
network:
spoke_vnet: vnet-spoke-myapp-cc
address_space: 10.1.0.0/16
peer_to_hub: true
rbac:
- group: grp-myapp-contributors
role: Contributor
budget_cad: 300
tags: { env: prod, owner: myapp-team, costCenter: CC-1001, workload: myapp }
EOF
python3 -c "import yaml,sys;print(yaml.safe_load(open('vend-myapp-prod.yaml'))['archetype'])"
corp
If PyYAML is not installed, you can skip the validation command (pip install pyyaml).
corp. If it is a public website that does not need to connect to the company network → online.cat >> design-decisions.md <<'EOF' | 6 | Resource organization | Single subscription: rg-alz-mgmt-cc / rg-alz-conn-cc / rg-lz-myapp-cc, subscription placed in corp | Deviation | Only one subscription | Me | 2026-11-18 | EOF tail -1 design-decisions.md
az account alias create; otherwise skip this. Cleanup: this lab only generates local files.Case 1: subscription requests take 6 weeks
Problem: Requesting a subscription needed email approval plus a manually built VNet, averaging 6 weeks, and teams began using personal credit cards to get subscriptions. Approach: a Terraform vending module with PR approval; standard requests are delivered within 1 day. At the tenant level, the default management group was set to sandbox, so stray subscriptions are bound by at least the sandbox policies.
Case 2: one subscription hits its quota
Problem: All applications shared one subscription. A vCPU quota request made before a big sales event was delayed, and one team's mistake (deleting a resource group lock) affected other teams. Approach: split into “one subscription per workload, per environment”. Shared components stay in the platform subscriptions.
Case 3: dev / prod management groups caused policy drift
Problem: A company created prod and nonprod management groups. The policies on the two gradually diverged, and deployments that passed testing in dev were denied in prod. Approach: merge into the ALZ default corp / online. Express environment differences through policy parameters and exemptions with expiry dates, so dev and prod are bound by the same rules.
Common errors and fixes
(BillingScopeNotFound / AuthorizationFailed) … does not have authorization to perform action 'Microsoft.Subscription/aliases/write'
Cause: the caller does not have a billing role that allows subscription creation on the billing scope (EA enrollment account / MCA invoice section).
Fix: ask a billing administrator to grant “Enrollment account subscription creator” for EA, or “Azure subscription creator” for MCA. Workload identities (service principals) can also be granted these roles.
The new subscription appears under the Tenant Root Group instead of corp
Cause: new subscriptions go into the root management group by default (or the default management group set in the hierarchy settings). The vending process skipped the “place in management group” step.
az account management-group subscription add --name corp --subscription <sub-id>
Fix: explicitly set the target management group in the vending code, and set the default management group to sandbox (Module 4).
az account alias create: 'alias' is misspelled or not recognized by the system
Cause: the account extension is not installed.
az extension add --name account --upgrade
1. Put subscription <sub-id> into the online management group, and confirm its parent.
az account management-group subscription add --name online --subscription <sub-id> az account management-group subscription show-sub-under-mg --name online -o table
The data team asks for a separate management group for each of dev, test and prod, so that “prod policies are stricter”. How do you respond?
Creating management groups by environment is not recommended. Put the three environments' subscriptions in the same management group (such as corp), so they share the same guardrails. Express the stricter prod requirements with policy parameters (for example, extra assignments on the prod subscriptions), or use exemptions with expiry dates on dev. That way, deployments verified in dev will not fail in prod because of policy differences.
Verified teaching videos
Official documentation
Video storyboard script (about 75 seconds)
On screen: a city plan, with the platform team laying roads and water pipes, and plots labeled with subscription names.
Narration: the platform team builds the roads, water and power, and the workload teams build houses on their own plots.
On screen: the seven vending steps light up one by one, the subscription lands in the corp management group, and the policy icons turn on.
Narration: as soon as a subscription is placed in the right management group, it inherits the guardrails automatically.
On screen: dev and prod subscriptions sit side by side under the same management group.
Narration: subscriptions separate environments, not management groups.
Module 4 · Management group hierarchy: intermediate root, Platform, Landing Zones, Sandbox
- Draw the default ALZ management group hierarchy, and write out each management group's ID, display name and parent.
- State the hard limits of management groups: 10,000 per directory, up to 6 levels deep (not counting the root and subscription levels), and each child has only one parent.
- Explain how policy and RBAC inherit: a subscription's effective assignments are the union of all assignments on the path from the root down to it.
- Configure the hierarchy settings: the default management group, and the authorization needed to create management groups. Know the permissions needed to move a subscription, and ARM's 30-minute cache.
What: the ALZ default hierarchy (defined by the ALZ library alz architecture)
| ID | Display name | Parent | Purpose |
|---|---|---|---|
alz | Azure Landing Zones | Tenant Root Group | Intermediate root: the parent of all ALZ management groups. It carries global policies, so you don't assign directly on the tenant root |
platform | Platform | alz | The parent of the platform child management groups; carries common platform policies |
security | Security | platform | Security / SIEM subscriptions (Sentinel, syslog collectors), recently added |
management | Management | platform | Management subscriptions for Log Analytics, automation and similar |
connectivity | Connectivity | platform | Hub / Virtual WAN, firewalls, private DNS zones |
identity | Identity | platform | Domain controllers / Entra Domain Services |
landingzones | Landing zones | alz | The parent of all workload landing zones; carries guardrails that are independent of any particular workload |
corp | Corp | landingzones | Internal workloads that connect to the company network through the hub |
online | Online | landingzones | Workloads that may be directly internet-facing, or that do not need a VNet |
local | Local | landingzones | Azure Local (hybrid) clusters and their workloads, recently added |
sandbox | Sandbox | alz | Experimental subscriptions, isolated from corp and online, with looser policies |
decommissioned | Decommissioned | alz | Subscriptions pending cancellation, deleted after 30–60 days |
Note: ALZ library default IDs have no prefix. Only the intermediate root is called alz. Older ALZ-Bicep and caf-enterprise-scale versions often used prefixed IDs such as <prefix>-corp. If your tenant already has a management group with the same name, you can change the ID in your IaC. This course uses the official default IDs throughout.
Why: why use an intermediate root
- Any assignment on the tenant root affects the entire directory, including subscriptions unrelated to ALZ. Placing ALZ policies on
alzkeeps the scope of impact under control. - Later, you can build a second hierarchy beside it under the root (for example,
alz-canaryto test ALZ upgrades).
How: inheritance rules and limits
- Inheritance: Policies and RBAC assigned to a management group apply to all management groups, subscriptions, resource groups, and resources beneath it. A child cannot remove a parent's assignment. The only options are an exemption or setting
notScopeson the assignment. - Limits: 10,000 management groups per directory; up to 6 levels of depth (excluding the root and subscription levels); each management group or subscription has only one parent. CAF recommends keeping the hierarchy at 3–4 levels.
- Root management group: The ID equals the tenant ID. The default display name is “Tenant Root Group.” It cannot be moved or deleted. By default, nobody has access, and a Global Administrator must elevate access.
- Hierarchy settings (set only on the root): the default management group (where new subscriptions land;
sandboxis recommended) and require authorization (creating management groups requires write permission on the root; by default, anyone can create management groups under the root). - Moving a subscription requires Owner on the subscription (including role assignment write permission), plus management group write permission on both the target parent and the current parent (except the root). If your Owner role is inherited from the current management group, you can only move the subscription to a management group where you are also an Owner.
- Caching: ARM caches hierarchy information for up to 30 minutes, so the portal may not show the move result right away. After a subscription is moved in, subscription-level policy evaluation takes about 30 minutes to complete.
When: when to deviate from the default hierarchy
- When regulations such as data residency apply, you can add a regional level under landingzones (for example,
corp-eu). - Do not create management groups by department, by environment, or by region (unless a regulation requires it). Use tags for cross-cutting queries.
- Workload types that need special policies (such as SAP, AVD, or confidential computing) can get a management group under landingzones, alongside corp.
Comparison: management groups, subscriptions, resource groups, service groups, tags
| Capability | Management group | Subscription | Resource group | Service group | Tag |
|---|---|---|---|---|---|
| Assignments inherit downward | ✓ | ✓ | ✓ | ✗ | ✗ |
| Consolidate assignments, reduce duplication | ✓ | ✓ | ✓ | ✗ | Usable as a policy condition |
| Group and share resources across scopes | ✗ | ✗ | ✗ | ✓ | Not a first-class grouping |
ALZ default management group hierarchy
Inheritance: a subscription's effective assignments = the union of all assignments along its path
Moving a subscription: how the effective policy set is recalculated
Select a target management group and click “Move subscription.” The animation follows ARM's actual processing order: permission check, then write the new parent, then refresh the hierarchy cache, then the policy engine recalculates effective assignments, then subscription-level evaluation. Assignment counts come from ALZ library 2026.11.0.
Core commands
| Command | Purpose | Key parameters |
|---|---|---|
az account management-group create | Create management group | --name (ID) --display-name --parent (parent ID) |
az account management-group show | View management group | --expand --recurse shows the entire subtree |
az account management-group entities list | Lists all management groups and subscriptions in a flat list | Useful for script comparisons |
az account management-group subscription add/remove | Move subscription | --name target management group --subscription |
az account management-group hierarchy-settings create/update | Default management group, require authorization | --name <tenant ID> -m <management group resource ID> -r true |
az account management-group update | Change the display name or parent (move a management group) | --parent |
# Entire tree (names only)
az account management-group show --name alz --expand --recurse \
--query "{id:name, children:children[].{id:name, children:children[].name}}" -o json
# Set the default management group to sandbox and require authorization to create management groups
az account management-group hierarchy-settings create --name $TENANT_ID \
-m /providers/Microsoft.Management/managementGroups/sandbox -r true
{
"id": "alz",
"children": [
{ "id": "platform", "children": ["security", "management", "connectivity", "identity"] },
{ "id": "landingzones", "children": ["corp", "online", "local"] },
{ "id": "sandbox", "children": null },
{ "id": "decommissioned", "children": null }
]
}
How to verify: az account management-group hierarchy-settings list --name $TENANT_ID shows defaultManagementGroup and requireAuthorizationForGroupCreation: true. Common error: -m requires the full resource ID (/providers/Microsoft.Management/managementGroups/sandbox). Writing only sandbox is rejected.
Lab 4: Read the hierarchy and permissions (about 5 min, read-only plus one hierarchy setting)
az account management-group show --name $TENANT_ID --expand -o table
az account management-group entities list --query "[].{name:name, type:type, parent:parent.id}" -o table
Name Type Parent ------------------------------------ ----------------------------------------- ---------------------------------- aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e Microsoft.Management/managementGroups 1111aaaa-22bb-33cc-44dd-555555eeeeee /subscriptions /providers/Microsoft.Management/managementGroups/aaaa0a0a-...
az role assignment list --scope /subscriptions/<sub-id> --include-inherited \
--query "[?roleDefinitionName=='Owner'].{who:principalName, scope:scope}" -o table
If your Owner role is inherited from the root management group, it stays in effect after you move the subscription to corp, because the root is every resource's ancestor. So this lab will not lock you out.
sandbox.
az account management-group hierarchy-settings create --name $TENANT_ID -r true az account management-group hierarchy-settings list --name $TENANT_ID -o jsonc
az account management-group hierarchy-settings delete --name $TENANT_ID --yes.Case 1: Management groups created by department, 7 levels deep
Problem: A group copied its org chart directly into management groups (group, business unit, department, team, environment). It quickly hit the 6-level limit, and debugging policies meant digging through each level to find where inheritance came from. Fix: Restructured to the ALZ default hierarchy. Department details moved to the costCenter tag and Resource Graph queries. During migration, each batch of subscriptions was first observed in its target management group with DoNotEnforce.
Case 2: MSDN subscription bypassed all policies
Problem: A developer created a subscription using a Visual Studio entitlement. It landed under the root by default, with no ALZ policies, and ran a VM with public RDP. Fix: Set the hierarchy's default management group to sandbox. The Enforce-ALZ-Sandbox policy in sandbox blocks VNet peering and specified resource types, which prevents the subscription from connecting back to the corporate network.
Case 3: Team lost access after a subscription move
Problem: The team had been granted Contributor on the old management group dept-a. After the subscription moved to corp, the access disappeared and production releases stopped. Fix: Before moving, export the inherited permissions with az role assignment list --include-inherited, then re-grant them at the subscription level. Follow the rule: “Do not grant workload teams access at the management group level.”
Common errors and fixes
(AuthorizationFailed) … does not have authorization to perform action 'Microsoft.Management/managementGroups/write' over scope '/providers/Microsoft.Management/managementGroups/alz'
Cause: You lack management group write permission on the new parent (or the old parent). Or “require authorization” is on, and you don't have write permission on the root.
Fix: Grant Owner or Management Group Contributor on the root or the target management group. After elevating access, sign in again.
Cannot move subscription … The current user does not have permission to … role assignments (moving would remove ownership)
Cause: Your Owner role is inherited from the current parent management group. You are not an Owner on the target management group, so you would lose ownership of the subscription after the move.
Fix: Grant yourself Owner directly on the subscription before moving, or first obtain Owner on the target management group.
Move succeeded, but the portal still shows the old parent
Cause: ARM caches hierarchy information for up to 30 minutes.
az account management-group entities list --query "[?name=='<sub-id>'].parent.id" -o tsv
Fix: Trust the API response. Wait for the cache to refresh, and do not move the subscription again.
(BadRequest) The management group hierarchy depth exceeds the maximum allowed
Cause: The hierarchy exceeds 6 levels (excluding the root and subscription levels).
Fix: Flatten the hierarchy and use tags to express organizational dimensions.
1. Create a management group with the ID corp, the display name Corp, and landingzones as its parent.
az account management-group create --name corp --display-name "Corp" --parent landingzones
2. Set the default management group to sandbox.
az account management-group hierarchy-settings update --name $TENANT_ID -m /providers/Microsoft.Management/managementGroups/sandbox
An EU subsidiary has data residency requirements and may use only westeurope and swedencentral. How do you express this in the ALZ hierarchy?
This is a regulatory location requirement, and CAF allows you to adjust the hierarchy for it. Under landingzones, create a regional management group for the EU, either parallel to corp or beneath it (for example, corp-eu). Assign the Allowed locations policy on it, with the two EU regions as parameters. Do not create management groups for regional differences that have no regulatory basis. Record the decision in an ADR.
Verified teaching videos
No newer verified video specifically covering the new ALZ hierarchy was found. Please refer to the official documentation below.
Official documentation
Video storyboard (about 90 seconds)
Visual: A tree grows alz from the tenant root, then splits into four branches.
Narration: The intermediate root alz holds the global policies. Below it are four branches: platform, landing zones (workloads), sandbox, and decommissioned.
Visual: A subscription slides from the root down to corp. The three nodes on the path light up in turn, and the counter jumps from 0 to 75.
Narration: A subscription's effective assignments are the union of all assignments along its path.
Visual: A clock icon shows 30 minutes.
Narration: The hierarchy is cached, and evaluation takes time. After a move, don't rush to retry.
Module 5 · Azure Policy overview: ALZ default policies and Deny / DINE
- Distinguish the four objects: policy definition, policy set (initiative), assignment, and exemption. Also explain an assignment's
enforcementMode. - Name the common effects: Deny, DenyAction, Audit, AuditIfNotExists, DeployIfNotExists, Modify, Append, Disabled, and Manual. Explain why DINE needs a managed identity.
- Read how ALZ's default assignments are distributed across management groups. Give examples of the representative assignments on root, landingzones, corp, and sandbox.
What: the four objects
| Object | What it is | Example in ALZ |
|---|---|---|
| Policy definition | A rule: an if condition plus a then effect, with optional parameters | Deny-MgmtPorts-From-Internet (custom), Allowed locations (built-in) |
| Policy set (initiative) | A group of definitions with shared parameters | Deny-PublicPaaSEndpoints (45 definitions), Deploy-Private-DNS-Zones (59 definitions) |
| Assignment | Binds a definition or policy set to a scope, sets its parameters, and optionally sets a managed identity | Assignment named Deny-Public-Endpoints on corp |
| Exemption | Exempts a scope from an assignment. The category is Waiver or Mitigated, and it can have an expiry date. | Exempts a subscription with a compliance exception from the public endpoint restriction for 90 days |
The assignment's enforcementMode: Default runs normally. DoNotEnforce only evaluates compliance. It does not block or auto-deploy. Use it to “see the effect” before you roll out a new policy. In the ALZ library, Enforce-Subnet-Private is delivered with Audit + DoNotEnforce.
Common effects
| Effect | When it applies | Result | Example ALZ default assignment (management group) |
|---|---|---|---|
| Deny | Before a create or update request reaches the resource provider | Request is rejected with 403 RequestDisallowedByPolicy | Deny-Classic-Resources (alz), Deny-Storage-http (landingzones) |
| DenyAction | Delete request | Blocks deletion of protected resources | DenyAction-DeleteUAMIAMA (platform) |
| Audit | At request time and on periodic evaluation | Allowed, but recorded as non-compliant | Audit-TrustedLaunch (alz), Audit-PeDnsZones (corp) |
| AuditIfNotExists | After the resource is created, checks whether the related resource exists | Non-compliant if it does not exist | Many checks in the MCSB policy set (alz) |
| DeployIfNotExists (DINE) | After the resource is created, checks related resources | If the related resource is missing, deploys the template using the assignment's managed identity | Deploy-AzActivity-Log, Deploy-Diag-LogsCat (alz), Deploy-Private-DNS-Zones (corp) |
| Modify | Modifies properties or tags at request time. For existing resources, a remediation task is needed. | Rewrites the request, then allows it | Enable-DDoS-VNET (connectivity, landingzones) |
| Append | Appends fields at request time | Allowed after appending | — (newer policies mostly use Modify) |
| Disabled | Not evaluated | Often used as a parameterized “switch” | Turns off a specific sub-policy when needed |
| Manual | No automatic evaluation | Compliance status is attested manually | Manual controls in regulatory compliance policy sets |
ALZ default assignment distribution (ALZ library 2026.11.0)
| Management group | Assignment count | Representative assignments |
|---|---|---|
alz | 17 | Deny-Classic-Resources, Deny-UnmanagedDisk, Audit-ResourceRGLocation, Audit-TrustedLaunch, Audit-ZoneResiliency, Audit-UnusedResources, Deploy-AzActivity-Log, Deploy-Diag-LogsCat, Deploy-MDFC-Config-H224 (Defender for Cloud), Deploy-ASC-Monitoring (MCSB), Enforce-ACSB |
platform | 40 | DenyAction-DeleteUAMIAMA, VM / VMSS / Arc monitoring and change tracking (DINE), Enable-AUM-CheckUpdates, Enforce-ASR, per-service guardrails Enforce-GR-* |
landingzones | 53 | Deny-MgmtPorts-Internet, Deny-Subnet-Without-Nsg, Deny-IP-forwarding, Deny-Storage-http, Deny-Privileged-AKS, Enforce-AKS-HTTPS, Audit-AppGW-WAF, Deploy-VM-Backup, Deploy-SQL-TDE, Enforce-TLS-SSL-Q225, Enforce-GR-* |
corp | 5 | Deny-Public-Endpoints, Deny-Public-IP-On-NIC, Deny-HybridNetworking, Deploy-Private-DNS-Zones, Audit-PeDnsZones |
online / management / security | 0 | Inherits from the parent only |
identity | 4 | Deny-MgmtPorts-Internet, Deny-Public-IP, Deny-Subnet-Without-Nsg, Deploy-VM-Backup |
connectivity / local | 1 / 1 | Enable-DDoS-VNET / Enforce-ALDO-Services |
sandbox / decommissioned | 1 / 1 | Enforce-ALZ-Sandbox (Deny specified resource types + Deny VNet peering) / Enforce-ALZ-Decomm (block new resources + shut down) |
In addition, the root archetype deploys 149 policy definitions, 44 policy sets, and 5 custom roles (such as Application-Owners, Network-Management, and Security-Operations). Assignments change when the library version is updated. See the library release notes for the current state.
Why / How: why DINE needs a managed identity
Deny only needs to say “no.” DINE and Modify must deploy or change resources on your behalf. So the assignment must have a system-assigned or user-assigned managed identity. You must also grant that identity, at the assignment scope, the roles listed in the definition's roleDefinitionIds (such as Log Analytics Contributor or Monitoring Contributor). Forgetting this authorization is the number one reason DINE “does nothing.” DINE and Modify do not apply automatically to existing resources. For those, create a remediation task.
When: evaluation timing
- A new assignment applies to its scope after about 5 minutes, and then evaluation begins. Compliance results for a single resource appear about 15 minutes after it is created or updated. After a subscription moves into a management group, subscription-level evaluation takes about 30 minutes.
- The standard evaluation cycle runs every 24 hours. You can use
az policy state trigger-scanto trigger an on-demand scan of a subscription or resource group (asynchronous).
How the four objects relate
The order in which a request passes through the policy engine
What happens to a PUT request in a corp subscription
Choose a scenario and step through it. The animation evaluates the assignments along the path alz → landingzones → corp in the policy engine's actual order (Scenario 4 uses the platform path). The error messages and compliance records in the log are examples.
Core commands
| Command | Purpose | Key parameters |
|---|---|---|
az policy definition list/show | View definition | --management-group looks up custom definitions. Use the GUID for built-in definitions. |
az policy set-definition list | View policy set | --management-group alz |
az policy assignment create | Assignment | --policy/--policy-set-definition --scope --params --enforcement-mode --mi-system-assigned --location |
az policy state summarize / list | Compliance summary / details | --management-group, --filter |
az policy remediation create | Remediate existing resources | --policy-assignment |
az policy exemption create | Exemption | --exemption-category Waiver --expires-on |
# Built-in policy: Allowed locations (used in Module 7)
az policy definition show --name e56962a6-4747-49cd-b67b-bf8b01975c4c \
--query "{name:displayName, mode:mode, effect:parameters.effect.defaultValue}" -o table
# Compliance summary (management group scope)
az policy state summarize --management-group alz \
--query "results.{nonCompliantResources:nonCompliantResources, nonCompliantPolicies:nonCompliantPolicies}"
Name Mode Effect
----------------- ------- --------
Allowed locations Indexed Deny
{
"nonCompliantPolicies": 0,
"nonCompliantResources": 0
}
# Count assignments per scope with Resource Graph (policyresources table) az graph query -q "policyresources | where type == 'microsoft.authorization/policyassignments' | extend scope=tostring(properties.scope), mode=tostring(properties.enforcementMode) | summarize assignments=count() by scope, mode" -o table
How to verify: After a full ALZ deployment, /providers/Microsoft.Management/managementGroups/alz should have 17 assignments. Common error: The Allowed locations mode is Indexed, so it only evaluates resource types that support tags and locations. For resource group locations, use the separate built-in policy “Allowed locations for resource groups.”
Lab 5: Read ALZ's default assignments from the library (about 5 min, local, no cloud resources)
cd ~/alz-lab && mkdir -p lib && cd lib REF=platform/alz/2026.11.0 for a in root platform landing_zones corp online sandbox; do curl -sfLO "https://raw.githubusercontent.com/Azure/Azure-Landing-Zones-Library/$REF/platform/alz/archetype_definitions/$a.alz_archetype_definition.json" done ls
for f in *.json; do printf "%-45s %s\n" "$f" "$(jq '.policy_assignments | length' "$f")"; done jq -r '.policy_assignments[]' corp.alz_archetype_definition.json
corp.alz_archetype_definition.json 5 landing_zones.alz_archetype_definition.json 53 online.alz_archetype_definition.json 0 platform.alz_archetype_definition.json 40 root.alz_archetype_definition.json 17 sandbox.alz_archetype_definition.json 1 Audit-PeDnsZones Deny-HybridNetworking Deny-Public-Endpoints Deny-Public-IP-On-NIC Deploy-Private-DNS-Zones
curl -sfL "https://raw.githubusercontent.com/Azure/Azure-Landing-Zones-Library/$REF/platform/alz/policy_assignments/Deny-Storage-http.alz_policy_assignment.json" \
| jq '{name, scope_effect: .properties.parameters.effect.value, def: .properties.policyDefinitionId}'
{
"name": "Deny-Storage-http",
"scope_effect": "Deny",
"def": "/providers/Microsoft.Authorization/policyDefinitions/404c3081-a854-4457-ae30-26a93ef643f9"
}online have 0 assignments? (Answer: online only needs to inherit the general guardrails from landingzones. It does not need corp's “no public access” restriction.) Cleanup: rm -rf ~/alz-lab/lib (optional).Case 1: A new Deny policy broke every release
Problem: The platform team assigned “subnets must have an NSG” directly on landingzones in Default mode. Several releases in progress all returned 403. Fix: Rolled back to DoNotEnforce. Used the compliance report to find non-compliant resources and notified the teams. Switched back to Default two weeks later. Lesson: Start new Deny policies in DoNotEnforce, then enable them in stages (sandbox, then online, then corp).
Case 2: DINE stays non-compliant
Problem: After Deploy-AzActivity-Log was assigned, the subscription stayed non-compliant. Fix: The team found that the IaC set a managed identity when creating the assignment, but did not grant the required roles at the assignment scope. They added the role assignments and created a remediation task for existing subscriptions. avm-ptn-alz creates these role assignments automatically, based on the roleDefinitionIds in the definition.
Case 3: A compliance exception was handled by turning off the policy
Problem: To let a vendor system use public storage, someone changed the Deny-Public-Endpoints parameter on corp to Disabled. This affected every corp subscription. Fix: Restored the parameter. Created a Waiver-type exemption for that subscription, set to expire in 90 days, and recorded it in an ADR.
Common errors and fixes
(RequestDisallowedByPolicy) Resource '…' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-MgmtPorts-Internet",…}}]'
Cause: The request matched a Deny assignment. The error message includes the assignment name and the definition name.
az policy assignment show --name Deny-MgmtPorts-Internet --scope /providers/Microsoft.Management/managementGroups/landingzones --query "{def:policyDefinitionId, params:parameters}"
Fix: Change the resource to meet the policy (for example, use Bastion instead of public RDP). If it is a genuine exception, request an exemption instead of changing the assignment.
DINE assignment stays NonCompliant, and the remediation task fails with AuthorizationFailed
Cause: The assignment's managed identity does not have the roles listed in roleDefinitionIds in the definition.
PID=$(az policy assignment show --name <assignment> --scope <scope> --query identity.principalId -o tsv) az role assignment list --assignee $PID --all -o table
Fix: Grant the roles at the assignment scope, and at the target scope where the template writes (for example, the subscription that contains the Log Analytics workspace). Then create the remediation task.
InvalidCreatePolicyAssignmentRequest / The policy assignment … is missing parameter …
Cause: The definition has a required parameter with no default value, but it was not provided at assignment time. For example, listOfAllowedLocations for Allowed locations.
Fix: --params '{"listOfAllowedLocations":{"value":["canadacentral","canadaeast"]}}'.
The compliance page shows “Not started” for a long time after a new assignment
Cause: The assignment takes about 5 minutes to apply to its scope. Evaluation of a large scope has no fixed completion time.
az policy state trigger-scan --no-wait
Fix: Wait, or trigger an on-demand scan on the subscription.
1. List the policy names and enforcement modes directly assigned on the corp management group.
az policy assignment list --scope /providers/Microsoft.Management/managementGroups/corp --query "[].{name:name, mode:enforcementMode}" -o table2. Create a 90-day exemption for the subscription, targeting Deny-Public-Endpoints.
az policy exemption create --name exm-vendor-x --scope /subscriptions/<sub-id> \ --policy-assignment /providers/Microsoft.Management/managementGroups/corp/providers/Microsoft.Authorization/policyAssignments/Deny-Public-Endpoints \ --exemption-category Waiver --expires-on 2027-02-16T00:00:00Z --description "ADR-012 vendor exception"
A team can create a storage account with public access in an online subscription, but the same request is rejected in corp. Why? Is this a bug?
It is not a bug. Deny-Public-Endpoints (which blocks public access to PaaS) is assigned only on the corp management group. online has no direct assignment and only inherits the general guardrails from alz and landingzones. Note that both subscriptions are subject to Deny-Storage-http on landingzones, which requires secure transfer to be enabled.
Verified teaching videos
No English video verified with YouTube oEmbed that matches the current ALZ default policies was found. Please refer to the official documentation, and use the storyboard below.
Official documentation
Video storyboard (about 90 seconds)
Visual: A PUT request passes through a security checkpoint like a parcel. Modify attaches a label, Deny stops a non-compliant parcel, and Audit stamps it and lets it through.
Narration: In the request stage, Modify rewrites, Deny rejects, and Audit only records.
Visual: After the resource is created, a DINE robot carrying a managed identity badge goes to deploy diagnostic settings.
Narration: After the resource is created, DINE checks the related resources. If one is missing, it deploys it using the managed identity.
Visual: Each node in the management group tree shows its assignment count.
Narration: ALZ spreads assignments across the management groups. A subscription inherits all the assignments on its path.
Module 6 · Deployment options: portal accelerator, Bicep, and Terraform (ALZ IaC Accelerator)
- Compare when to use the portal accelerator, the IaC Accelerator (Bicep AVM or Terraform AVM), and direct use of AVM modules.
- Name the four phases of the IaC Accelerator, the PowerShell module name
ALZ, theDeploy-Acceleratorcommand, and the prerequisites. - Read the minimal Terraform usage: the
library_referencesof thealzprovider and the three required inputs of theavm-ptn-alzmodule. - Know which implementations are retired: classic ALZ-Bicep and Terraform
caf-enterprise-scale.
What: current deployment options (2026-11)
| Option | What it is | Status | Best for |
|---|---|---|---|
| ALZ IaC Accelerator (recommended) | The PowerShell module ALZ bootstraps a complete continuous delivery environment: code repository, pipelines, deployment identity, and state storage. The code is based on AVM Bicep or Terraform. | Officially recommended | Most organizations |
Terraform AVM: Azure/avm-ptn-alz/azurerm + Azure/alz provider | The pattern module reads the ALZ library and creates management groups, policy definitions, policy sets, assignments, role definitions, and the role assignments that policies need. | 0.23.0 (2026-11-18). It can be used on its own, and it is also the Terraform implementation of the Accelerator. | Teams with an existing Terraform platform |
| Bicep AVM: “Bicep – Azure Verified Modules for Platform Landing Zone” | Bicep implementation based on AVM | The default Bicep option in the Accelerator | Teams that prefer Bicep |
| Portal accelerator (aka.ms/alz/portal) | A “Deploy to Azure” graphical wizard that deploys management groups, policies, and more using preset configuration | Available. The official docs note that flexibility and extensibility are limited, and recommend moving to IaC later. | No IaC capability, want to see results first |
| Classic ALZ-Bicep | Legacy Bicep module repository | Removed from the Accelerator on 2026-02-16. Fixes continue for 12 months, then archived on 2027-02-16 | Only for migrating existing deployments |
| Terraform caf-enterprise-scale | Legacy Terraform modules | Deprecated. Repository archived 2026-09-15. Migration guide: aka.ms/alz/tf/migrate | Only for migrating existing deployments |
The four phases of the IaC Accelerator
- Phase 0: Plan: Choose the IaC language (Bicep or Terraform) and the VCS (GitHub, Azure DevOps, or a local file system). Decide on regions, address space, and platform subscriptions.
- Phase 1: Prerequisites: PowerShell 7.4+, Azure CLI 2.55.0+, and Git. Enterprise proxies and Cloud Shell are not supported. Prepare the platform subscriptions. Management and Connectivity are required, and Identity and Security are recommended (SMB needs at least 2). Permissions: Owner on the parent management group (which can be the tenant root), plus Owner on each platform subscription. Bicep also needs User Access Administrator on the root
/. Terraform requires AzureRM provider v4. - Phase 2: Bootstrap: Run
Install-PSResource -Name ALZ(orUpdate-PSResource -Name ALZif already installed), then runDeploy-Acceleratorto start the interactive wizard. It creates bootstrap resources in Azure, such as the deployment identity and state storage, and creates the repository and pipelines in the VCS. - Phase 3: Run: Adjust the IaC code and configuration to fit your organization's needs. Trigger CI/CD to deploy the platform landing zone. From then on, all changes go through pull requests.
Why: why the official guidance recommends IaC over the portal
- The ALZ library releases a new version about every month (for example, 2026.10.0 → 2026.11.0). With IaC, you can upgrade by changing
refand review the differences in a PR. After a portal deployment, upgrades are difficult. - Version control, repeatable deployments (for example, rehearsing in a test tenant first), and automated approvals.
How: minimal Terraform usage
The alz provider downloads and parses the ALZ library. The local cache directory is .alzlib, and it should be added to .gitignore. The avm-ptn-alz module creates resources with the AzAPI provider. There are only three required inputs: architecture_name ("alz"), location (the region where the policy managed identity lives), and parent_resource_id (the tenant ID, without the /providers/… prefix). Note that this module does not support depends_on. When you need a dependency, use the *_dependencies variables.
When: how to choose
- Your team already has Terraform or Bicep pipeline experience → IaC Accelerator (in the matching language).
- Just want to see what ALZ looks like → Use the portal accelerator in a sandbox tenant, then discard it. Use IaC for production.
- Need to embed ALZ in an existing large Terraform platform repository → Use
avm-ptn-alzand the related AVM pattern modules directly. - Still using classic ALZ-Bicep or caf-enterprise-scale → Create a migration plan and finish it before 2027.
library_references.ref in the provider.Three approaches, one library
IaC Accelerator: four phases
Deployment option selector + bootstrap replay
Answer four questions, and the selector recommends an option. Click “Replay bootstrap” to see what the chosen option actually creates in Phases 2–3. The logs are examples.
Core commands
| Command | Purpose | Notes |
|---|---|---|
Install-PSResource -Name ALZ | Install the IaC Accelerator module | Run in pwsh 7.4+. If already installed, use Update-PSResource -Name ALZ |
Deploy-Accelerator | Start the interactive wizard and complete the bootstrap | Running it with no parameters opens the wizard |
terraform init / plan / apply | Use avm-ptn-alz directly | The first init downloads the alz provider. plan downloads the library to .alzlib |
az deployment mg create | Bicep management-group-scope deployment | --management-group-id --location --template-file |
# PowerShell 7.4+
$alzModule = Get-InstalledPSResource -Name ALZ 2>$null
if (-not $alzModule) { Install-PSResource -Name ALZ } else { Update-PSResource -Name ALZ }
Deploy-Accelerator # Interactive wizard: choose IaC, VCS, subscriptions, regions, ...
# Minimal example of using avm-ptn-alz directly (deploys only management groups, policies, and roles)
terraform {
required_version = ">= 1.12"
required_providers {
alz = { source = "Azure/alz", version = "~> 0.22" }
azapi = { source = "Azure/azapi", version = "~> 2.4" }
}
}
provider "alz" {
library_references = [{
path = "platform/alz"
ref = "2026.11.0"
}]
}
data "azapi_client_config" "current" {}
module "alz" {
source = "Azure/avm-ptn-alz/azurerm"
version = "0.23.0"
architecture_name = "alz"
location = "canadacentral"
parent_resource_id = data.azapi_client_config.current.tenant_id
}
module.alz.azapi_resource.management_groups_level_0["alz"] will be created module.alz.azapi_resource.management_groups_level_1["platform"] will be created module.alz.azapi_resource.management_groups_level_1["landingzones"] will be created ... module.alz.azapi_resource.policy_assignments["corp/Deny-Public-Endpoints"] will be created ... Plan: 4xx to add, 0 to change, 0 to destroy.
How to verify: terraform plan shows 12 management group resources. Common errors: Adding depends_on to module "alz" (not supported). Writing parent_resource_id as a full resource ID. Not adding .alzlib to .gitignore. Resource addresses and counts are examples, so use your actual plan as the reference. Some policy assignments need extra parameters (such as a Log Analytics workspace ID) to work correctly.
Lab 6: Generate and plan a starter avm-ptn-alz project locally (about 6 min)
terraform plan. Do not run apply. Module 7 creates management groups with the same names by hand using the CLI, and the two would conflict. If you want a full Terraform deployment, clean up after Module 7 first, or use a different sandbox tenant.main.tf above to ~/alz-lab/tf-alz/main.tf, and ignore the local library cache:
mkdir -p ~/alz-lab/tf-alz && cd ~/alz-lab/tf-alz printf ".terraform/\n.alzlib/\n*.tfstate*\n" > .gitignore # Paste the main.tf content from the command section here terraform init
Initializing provider plugins... - Installing azure/alz v0.22.1... - Installing azure/azapi v2.x.x... Terraform has been successfully initialized!
export ARM_SUBSCRIPTION_ID=$(az account show --query id -o tsv) terraform plan -out tfplan | tee plan.txt | tail -5 grep -c "management_groups_level" plan.txt
Plan: 4xx to add, 0 to change, 0 to destroy. 12
ls .alzlib, find alz.alz_architecture_definition.json, and confirm that the 12 management groups match Module 4.rm -f tfplan. Keep the directory for future study. No cloud resources were created.Case 1: Portal deployment can't be upgraded two years later
Problem: A company deployed ALZ with the portal accelerator in 2024. Since then, it has manually changed dozens of policy parameters, so when a new policy version was released, it was impossible to tell what had changed. Fix: Used the IaC Accelerator in a test tenant to generate code, compared each existing assignment, turned the manual changes into overrides in code, and then took over the deployment with Terraform import.
Case 2: Migrating from caf-enterprise-scale
Problem: The old module was archived on 2026-09-15. The team was worried that migration would recreate the management groups. Fix: Following the official migration guide, used moved and import blocks to map the existing management groups and assignments to resource addresses in avm-ptn-alz. For management group IDs with an old prefix, kept the original IDs through a custom architecture definition, which avoided recreation.
Case 3: Library version drift
Problem: Two environments had different library_references.ref values, so their policy assignment counts did not match. Fix: Managed ref centrally as a single variable. When upgrading, ran plan in a test tenant first and reviewed the library release notes (for example, 2026.11.0 changed the default diagnostic logs to allLogs). Then rolled it out to production.
Common errors and fixes
Deploy-Accelerator: The term 'Deploy-Accelerator' is not recognized as a name of a cmdlet
Cause: Running in Windows PowerShell 5.1, or the module is not installed or imported.
$PSVersionTable.PSVersion; Get-InstalledPSResource -Name ALZ
Fix: In pwsh 7.4+, run Install-PSResource -Name ALZ, and run Import-Module ALZ if needed.
Error: Invalid for_each argument … value depends on resource attributes that cannot be determined until apply (on module "alz")
Cause: A value that is known only after apply was passed to the module, or depends_on was added. The alz provider's data sources must be read before plan.
Fix: Pass only literal values or values computed by provider functions. Express dependencies with the *_dependencies variables.
Bicep bootstrap error: does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write' over scope '/'
Cause: The Bicep path requires User Access Administrator on the root /.
az role assignment create --assignee <upn-or-id> --role "User Access Administrator" --scope /
Fix: Elevate access and grant the role. After you finish, revoke it according to the principle of least privilege.
Error: Failed to query available provider packages … (alz)
Cause: An enterprise proxy, or no access to the registry or GitHub (the library is downloaded from GitHub). The IaC Accelerator does not officially support proxy environments.
Fix: Run it on a machine with direct access, or on a self-hosted runner. Alternatively, use custom_url to point to an internal mirror of the library.
1. Pin the ALZ library used by the alz provider to 2026.11.0.
provider "alz" {
library_references = [{ path = "platform/alz", ref = "2026.11.0" }]
}2. Install or update the ALZ module in pwsh.
if (Get-InstalledPSResource -Name ALZ 2>$null) { Update-PSResource -Name ALZ } else { Install-PSResource -Name ALZ }A 50-person company has no IaC experience, but wants its platform to be auditable and upgradable within three months. What path do you recommend?
Short term: Use the portal accelerator in a sandbox tenant to get a hands-on sense of ALZ, and train one engineer at the same time. For production, go straight to the IaC Accelerator (Bicep AVM or Terraform, depending on team preference) with GitHub or Azure DevOps. For an SMB scenario, you can start with 2 platform subscriptions. Do not make a portal deployment your long-term approach, because both upgrades and audits depend on version control.
Verified teaching videos
No verified video specifically demonstrating the 2026 IaC Accelerator was found. Please refer to the official documentation below.
Official documentation
- Platform landing zone implementation options
- Azure Landing Zones documentation site (IaC Accelerator)
- Terraform Registry: avm-ptn-alz
- ALZ-Bicep (classic version deprecation notice)
Video storyboard (about 90 seconds)
Visual: An “ALZ library” sits in the center, with three paths leading to the portal, the Accelerator, and the AVM modules.
Narration: Three ways, one library.
Visual: The terminal runs Deploy-Accelerator, and then repository, pipeline, and identity icons appear.
Narration: The Accelerator bootstraps a complete continuous delivery environment. After that, every change goes through a PR.
Visual: The classic ALZ-Bicep and caf-enterprise-scale icons are stamped “Archived.”
Narration: The old implementations are retired. New projects use AVM directly.
Module 7 · Hands-on: build the management group hierarchy and your first policy assignment in a sandbox tenant
- Use the Azure CLI to create 12 management groups with the ALZ default IDs, and set the default management group and “require authorization.”
- Move a subscription into
corp(this also works with a single subscription), and verify its ancestor chain. - Assign the built-in Allowed locations policy (Deny) on the intermediate root
alz. Onlandingzones, assign “resource groups must have a tag” in DoNotEnforce mode. Verify “blocking” and “record only” separately. - Full cleanup: delete the assignments, move the subscription out, delete the management groups from the bottom up, and revoke the elevated access.
What: the state this lab builds
- Hierarchy: Tenant Root →
alz→platform(security,management,connectivity,identity) /landingzones(corp,online,local) /sandbox/decommissioned. - Hierarchy settings: default management group =
sandbox; require authorization to create management groups = true. - Subscription:
sub-lz-corp-myapp(or your only subscription) undercorp. - Policy assignments:
- On
alz: Allowed locations (e56962a6-4747-49cd-b67b-bf8b01975c4c, default effect Deny) and Allowed locations for resource groups (e765b5de-1225-4ba3-bd56-1ac6695af988), with parameterscanadacentralandcanadaeast. - On
landingzones: Require a tag on resource groups (96670d01-0a4d-4649-9c89-2d3abc0a5025), with parametertagName=costCenterandenforcementMode=DoNotEnforce.
- On
Why: why start with these two policies
Data residency is the most common governance requirement and the easiest to verify. Allowed locations uses the Deny effect. A rejected request ends before it reaches the resource provider, so it generates no charges. Require tag uses DoNotEnforce mode, which demonstrates the standard practice of observing a new policy before rolling it out. Both are built-in policies and need no custom definitions.
How: execution order and dependencies
- Management groups must be created top-down (the parent must exist first). They must be deleted bottom-up (a management group with children cannot be deleted).
- Management group creation is asynchronous. ARM returns 202 and is polled, and the CLI waits for completion by default. Occasionally, the parent is not yet visible in the cache when a child is created. Retrying is enough.
- After a subscription is moved, policy inheritance takes effect in ARM immediately. Compliance results take time, though. A new assignment applies after about 5 minutes, and results for a single resource appear after about 15 minutes.
When: the difference between single and multiple subscriptions
| Step | 4 subscriptions | Only 1 subscription |
|---|---|---|
| Place subscriptions | Place the management, connectivity, and identity subscriptions in their matching management groups. Place application subscriptions in corp. | Place the only subscription in corp |
| Policy verification | Test in an application subscription | Test in that same subscription |
| Cleanup | Move all subscriptions back to the root | Same as left |
global location in its rule, and it uses Indexed mode. ② “DoNotEnforce is the same as no assignment.” It still evaluates and produces compliance data. It just doesn't reject or deploy anything. ③ “Deleting a management group deletes its subscriptions.” It doesn't. But a management group with subscriptions cannot be deleted, so move them out first.State after the lab
Paths of the two test requests
Lab replay: commands → ARM operations → hierarchy changes
Replay the commands from this module's lab one by one. The tree on the left grows step by step as each command runs. The log shows the ARM REST calls behind the CLI (asynchronous operation 202 → polling → Succeeded) and sample output.
Commands used in this lab
| Command | Purpose | Note |
|---|---|---|
az account management-group create --name --display-name --parent | Create management group | --parent takes the parent ID. If omitted, it goes under the root. |
az account management-group subscription add | Move subscription | Move back to root: subscription remove, or add to the tenant ID |
az policy assignment create | Assign policy | --scope, --policy, --params, --enforcement-mode |
az policy assignment delete | Delete assignment | Requires the same --scope |
az account management-group delete | Delete management group | Must be empty (no child management groups, no subscriptions) |
MG=/providers/Microsoft.Management/managementGroups
az policy assignment create --name alz-allowed-locations --display-name "Allowed locations (Canada)" \
--scope $MG/alz --policy e56962a6-4747-49cd-b67b-bf8b01975c4c \
--params '{"listOfAllowedLocations":{"value":["canadacentral","canadaeast"]}}'
{
"displayName": "Allowed locations (Canada)",
"enforcementMode": "Default",
"name": "alz-allowed-locations",
"policyDefinitionId": "/providers/Microsoft.Authorization/policyDefinitions/e56962a6-4747-49cd-b67b-bf8b01975c4c",
"scope": "/providers/Microsoft.Management/managementGroups/alz",
...
}
How to verify: az policy assignment list --scope $MG/alz -o table. Common errors: Assignment names must be unique within the same scope, and assignment names at management group scope can be up to 24 characters. Watch the quote escaping for --params in PowerShell. You can use --params @params.json instead.
Lab 7: Build the tree, attach policies, verify, and clean up (about 8 min)
az account show --query tenantId -o tsv must return the sandbox tenant ID.TENANT_ID=$(az account show --query tenantId -o tsv) MG=/providers/Microsoft.Management/managementGroups az account management-group create --name alz --display-name "Azure Landing Zones" --parent $TENANT_ID while read id name parent; do az account management-group create --name "$id" --display-name "$name" --parent "$parent" -o none && echo "created $id" done <<'EOF' platform Platform alz landingzones Landing_zones alz sandbox Sandbox alz decommissioned Decommissioned alz security Security platform management Management platform connectivity Connectivity platform identity Identity platform corp Corp landingzones online Online landingzones local Local landingzones EOF az account management-group update --name landingzones --display-name "Landing zones" -o none
created platform created landingzones ... created local
Spaces in display names are split by read, so use underscores first. Then change the name back to “Landing zones” at the end.
az account management-group hierarchy-settings create --name $TENANT_ID -m $MG/sandbox -r true -o none 2>/dev/null \ || az account management-group hierarchy-settings update --name $TENANT_ID -m $MG/sandbox -r true -o none az account management-group hierarchy-settings list --name $TENANT_ID -o jsonc # Check defaultManagementGroup and requireAuthorizationForGroupCreation
SUB_ID=$(az account show --query id -o tsv) az account management-group subscription add --name corp --subscription $SUB_ID az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions' and subscriptionId == '$SUB_ID' | project chain=properties.managementGroupAncestorsChain" --query "data[0].chain[].name" -o tsv
corp landingzones alz aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Resource Graph data is delayed. If it still shows the old parent, retry later, or use az account management-group show --name corp --expand.
LOCS='{"listOfAllowedLocations":{"value":["canadacentral","canadaeast"]}}'
az policy assignment create --name alz-allowed-locs --scope $MG/alz \
--policy e56962a6-4747-49cd-b67b-bf8b01975c4c --params "$LOCS" -o none
az policy assignment create --name alz-allowed-rg-locs --scope $MG/alz \
--policy e765b5de-1225-4ba3-bd56-1ac6695af988 --params "$LOCS" -o none
az policy assignment create --name lz-require-costcenter --scope $MG/landingzones \
--policy 96670d01-0a4d-4649-9c89-2d3abc0a5025 --params '{"tagName":{"value":"costCenter"}}' \
--enforcement-mode DoNotEnforce -o none
az policy assignment list --scope $MG/alz --query "[].{name:name, mode:enforcementMode}" -o tableaz group create --name rg-policy-test-eus --location eastus
(RequestDisallowedByPolicy) Resource 'rg-policy-test-eus' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"alz-allowed-rg-locs","id":"/providers/Microsoft.Management/managementGroups/alz/providers/Microsoft.Authorization/policyAssignments/alz-allowed-rg-locs"},"policyDefinition":{"name":"Allowed locations for resource groups",...}}]'.az group create --name rg-lz-myapp-cc --location canadacentral --tags env=lab owner=me workload=myapp -o none
az policy state trigger-scan --resource-group rg-lz-myapp-cc
az policy state list --resource-group rg-lz-myapp-cc --filter "policyAssignmentName eq 'lz-require-costcenter'" \
--query "[].{resource:resourceId, state:complianceState}" -o table
Resource State --------------------------------------------------------- ------------ /subscriptions/1111aaaa-.../resourcegroups/rg-lz-myapp-cc NonCompliant
az group delete --name rg-lz-myapp-cc --yes --no-wait for a in alz-allowed-locs alz-allowed-rg-locs; do az policy assignment delete --name $a --scope $MG/alz; done az policy assignment delete --name lz-require-costcenter --scope $MG/landingzones az account management-group subscription remove --name corp --subscription $SUB_ID az account management-group hierarchy-settings delete --name $TENANT_ID --yes for id in corp online local security management connectivity identity platform landingzones sandbox decommissioned alz; do az account management-group delete --name $id && echo "deleted $id" done # Finally: revoke the elevated access ME=$(az ad signed-in-user show --query id -o tsv) az role assignment delete --assignee $ME --role "User Access Administrator" --scope /
Case 1: A data residency policy blocked global services
Problem: The team used a custom policy to restrict regions and forgot to exclude global. As a result, Front Door, DNS zones, and Traffic Manager could not be created. Fix: Switched to the built-in Allowed locations policy (which already excludes global), and added the required regions to its parameters. Ran it in DoNotEnforce for a week before go-live.
Case 2: CLI script fails randomly in CI
Problem: The pipeline created child management groups in parallel, and “parent not found” appeared occasionally. Fix: Created them in order, level by level, or retried with backoff on failure. Eventually moved to IaC. This is exactly why avm-ptn-alz creates management groups in batches by level 0–4.
Case 3: DoNotEnforce was never switched back
Problem: “Resource groups must have a costCenter tag” went live in DoNotEnforce mode, and for six months nobody followed up. The cost allocation reports kept missing data. Fix: For each DoNotEnforce assignment, record a switch-over date in an ADR. Use Resource Graph to report weekly on assignments where enforcementMode == 'DoNotEnforce'.
Common errors and fixes
(ParentNotFound) / (NotFound) The management group 'alz' was not found (when creating a child management group)
Cause: The parent management group was just created and is not yet visible in all ARM instances.
Fix: Wait about a dozen seconds and retry. In the script, create resources in sequence and add retries.
(Conflict) Management group cannot be deleted because it has children
Cause: Wrong deletion order, or a subscription is still inside it.
az account management-group show --name <id> --expand --query "children[].{name:name,type:type}" -o table
Fix: Delete bottom-up, and run subscription remove first.
az group create -l eastus still succeeded
Cause: The assignment was just created (it takes about 5 minutes to apply). Or the subscription is not under alz. Or you only assigned Allowed locations, which uses Indexed mode and does not evaluate resource groups themselves.
az policy assignment list --disable-scope-strict-match --scope /subscriptions/$SUB_ID --query "[].name" -o tsv
Fix: Confirm the subscription's ancestor chain. Resource groups need “Allowed locations for resource groups.” Then retry later.
InvalidPolicyParameters / Unexpected character encountered while parsing value (passing --params in Windows PowerShell)
Cause: PowerShell handles quotes in JSON differently from bash.
Fix: Put the parameters in a file: --params "@params.json", or run the command in Git Bash or WSL.
1. Assign Allowed locations on sandbox in DoNotEnforce mode, allowing only canadacentral.
az policy assignment create --name sbx-allowed-locs --scope /providers/Microsoft.Management/managementGroups/sandbox \
--policy e56962a6-4747-49cd-b67b-bf8b01975c4c --params '{"listOfAllowedLocations":{"value":["canadacentral"]}}' \
--enforcement-mode DoNotEnforce2. List all policy assignments that the subscription inherits, including those on management groups.
az policy assignment list --disable-scope-strict-match --scope /subscriptions/$SUB_ID --query "[].{name:name, scope:scope}" -o tableAfter the lab, a colleague says that creating a storage account in eastus failed, even though his subscription is not in the ALZ hierarchy. What could be the cause?
Check whether his subscription is actually a new one that the hierarchy's default management group placed in sandbox (which sits under alz). Or you may have attached the assignment to the tenant root by mistake. Use Resource Graph to check that subscription's managementGroupAncestorsChain, and list the assignments on the tenant root. This is also why you should experiment only in a sandbox tenant.
Verified teaching videos
No video verified with YouTube oEmbed that demonstrates building the ALZ management group hierarchy with the Azure CLI was found. Please use the official documentation and the storyboard below.
Official documentation
- Create a management group with Azure CLI
- Create a policy assignment with Azure CLI
- Elevate access to manage all Azure subscriptions and management groups
Video storyboard (about 100 seconds)
Visual: The terminal runs the create commands line by line, and the tree grows layer by layer on the right.
Narration: Create management groups top-down. Delete them bottom-up.
Visual: A policy with a globe icon is attached to the alz node. When an eastus deployment runs, a red 403 pops up.
Narration: Deny rejects the request during the request stage, so it generates no charges.
Visual: A resource group without a tag is created successfully, and a yellow non-compliant marker appears on the compliance dashboard.
Narration: DoNotEnforce only records and does not block. It is the observation period before a new policy goes live.
Module 8 · Readiness review and introduction to troubleshooting
- Organize a readiness review by design area, and know where the official ALZ review checklist is.
- Use Resource Graph to check automatically for orphaned subscriptions, the management group hierarchy, key assignments, DoNotEnforce assignments, Owners on management groups, and non-compliant resources.
- Use a troubleshooting tree to locate five common beginner problems: permissions, hierarchy, policy denials, DINE not taking effect, and delayed compliance data.
What: what a readiness review is
A readiness review is a check run before the first workload moves in, and then regularly afterward. It confirms item by item, across the eight design areas, whether the platform meets the organization's minimum requirements. Official resources:
- Azure Review Checklists (GitHub
Azure/review-checklists): The “Azure Landing Zone” checklist is GA. It lists check items and severity by design area. You can import it into Excel and use Resource Graph queries to score it automatically. - The “Design recommendations” section on each design area page.
- Microsoft Defender for Cloud security recommendations and the regulatory compliance dashboard (security design area).
Why: why do this
- A successful accelerator deployment does not mean the organization's requirements are met. Parameters (the workspace ID, the DDoS plan, the private DNS zones) may be left blank, and the DINE identity may not be authorized.
- Platforms drift: manual changes, DoNotEnforce assignments that were never switched, and expired exemptions that were never deleted.
How: minimum review checklist (scope of this hour)
| Design area | Check item | How to check automatically |
|---|---|---|
| Billing and tenant | Who can create subscriptions? Are there orphaned subscriptions (directly under the root)? | Resource Graph: managementGroupAncestorsChain[0] is the tenant root |
| Resource organization | The intermediate root exists. The hierarchy is ≤ 4 levels. The default management group is not the root. Require authorization is on. | hierarchy-settings list, entities list |
| Identity and access | No Owner or Contributor for workload teams on the management groups; elevated access at the root has been revoked | authorizationresources table |
| Governance | Key assignments are in place on alz; every DoNotEnforce assignment has a planned switch date; every exemption has an expiry date | policyresources table |
| Management | Activity logs and diagnostic logs flow to a central Log Analytics workspace | Deploy-AzActivity-Log compliance state |
| Security | Defender for Cloud plans are enabled as required | Deploy-MDFC-Config-H224 compliance state |
| Networking | IP plan is recorded, with no overlaps | VNet address space query (hour 4) |
| Platform automation | All platform changes go through IaC and pull requests; deployment identities use OIDC | Whether the caller in the activity log is a pipeline identity |
When: review cadence
- Run one full review before the first workload goes live; after that, once a quarter, and after each upgrade of the ALZ library version.
- Automated checks can run daily in a pipeline, with results written to work items or a dashboard.
Basic troubleshooting approach
- Confirm the context first: tenant, subscription, and identity are correct. Many "strange" problems come from being signed in to the wrong tenant.
- Read the full error: for
AuthorizationFailed, look at the action and scope; forRequestDisallowedByPolicy, look at the assignment name. - Confirm the level: what is the subscription's current ancestor chain? Note the 30-minute cache.
- Confirm timing: assignments take about 5 minutes to take effect, resource results about 15 minutes, subscription evaluation about 30 minutes, and the standard cycle is 24 hours.
Readiness review process
Error → first diagnostic command
Interactive: Landing Zone readiness scorecard
Tick the checks that your sandbox (or company environment) already meets. Each item is weighted by severity: high 3 points, medium 2, low 1. The scorecard shows the total score, coverage of each design area, and the highest-priority remediation items. Your selections are saved only in this browser.
Review queries (Resource Graph)
| Check | Table | Verdict |
|---|---|---|
| Orphaned subscriptions | resourcecontainers | The number of subscriptions whose parent is the tenant root should be 0 |
| Key assignments exist | policyresources | Number of assignments on alz matches expectations |
| DoNotEnforce assignments | policyresources | Each one has an ADR and a switch date |
| Exemptions expired | policyresources | Exemptions with an empty expiresOn need review |
| Authorizations on management groups | authorizationresources | There should be no workload team access |
| Non-compliant resources | policyresources (policystates) | Summarized by assignment, sorted by severity |
# 1) Orphaned subscriptions (directly under the tenant root)
az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions'
| extend parent=tostring(properties.managementGroupAncestorsChain[0].name)
| where parent == tenantId | project name, subscriptionId" -o table
# 2) All DoNotEnforce assignments and exemptions with no expiry date
az graph query -q "policyresources
| where (type == 'microsoft.authorization/policyassignments' and properties.enforcementMode == 'DoNotEnforce')
or (type == 'microsoft.authorization/policyexemptions' and isnull(properties.expiresOn))
| project type, name, scope=tostring(properties.scope)" -o table
# 3) Role assignments at management group scope
az graph query -q "authorizationresources | where type == 'microsoft.authorization/roleassignments'
| extend scope=tostring(properties.scope) | where scope startswith '/providers/Microsoft.Management/managementGroups/'
| project scope, principalId=tostring(properties.principalId), principalType=tostring(properties.principalType)" -o table
# 4) Non-compliant resources summarized by assignment
az graph query -q "policyresources | where type == 'microsoft.policyinsights/policystates'
| where properties.complianceState == 'NonCompliant'
| summarize nonCompliant=count() by assignment=tostring(properties.policyAssignmentName) | order by nonCompliant desc" -o table
Name SubscriptionId ---- -------------- Type Name Scope ----------------------------------------- --------------------- --------------------------------------------------------------- microsoft.authorization/policyassignments lz-require-costcenter /providers/Microsoft.Management/managementGroups/landingzones Assignment NonCompliant --------------------- ------------ lz-require-costcenter 1
How to verify: an empty result for query 1 means there are no orphaned subscriptions. Common mistake: the case of properties.scope may be inconsistent, so compare with =~ or tolower(); policystates data is delayed.
Lab 8: Run a readiness review on your sandbox (about 6 minutes)
cd ~/alz-lab && mkdir -p review && cd review az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions' | extend parent=tostring(properties.managementGroupAncestorsChain[0].name) | where parent == tenantId | project name" -o json > orphan-subs.json az graph query -q "policyresources | where type == 'microsoft.authorization/policyassignments' | project name, scope=tostring(properties.scope), mode=tostring(properties.enforcementMode)" -o json > assignments.json jq '.count' orphan-subs.json assignments.json
0 3
jq '.count' ../baseline-policy.json assignments.json
0 3
az account management-group hierarchy-settings list --name $TENANT_ID -o jsonc az role assignment list --scope / --query "[?roleDefinitionName=='User Access Administrator'].principalName" -o tsv
The second command should return empty after the lab ends and elevated access is revoked.
design-decisions.md as input for Hours 2–4. Cleanup: this lab is read-only.github.com/Azure/review-checklists and compare it with your scorecard item by item.Case 1: The 100% compliance illusion
Problem: before the audit, the compliance dashboard showed 100%, but the auditor found that 30 subscriptions had no diagnostic settings. What was done: these subscriptions sat directly under the tenant root, so no assignment existed to evaluate them. The review added an "orphaned subscriptions = 0" check and set a default management group.
Case 2: Exemptions became a permanent backdoor
Problem: over two years, 80 exemptions piled up, 60 of them with no expiry date. What was done: each quarterly review lists exemptions with no expiry date, and owners must renew or delete them. New exemptions must reference an ADR and set an expiry date.
Case 3: DINE deployments failed after a library upgrade
Problem: after upgrading the ALZ library, newly added assignments needed new roles, but the pipeline had not granted the managed identity access, so all remediation tasks failed. What was done: the upgrade process now includes "compare the new assignments in the plan and their role assignments", and a full review is run in a test tenant first.
Interactive troubleshooting tree
Start from the symptom and narrow the scope step by step. Each leaf gives a diagnostic command and a fix.
Quick reference: common errors
(LinkedAuthorizationFailed) The client has permission to perform action 'Microsoft.Authorization/policyAssignments/write' … however, it does not have permission to perform action 'Microsoft.Authorization/roleAssignments/write'
Cause: when you create a DINE / Modify assignment with a managed identity, the IaC must also create a role assignment for that identity. The caller lacks write permission for role assignments (for example, it only has Resource Policy Contributor).
Fix: the deployment identity needs both policy write and role assignment write permissions at the assignment scope (Owner, or Resource Policy Contributor plus User Access Administrator, or an RBAC administrator with conditions).
(SubscriptionNotFound) / subscription not visible in the CLI
Cause: you are signed in to a different tenant, or the token cache has not been refreshed.
az account list --refresh --query "[].{name:name, tenant:tenantId}" -o table1. Find all policy exemptions that have no expiry date.
az graph query -q "policyresources | where type == 'microsoft.authorization/policyexemptions' and isnull(properties.expiresOn) | project name, scope=tostring(properties.scope)" -o table
2. Revoke your User Access Administrator role at the root scope.
az role assignment delete --assignee $(az ad signed-in-user show --query id -o tsv) --role "User Access Administrator" --scope /
Management asks: "The accelerator deployment succeeded, so can we start migrating workloads?" Which three things would you check first in the review?
(1) No orphaned subscriptions, a default management group, and required authorizations are set (resource organization); (2) the parameters of key DINE assignments (Log Analytics workspace, private DNS zones, and so on) are filled in, the managed identities are authorized, and compliance results look normal (management / governance); (3) network and identity foundations are ready: IP plan, hub connectivity, platform team has access through PIM, and elevated access at the root is revoked. Other items go into the remediation backlog.
Verified teaching videos
No video was found that was verified through YouTube oEmbed and introduces an ALZ readiness review. Use the official resources and the storyboard below instead.
Official resources
- Azure Review Checklists (includes the Azure Landing Zone checklist)
- Resource Graph starter queries
- Troubleshoot errors with Azure Policy
Video storyboard (about 80 seconds)
On screen: the compliance dashboard shows 100%; the camera pulls back to reveal a row of subscriptions outside the hierarchy.
Narration: check whether the expected assignments exist first, then look at the compliance rate.
On screen: four Resource Graph queries run one after another, and the scorecard numbers rise.
Narration: orphaned subscriptions, DoNotEnforce, exemptions with no expiry, and authorizations on management groups. These four queries cover most drift.
On screen: the troubleshooting tree branches from "symptom" to leaves.
Narration: troubleshooting starts from four directions: context, the full error, the level, and timing.
Command cheat sheet
Key facts
| Topic | Fact |
|---|---|
| CAF seven phases | Strategy → Plan → Ready → Adopt → Govern → Secure → Manage (Ready produces the landing zone) |
| Eight design areas | Billing and Entra tenants, identity and access, resource organization, network topology and connectivity (environment); security, management, governance, platform automation and DevOps (compliance) |
| Five design principles | Subscription democratization, policy-driven governance, single control and management plane, application-centric design, and alignment with Azure native design and roadmap |
| Default management groups (12) | alz → platform (security management connectivity identity), landingzones (corp online local), sandbox, decommissioned |
| Management group limits | 10,000 per directory; depth of 6 levels (excluding the root and subscriptions); a single parent; hierarchy cache up to 30 minutes |
| Default number of assignments (library 2026.11.0) | alz 17 · platform 40 · landingzones 53 · corp 5 · online 0 · identity 4 · connectivity 1 · local 1 · sandbox 1 · decommissioned 1 · management 0 · security 0 |
| Policy timing | New assignments take about 5 minutes to apply; resource results about 15 minutes; subscription move evaluation about 30 minutes; standard cycle 24 hours |
| Deployment options | IaC Accelerator (ALZ module, Deploy-Accelerator; GitHub / Azure DevOps / local) · avm-ptn-alz 0.23.0 + alz provider 0.22.1 · Bicep AVM · portal accelerator · classic ALZ-Bicep archived 2027-02-16 · caf-enterprise-scale archived 2026-09-15 |
| Platform subscriptions | Management and Connectivity required; Identity and Security recommended; SMB minimum 2 |
Command
# Permissions
az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"
az role assignment create --assignee-object-id <id> --assignee-principal-type User --role Owner --scope /providers/Microsoft.Management/managementGroups/<tenant-id>
az role assignment delete --assignee <id> --role "User Access Administrator" --scope /
# Management groups
az account management-group create --name corp --display-name "Corp" --parent landingzones
az account management-group show --name alz --expand --recurse
az account management-group entities list -o table
az account management-group subscription add --name corp --subscription <sub-id>
az account management-group subscription remove --name corp --subscription <sub-id>
az account management-group hierarchy-settings create --name <tenant-id> -m /providers/Microsoft.Management/managementGroups/sandbox -r true
az account management-group delete --name corp
# Subscription vending
az account alias create --name <alias> --billing-scope <scope> --display-name <name> --workload Production
# Policy
az policy definition show --name e56962a6-4747-49cd-b67b-bf8b01975c4c # Allowed locations
az policy assignment create --name <name> --scope <scope> --policy <def> --params '{...}' [--enforcement-mode DoNotEnforce]
az policy assignment list --disable-scope-strict-match --scope /subscriptions/<sub-id>
az policy state summarize --management-group alz
az policy state trigger-scan [--resource-group <rg>]
az policy remediation create --name <n> --policy-assignment <assignment-id>
az policy exemption create --name <n> --scope <scope> --policy-assignment <id> --exemption-category Waiver --expires-on <date>
# Resource Graph (tables: resources / resourcecontainers / policyresources / authorizationresources)
az graph query -q "resourcecontainers | where type == 'microsoft.resources/subscriptions' | project name, properties.managementGroupAncestorsChain"
# IaC Accelerator (pwsh 7.4+) Install-PSResource -Name ALZ # or Update-PSResource -Name ALZ Deploy-Accelerator
provider "alz" { library_references = [{ path = "platform/alz", ref = "2026.11.0" }] }
module "alz" {
source = "Azure/avm-ptn-alz/azurerm"
version = "0.23.0"
architecture_name = "alz"
location = "canadacentral"
parent_resource_id = data.azapi_client_config.current.tenant_id
}
One-line effect
| Effect | One line |
|---|---|
| Deny | Rejected at the request stage, 403 RequestDisallowedByPolicy |
| DenyAction | Blocks deletion of protected resources |
| Audit / AuditIfNotExists | Allowed through and recorded as non-compliant; non-compliant if the related resource does not exist |
| DeployIfNotExists | After successful creation, deploys missing related resources; needs a managed identity and roles |
| Modify / Append | Modifies properties or tags at the request stage; existing resources are handled by remediation tasks |
| Disabled / Manual | Not evaluated / manual attestation |
Capstone lab + final quiz
Scenario
Northwind Maple is a Canadian insurance company preparing to move myapp (an internal Flask app, port 5000) and a public-facing quote website to Azure. Requirements: data may only be stored in canadacentral / canadaeast; all resource groups must have a costCenter tag (observe for one month first); developers' personal subscriptions may not connect to the corporate network; platform changes must go through IaC from now on. There are currently only 2 subscriptions.
design-decisions.md, write at least 8 decisions across the eight design areas, including "how to place the platform resources and myapp when there are 2 subscriptions" (hint: the SMB minimum is Management + Connectivity, and myapp goes into a second subscription under corp; or a single-subscription fallback).sandbox and turn on "require authorization".management (if you have only one subscription, put it in corp) and the other in corp. Later the quote website will use online; state the reason in an ADR.alz, assign Allowed locations and Allowed locations for resource groups (Deny). On landingzones, assign Require a tag on resource groups (costCenter) in DoNotEnforce mode.import blocks, or clean up and rebuild).Acceptance checklist
- ☐ The 12 management group IDs match the ALZ library, and the hierarchy depth is 3 levels (excluding the root).
- ☐ The default management group is sandbox, and require authorization is on.
- ☐ There are no orphaned subscriptions.
- ☐ A deployment to eastus is rejected with RequestDisallowedByPolicy, and the assignment name is visible in the error.
- ☐ The non-compliant resource group appears in the compliance data.
- ☐ ADRs cover all eight design areas and record every deviation.
- ☐ Cleanup is done and elevated access has been revoked.
Open-ended self-check (6 questions)
- Why does ALZ have an intermediate root
alzinstead of placing policies directly on the Tenant Root Group? - The online management group has no direct assignments by default. Does that mean workloads in online have "no guardrails"?
- How do DINE and Deny differ in their position in the request lifecycle? What prerequisite does each one need?
- If the organization insists on creating management groups by dev / prod, how would you explain the cost and propose an alternative?
- What are the trade-offs between the IaC Accelerator and using
avm-ptn-alzdirectly? - Which review queries would you put into a pipeline that runs daily? Why?
Sources and versions
Source
| Topic | Source | Verified on |
|---|---|---|
| CAF seven phases | Cloud Adoption Framework for Azure (page dated 2026-08-26) | 2026-11-18 |
| Landing zone definition, platform and workload landing zones | What is an Azure landing zone? | 2026-11-18 |
| Eight design areas | Azure landing zone design areas | 2026-11-18 |
| Five design principles | Design principles | 2026-11-18 |
| Management group hierarchy (CAF) | Management groups | 2026-11-18 |
| Management group limits, root, move permissions, cache | Organize your resources with management groups | 2026-11-18 |
| Hierarchy settings CLI | az account management-group hierarchy-settings | 2026-11-18 |
| ALZ library version, architecture definitions, archetypes and assignments | Azure-Landing-Zones-Library releases (platform/alz/2026.11.0, 2026-11-06), and architecture_definitions, archetype_definitions, policy_assignments under that tag | 2026-11-18 |
| Deployment options | Platform landing zone implementation options | 2026-11-18 |
| IaC Accelerator prerequisites, subscriptions, bootstrap | Prerequisites · Platform subscriptions · Bootstrap | 2026-11-18 |
| avm-ptn-alz 0.23.0, alz provider 0.22.1, vending module | Registry: avm-ptn-alz · Registry: alz provider · Module README | 2026-11-18 |
| Classic ALZ-Bicep deprecation timeline | Azure/ALZ-Bicep | 2026-11-18 |
| caf-enterprise-scale archive | Azure/terraform-azurerm-caf-enterprise-scale | 2026-11-18 |
| Policy evaluation timing, on-demand scans | Get policy compliance data | 2026-11-18 |
| Built-in policy IDs | Azure/azure-policy built-in definitions | 2026-11-18 |
| Review checklist | Azure/review-checklists | 2026-11-18 |
Video verification notes
Only videos whose titles and channels were verified through YouTube oEmbed (https://www.youtube.com/oembed?url=…&format=json) are listed:
- Azure Landing Zones Overview — John Savill's Technical Training (2021; concepts still apply, deployment tooling is outdated)
- Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules (cited on the CAF design principles page)
No suitable verified videos were found for Modules 5, 7, and 8, so storyboards are provided instead.
Voice notes
The "Voice" tab uses the browser's Web Speech API to read the English narration script aloud, and English terms are read with an English voice. Results depend on the speech packs installed on the operating system. This course does not include any audio files.
Known limitations
- None of the cloud commands were run against a real tenant. The tenant IDs, subscription IDs, object IDs, timestamps, version numbers, and resource counts in the output are sample values. CLI output formats may change between versions.
- The default number of ALZ assignments comes from the archetype definitions in the library tag
platform/alz/2026.11.0. The library is updated about monthly, so the count and names may change. - The IaC Accelerator's wizard questions, the generated file names, and the specific resources created by the bootstrap have not been checked one by one, so defer to the official documentation. The non-interactive parameters of
Deploy-Acceleratorare not used in this hour. - The resource addresses and counts in the
terraform planoutput are illustrative. Some ALZ assignments need extra parameters (such as the Log Analytics workspace ID) to work fully; hour 2 and later lessons will fill these in. - The subscription alias API requires EA / MCA / MPA billing permissions; personal or trial accounts may not be able to use it.
- The specific pages and options of the portal accelerator may change at any time.