Azure Landing Zone Hour 1: CAF and ALZ Architecture

First, understand why a landing zone exists, what parts it has, and what it looks like by default. Then build the management group hierarchy in a sandbox tenant by hand and attach your first policy.
CAF seven phasesALZ library platform/alz 2026.11.0avm-ptn-alz 0.23.0alz provider 0.22.1Checked against official docs · 2026-11-18
Lab safety noticeDo all hands-on work in this hour only in a dedicated sandbox Entra tenant (a free new tenant or a company lab tenant). Do not run these labs in a production tenant. Management groups and root-level policy assignments affect every subscription in the tenant. The lab needs Owner on the root management group. Get it by turning on “Access management for Azure resources” in Entra ID, and revoke the access when the lab ends.
Overall learning goals
  • 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 and caf-enterprise-scale are 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.
PrerequisitesThis hour assumes you already know Azure CLI and basic IaC: the Terraform course (IaC and azurerm); hour 3 of any CI platform course on OIDC and deployment identity, such as GitHub hour 3 or Azure DevOps hour 3; and Linux hour 3 (Azure VM basics). After this course, the next one is AKS. AKS clusters are deployed in the application landing zone.

1-hour timetable

#TimeModuleCore contentAnimation / interactionLab
0Before classSetup: sandbox tenant, permissions and toolsCreate a sandbox tenant, elevate access, install Azure CLI / Bicep / Terraform / PowerShell 7Environment self-check listaz account show
100–06Why you need a landing zoneCAF seven phases, Ready phase, landing zone definition, five common failures“No governance vs. landing zone” comparison simulationInventory the current state with Resource Graph
206–13Eight design areasFour environment design areas, four compliance design areas, five design principles, decision rolesStep through each design area → the resources it producesWrite a design decision record
313–21Platform and application landing zonesPlatform vs. workload, subscription democratization, subscription vending, Corp / Online / Local, single-subscription fallbackSubscription vending pipeline simulationFill in a vending request for myapp
421–28Management group hierarchy12 default management groups and their IDs, 6 levels deep, default management group, required authorization, move permissions, 30-minute cacheEffective policy set recalculated after a subscription moveView the hierarchy and entities
528–35Azure Policy overviewDefinitions / policy sets / assignments / exemptions, effect list, default ALZ assignment distribution, DINE managed identityOne PUT request handled by Deny / Audit / DINEQuery built-in definitions and compliance state
635–42Deployment optionsPortal accelerator, four stages of the IaC Accelerator, Terraform avm-ptn-alz + alz provider, Bicep AVM vs. classicDeployment method selectorGenerate starter Terraform code locally
742–50Hands-on: hierarchy + first policyCreate 12 management groups with the CLI, move subscriptions, assign Allowed locations, verify the Deny, clean upDeployment progress replayFull lab
850–60Readiness review and troubleshooting basicsReadiness review checklist, Resource Graph checks, common errorsReadiness scorecard + interactive troubleshooting treeRun the review queries
—After classCheat sheet · Capstone labDesign and build a minimal ALZ skeleton for a fictional companyFinal quiz (12 questions)Capstone lab

Knowledge coverage matrix

Target skillsM1M2M3M4M5M6M7M8Key commands / toolsLab
Explain the CAF phases and the value of a landing zone✓✓·····✓CAF documentationCurrent-state inventory
Organize decisions by design area·✓✓····✓Design decision recordM2 lab
Subscription planning and vending✓·✓✓··✓·az account aliasVending request
Design and build the management group hierarchy·✓·✓·✓✓✓az account management-group12 management groups
Read and assign Azure Policy✓··✓✓·✓✓az policy assignment / stateAllowed locations
Choose a deployment method·····✓··Deploy-Accelerator, terraformStarter code
Resource Graph inventory and review✓··✓✓··✓az graph queryReview queries
Permissions and elevated-access troubleshooting···✓·✓✓✓elevateAccess, az role assignmentTroubleshooting tree

What this hour does not cover (and where to learn it)

TopicWhy it is not in this hourWhere to learn it
Policy evaluation pipeline details, custom policies, remediation tasks, exemptions, policy as codeThis hour gives only an overviewHour 2: Resource organization and governance
Entra ID, PIM, Conditional Access, workload identity federation, RBAC designBelongs to the identity design areaHour 3: Identity and access
Hub-spoke, Azure Firewall, private DNS, Private Endpoint, Virtual WANBelongs to the network design areaHour 4: Network topology and connectivity
Management and monitoring, security baseline, platform automation pipeline, subscription vending implementationNeeds the basics from the first four hoursHour 5: Management and monitoring, Hour 6: Automation
Deploying specific workloads such as AKSBelongs to the workload teamsAKS course

How to use this course

10 pages per module
Principles · diagrams · animation · commands · lab · production cases · troubleshooting · quiz · voice · video. Read “Principles” and “Animation” first, then do the “Lab”.
Learning progress
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).
English voice
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.
Version notesThis hour reflects the status verified on 2026-11-18. The latest release of the ALZ library (Azure/Azure-Landing-Zones-Library) is 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)

A tenant you can safely tear apart, an account that can reach the root management group, and a set of command-line tools at suitable versions
Before class ≈ 15 minutesCost: 0 (this hour creates no billable resources)
Do not run these labs in a production tenant. This hour creates 12 management groups under the root management group, moves subscriptions and assigns Deny policies. Doing this in a production tenant could block your colleagues' deployments immediately.
Prerequisites
  • 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-alz requires ≥ 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",
  ...
}
Revoke after the lab. Elevated access gives a “master key” to the whole tenant. When the lab ends, delete your Owner assignment on the root, and switch the portal toggle back to “No” (or delete the User Access Administrator assignment on the / 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, secondary canadaeast. 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 tenantId matches the expected value).
  • ☐ You can show the 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

00:00 – 06:00 · A landing zone is not a product. It is an architecture and a process: lay the foundation first, then let teams move in.
6 minutesCAF seven phases (2026-08 version)★★★★★
Learning goals
  • 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.
Prerequisites: you know the basic concepts of subscriptions, resource groups and RBAC. Importance: ★★★★★ (this decides the “why” behind all the later design)

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 modeTypical symptomCountermeasure in a landing zone
Subscription sprawlDozens of subscriptions sit directly under “Tenant Root Group” and no one knows who owns themManagement group hierarchy + default management group + subscription vending process
Excessive permissionsDevelopers are Owners on subscriptions, can delete logs, change networking and grant access to othersRBAC layering, PIM, custom roles (hour 3)
Overlapping addressesEvery team uses 10.0.0.0/16, so the VNets can't be peered later or connected to on-premisesCentral IP planning, hub-spoke (hour 4)
Missing logsAfter an incident, the team finds that the activity log keeps only 90 days and diagnostic logs were never enabledA DINE policy automatically configures diagnostic settings to a central Log Analytics workspace
After-the-fact complianceA temporary scan before an audit finds hundreds of public storage accountsPolicy-driven governance: Deny to prevent, Audit to discover, DINE to remediate automatically

How: what the Ready phase involves

  1. Make design decisions across the eight design areas (Module 2), and record them in a design decision record.
  2. Choose an implementation approach: an accelerator (IaC Accelerator or portal accelerator, Module 6), or build it yourself.
  3. Deploy the platform landing zone: management groups, policies, and shared resources in the management, connectivity, identity and security subscriptions.
  4. 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 zoneAWS Control Tower / Landing ZoneGoogle Cloud foundation blueprint
Organizational unitManagement group (up to 6 levels)Organizations OUFolder
GuardrailsAzure Policy (Deny / Audit / DINE / Modify)SCPs + Config rules + proactive controlsOrganization Policy
Account unitSubscriptionAccount (vended through Account Factory)Project
Reference implementationALZ library + AVM (Bicep / Terraform)Control Tower / LZATerraform foundation blueprint
Common misconceptions ① “A landing zone is just a hub VNet”: networking is only one of the eight design areas. ② “Once the accelerator is deployed, you're done”: a landing zone needs continuous iteration (new policies, library version upgrades). ③ “Small companies don't need one”: management groups and a few root-level policies cost nothing, and they get harder to add later. ④ “A landing zone means one resource group per application”: the scale unit is the subscription, not the resource group.

The seven CAF phases and the output of the Ready phase

1 StrategyWhy adopt the cloud 2 PlanPrepare the organization 3 ReadyBuild the landing zone 4 AdoptMigrate / build new 5 GovernControl 6 SecureSecure 7 ManageRun and optimize Azure landing zone Platform landing zone: management groups + policies + shared resources Workload landing zone: one set of subscriptions per workload + distribution process (subscription vending) Govern / Secure / Manage keep iterating New compliance requirement → update platform policies Policies inherit down the management group tree → all workloads stay consistent
Figure 1-1: the Ready phase produces the landing zone; the Govern, Secure and Manage phases keep updating it through platform policies

Side-by-side: the same company, two different starts

No landing zone Tenant Root Group sub-dev1 sub-test sub-prod? MSDN-xx Each subscription has its own Owner · everyone uses 10.0.0.0/16 RDP 3389 open to the public internet · no diagnostic logs Compliance = temporary scan before audit With a landing zone Tenant Root → alz (intermediate root, where policy sits) platform landingzones sandbox Subscriptions placed by type · RBAC granted at subscription level Deny public exposure of management ports · DINE diagnostic logs Compliance = continuous evaluation + automatic remediation
Figure 1-2: management groups make “write the policy once, and it covers every subscription automatically” possible

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).

Choose a mode, then click “Next step”.
$ # waiting for events…

Core commands: inventory the current state

CommandPurposeNotes
az account listList subscriptions visible to the current account--all includes disabled subscriptions; --query filters fields
az account management-group listList management groupsA new tenant usually shows only the Tenant Root Group
az graph query -qAzure 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 listView 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)

Confirm the context: make sure you are signed in to the sandbox tenant, not the company tenant.
az account show --query "{tenant:tenantId, user:user.name, sub:name}" -o table
Count subscriptions, management groups and policy assignments:
TENANT_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)
Save the results as a baseline. The readiness review in Module 8 compares against it:
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
Reflection: go through the “five failures” one by one and compare them with your company's real tenant (read-only, do not change anything). Write down which ones have already happened. Cleanup: this lab is read-only, so there is nothing to clean up.

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.

Command-line exercises
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
Scenario analysis
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

▶
Azure Landing Zones Overview — John Savill's Technical Training
English · released 2021, before AVM and the new ALZ library: the concepts still apply, but the deployment-tool parts are outdated · verified with the YouTube oEmbed endpoint

Official documentation

Video storyboard script (about 80 seconds)

Shot 1 · 0–20s
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.
Shot 2 · 20–45s
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.
Shot 3 · 45–80s
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.
Or score ≥ 70% on the quiz

Module 2 · ALZ conceptual architecture: eight design areas

06:00 – 13:00 · Decide first, then write code. The eight design areas are a checklist of questions you must answer.
7 minutesdesign-areas page updated 2026-10★★★★★
Learning goals
  • 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.
Prerequisites: Module 1. Importance: ★★★★★ (always asked in interviews and architecture reviews)

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):

GroupDesign areaDiagram letterCore question to answerCourse hour
EnvironmentAzure billing and Microsoft Entra tenantAEA / MCA / CSP? How many tenants? Who can create subscriptions?This hour M3
Identity and access managementBRBAC, PIM, conditional access and workload identity for platform and workload teamsHour 3
Resource organizationCManagement group hierarchy, subscription design, naming and tagsThis hour M3–M4
Network topology and connectivityEHub-spoke or Virtual WAN, IP planning, DNS, hybrid connectivityHour 4
ComplianceSecurityFDefender for Cloud, Sentinel, key management, zero trustLater hours
ManagementD, G, HLog Analytics, monitoring alerts, backup, update managementLater hours
GovernanceC, DAzure Policy, cost management, compliance auditThis hour M5, hour 2
Platform automation and DevOpsIIaC tools, pipelines, team topology, version upgradesThis 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

PrincipleMeaningCost of deviating
Subscription democratizationSubscriptions 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 governanceUse Azure Policy for guardrails, independent of the deployment toolCompliance depends on manual checks, with high operational overhead
Single control and management planeUse Azure Resource Manager as the one control plane, without relying on a homegrown portalMulti-vendor integration becomes complex and features go missing
Application-centric service modelThink 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 roadmapPrefer native services and follow the platform roadmapThird-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 areasWell-Architected Framework (WAF)
ScopeThe whole platform (multi-subscription environment)A single workload
Dimension8 design areas5 pillars: reliability, security, cost optimization, operational excellence, performance efficiency
Used byPlatform teamWorkload teams
Common misconceptions ① “Design areas are the deployment order”: they are a checklist of decisions. The deployment order is set by dependencies (management groups → policies → management → connectivity). ② “Management and governance are the same thing”: management is about operational visibility and recovery (logs, monitoring, backup), while governance is about rules and compliance (policy, cost). ③ “We can deal with networking later”: once workloads take up IP space in the plan, it is almost impossible to change without pain.

Where the eight design areas sit in the reference architecture

A Billing and Entra tenantB Identity and access (Entra ID, PIM)I Platform automation and DevOps C Resource organization: Tenant Root → alz → platform / landingzones / sandbox / decommissioned D/G/H ManagementLog AnalyticsAlerts · backup · updatesF SecurityDefender · Sentinel(management / security subscriptions) E Network topology and connectivityhub VNet / Virtual WANAzure Firewall · gatewaysPrivate DNS zones · DDoS(connectivity subscription) Workload landing zone corp: myapp prodSpoke peered to hub online: public siteCan face the internet directly C/D Governance: policy assignments on management groups, inherited downward Every subscription has: RBAC · policy · cost · Defender
Figure 2-1: the letters match the legend on the official design areas page (D appears under both management and governance)

Decision flow: from design area to resource

Requirement“Data must not leave Canada” Design area: governanceRecord ADR-007 ImplementationAllowed locations policy ResourcepolicyAssignment @ alz
Figure 2-2: every requirement should be traceable: design area → decision record → IaC code → Azure 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.

Ready: none of the eight design areas has been decided yet.
$ # design decision record is empty

Core commands: see what each design area looks like in the tenant

Design areaCommandWhat to look at
Billing and tenantaz billing account listAgreement type (EA / MCA); requires billing read permission
Identity and accessaz role assignment list --allWho has Owner on subscriptions / management groups
Resource organizationaz account management-group entities listFlat list of management groups and subscriptions
Networkaz network vnet listAddress spaces and peering
Securityaz security pricing listWhether Defender plans are enabled
Managementaz monitor log-analytics workspace listWhether there is a central workspace
Governanceaz policy assignment listWhich scope the assignment is on
Automationaz ad sp list --show-mine / federated credentialsWhether 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)

Create the decision record file (Markdown, which later hours will keep appending to):
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
Complete the remaining three areas: identity and access (who owns the root management group? is PIM used?), security (is Defender CSPM enabled?), and management (which subscription holds Log Analytics? how many days of retention?). Write down the “default / deviation” for each one.
Self-check against the official checklist: open the “Design recommendations” section of each design area page and mark any recommendations you have not considered.
Put it under version control:
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.

Command-line exercises
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.

Scenario analysis
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

▶
Azure Landing Zones Overview — John Savill's Technical Training
English · covers design areas and the reference architecture; the 2021 video's deployment-tool parts are outdated · verified with the YouTube oEmbed endpoint

Official documentation

Video storyboard script (about 90 seconds)

Shot 1 · 0–25s
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.
Shot 2 · 25–60s
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.
Shot 3 · 60–90s
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.
Or score ≥ 70% on the quiz

Module 3 · Platform and application landing zones, subscription democratization

13:00 – 21:00 · The platform team builds the roads, power and water. Workload teams build houses on their own plots. The subscription is that plot of land.
8 minutesPlatform subscriptions: 2 required + 2 recommended★★★★★
Learning goals
  • 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.
Prerequisites: Modules 1–2. Importance: ★★★★★

What: two types of landing zone

Platform landing zoneWorkload (application) landing zone
QuantityUsually one per Entra tenantOne per workload, including all of its environments
OwnerPlatform team (Cloud Center of Excellence / CCoE)Workload team
ContentsManagement group hierarchy, policies, shared services: connectivity, identity, management, securityThe application's VNet (spoke), compute, data, and the application's own monitoring
Subscriptionsmanagement, connectivity, identity, securityFor example sub-lz-corp-myapp (prod), …-dev
Management group it sits inChild management groups under platformcorp / 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

  1. 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.
  2. 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.
  3. 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).
  4. Several subscription product lines: for example “corp standard”, “online public-facing” and “sandbox experiments”, each with its own network and budget defaults.
  5. 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

  1. The workload team submits a request (a form or a PR): name, environment, type (corp / online), budget, owner, and the address space it needs.
  2. The platform pipeline validates the request and approves it.
  3. 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.
  4. Move the subscription into the target management group (for example corp). Policy inheritance starts immediately.
  5. Grant subscription-level RBAC to the team (not on the management group).
  6. Create the spoke VNet, peer it to the hub, and configure budget alerts and tags.
  7. 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 (or sandbox) 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 methodGood forNot suitable for
SubscriptionTeam / environment boundaries, quota and cost boundariesSplitting components inside one application
Resource groupResources with the same lifecycleIsolating different teams' permissions (easy to exceed access)
Management groupSharing policies across workloads of the same kindSplitting by environment, region or organizational structure
Common misconceptions ① “One big subscription is the simplest”: you will hit subscription-level quotas and RBAC boundaries, and splitting it later means migrating resources. ② “Prod and dev need different management groups”: CAF explicitly advises against this. Put them in different subscriptions under the same management group. ③ “Application teams can be granted Owner on the landingzones management group”: do not grant workload teams access at the management group level. Grant it only on their subscription or resource group.

Responsibilities split between platform and workloads

Platform landing zone (platform team) sub-alz-managementlaw-alz-mgmt-cc sub-alz-connectivityvnet-hub-cc 10.0.0.0/16 sub-alz-identityDomain controllers / Entra DS security subscriptionSentinel + management group hierarchy + policies + vending pipeline Provides: connectivity, DNS, logs, identity, guardrails Workload landing zone (myapp team) sub-lz-corp-myappprod · management group corpvnet-spoke-myapp-cc sub-lz-corp-myapp-devdev · also in corpSame set of policies The team has Contributor / a custom role on the subscription The Flask myapp (port 5000) runs in the spoke Consumes platform services: hub egress, private DNS, logs Peering
Figure 3-1: the platform team provides the roads, water and power, and workload teams run their own subscriptions

Subscription vending pipeline

Request / PR Validate + approve aliases APICreate subscription Place incorp management group Subscription-level RBAC Spoke + peeringBudget + tags Hand over to team
Figure 3-2: the moment a subscription is placed in a management group, policy inheritance takes effect, so “placing it in the management group” must happen before handover

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.

Ready.
$ # waiting for requests…

Core commands

CommandPurposeNotes
az account alias createCreate a subscription programmatically through the alias APIComes from the account extension; requires permissions on the EA / MCA / MPA billing scope
az account alias show/listView aliases and their corresponding subscription IDsAn alias is the name of the “creation request”, not the subscription name
az account management-group subscription addPut a subscription into a management groupRequires subscription Owner + write permission on the target management group
az consumption budget create / az costmanagementBudgetBudget 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)

Write the vending request (in YAML; the vending pipeline in hour 5 reads the same structure):
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).

Choose the type: myapp is an internal Flask app, reachable only from the company network, and it needs the local database through the hub → corp. If it is a public website that does not need to connect to the company network → online.
Single-subscription fallback: if you only have one subscription, write down the resource group mapping:
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
(Optional, if you have EA/MCA permissions) create a real subscription with 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
Command-line exercises
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
Scenario analysis
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

▶
Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules
English · the subscription democratization video recommended on the CAF design principles page · verified with the YouTube oEmbed endpoint

Official documentation

Video storyboard script (about 75 seconds)

Shot 1 · 0–25s
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.
Shot 2 · 25–55s
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.
Shot 3 · 55–75s
On screen: dev and prod subscriptions sit side by side under the same management group.
Narration: subscriptions separate environments, not management groups.
Or score ≥ 70% on the quiz

Module 4 · Management group hierarchy: intermediate root, Platform, Landing Zones, Sandbox

21:00 – 28:00 · 12 management groups, 4 levels deep: policies and permissions flow down this tree
7 minutesALZ library platform/alz 2026.11.0Adds security and local★★★★★
Learning goals
  • 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.
Prerequisites: Module 3. Importance: ★★★★★

What: the ALZ default hierarchy (defined by the ALZ library alz architecture)

IDDisplay nameParentPurpose
alzAzure Landing ZonesTenant Root GroupIntermediate root: the parent of all ALZ management groups. It carries global policies, so you don't assign directly on the tenant root
platformPlatformalzThe parent of the platform child management groups; carries common platform policies
securitySecurityplatformSecurity / SIEM subscriptions (Sentinel, syslog collectors), recently added
managementManagementplatformManagement subscriptions for Log Analytics, automation and similar
connectivityConnectivityplatformHub / Virtual WAN, firewalls, private DNS zones
identityIdentityplatformDomain controllers / Entra Domain Services
landingzonesLanding zonesalzThe parent of all workload landing zones; carries guardrails that are independent of any particular workload
corpCorplandingzonesInternal workloads that connect to the company network through the hub
onlineOnlinelandingzonesWorkloads that may be directly internet-facing, or that do not need a VNet
localLocallandingzonesAzure Local (hybrid) clusters and their workloads, recently added
sandboxSandboxalzExperimental subscriptions, isolated from corp and online, with looser policies
decommissionedDecommissionedalzSubscriptions 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 alz keeps the scope of impact under control.
  • Later, you can build a second hierarchy beside it under the root (for example, alz-canary to 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 notScopes on 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; sandbox is 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

CapabilityManagement groupSubscriptionResource groupService groupTag
Assignments inherit downward✓✓✓✗✗
Consolidate assignments, reduce duplication✓✓✓✗Usable as a policy condition
Group and share resources across scopes✗✗✗✓Not a first-class grouping
Common misconceptions ① “An Allow assignment on corp overrides a Deny on alz.” Azure Policy has no “allow” override. Multiple assignments stack, and any single Deny blocks the request. ② “You can reference a management group by its display name.” The CLI and the assignableScopes of custom RBAC roles both require the ID. ③ “The change takes effect right after a move.” The hierarchy cache can take up to 30 minutes, and evaluation also takes time.

ALZ default management group hierarchy

Tenant Root Group (tenant ID) alz · Azure Landing Zones platform landingzones sandbox decommissioned security management connectivity identity corp online local sub-lz-corp-myapp → corp Hierarchy depth: root + 3 management group levels (maximum 6 levels, excluding the root and subscriptions) Set the default management group to sandbox Platform subscriptions in their proper places
Figure 4-1: 12 management groups. security and local were added to the default architecture in recent years.

Inheritance: a subscription's effective assignments = the union of all assignments along its path

alz17 assignments landingzones53 assignments corp5 assignments sub-lz-corp-myappEffective: 75 assignments Figures come from the archetype definitions in ALZ library 2026.11.0 (number of policy assignments, not number of policy definitions)
Figure 4-2: If the same subscription moves to online, its effective assignments become 17 + 53 + 0 = 70. If it moves to sandbox, they become 17 + 1 = 18.

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.

Subscription sub-lz-corp-myapp is currently in Tenant Root Group, with 0 effective ALZ assignments.
$ az account management-group subscription show-sub-under-mg --name <tenant-id>

Core commands

CommandPurposeKey parameters
az account management-group createCreate management group--name (ID) --display-name --parent (parent ID)
az account management-group showView management group--expand --recurse shows the entire subtree
az account management-group entities listLists all management groups and subscriptions in a flat listUseful for script comparisons
az account management-group subscription add/removeMove subscription--name target management group --subscription
az account management-group hierarchy-settings create/updateDefault management group, require authorization--name <tenant ID> -m <management group resource ID> -r true
az account management-group updateChange 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)

View the root management group and its children (before Module 7, only subscriptions appear here):
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-...
Check the permissions needed to move a subscription: do you hold Owner directly on the subscription, or do you inherit it from the root?
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.

(recommended) Turn on “require authorization”: this stops other users from creating management groups under the root at will. Set the default management group after Module 7 creates 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
Cleanup: You can keep this setting. To restore the defaults, run 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.

Command-line exercise
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
Scenario analysis question
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

▶
Azure Landing Zones Overview — John Savill's Technical Training
English · The management group hierarchy section still applies, but it does not include the security and local management groups added after 2024 · Verified with YouTube oEmbed

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)

Shot 1 · 0–30s
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.
Shot 2 · 30–65s
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.
Shot 3 · 65–90s
Visual: A clock icon shows 30 minutes.
Narration: The hierarchy is cached, and evaluation takes time. After a move, don't rush to retry.
Or score ≥ 70% on the quiz

Module 5 · Azure Policy overview: ALZ default policies and Deny / DINE

28:00 – 35:00 · Policy is the “autopilot” of the landing zone: it blocks, it shows, and it fixes
7 minALZ library: 149 definitions · 44 policy setsDeep dive in hour 2★★★★★
Learning objectives
  • 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.
Prerequisite: Module 4. Importance: ★★★★★

What: the four objects

ObjectWhat it isExample in ALZ
Policy definitionA rule: an if condition plus a then effect, with optional parametersDeny-MgmtPorts-From-Internet (custom), Allowed locations (built-in)
Policy set (initiative)A group of definitions with shared parametersDeny-PublicPaaSEndpoints (45 definitions), Deploy-Private-DNS-Zones (59 definitions)
AssignmentBinds a definition or policy set to a scope, sets its parameters, and optionally sets a managed identityAssignment named Deny-Public-Endpoints on corp
ExemptionExempts 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

EffectWhen it appliesResultExample ALZ default assignment (management group)
DenyBefore a create or update request reaches the resource providerRequest is rejected with 403 RequestDisallowedByPolicyDeny-Classic-Resources (alz), Deny-Storage-http (landingzones)
DenyActionDelete requestBlocks deletion of protected resourcesDenyAction-DeleteUAMIAMA (platform)
AuditAt request time and on periodic evaluationAllowed, but recorded as non-compliantAudit-TrustedLaunch (alz), Audit-PeDnsZones (corp)
AuditIfNotExistsAfter the resource is created, checks whether the related resource existsNon-compliant if it does not existMany checks in the MCSB policy set (alz)
DeployIfNotExists (DINE)After the resource is created, checks related resourcesIf the related resource is missing, deploys the template using the assignment's managed identityDeploy-AzActivity-Log, Deploy-Diag-LogsCat (alz), Deploy-Private-DNS-Zones (corp)
ModifyModifies properties or tags at request time. For existing resources, a remediation task is needed.Rewrites the request, then allows itEnable-DDoS-VNET (connectivity, landingzones)
AppendAppends fields at request timeAllowed after appending— (newer policies mostly use Modify)
DisabledNot evaluatedOften used as a parameterized “switch”Turns off a specific sub-policy when needed
ManualNo automatic evaluationCompliance status is attested manuallyManual controls in regulatory compliance policy sets

ALZ default assignment distribution (ALZ library 2026.11.0)

Management groupAssignment countRepresentative assignments
alz17Deny-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
platform40DenyAction-DeleteUAMIAMA, VM / VMSS / Arc monitoring and change tracking (DINE), Enable-AUM-CheckUpdates, Enforce-ASR, per-service guardrails Enforce-GR-*
landingzones53Deny-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-*
corp5Deny-Public-Endpoints, Deny-Public-IP-On-NIC, Deny-HybridNetworking, Deploy-Private-DNS-Zones, Audit-PeDnsZones
online / management / security0Inherits from the parent only
identity4Deny-MgmtPorts-Internet, Deny-Public-IP, Deny-Subnet-Without-Nsg, Deploy-VM-Backup
connectivity / local1 / 1Enable-DDoS-VNET / Enforce-ALDO-Services
sandbox / decommissioned1 / 1Enforce-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-scan to trigger an on-demand scan of a subscription or resource group (asynchronous).
Common misconceptions ① “Audit blocks deployments.” It doesn't. It only records. ② “DINE immediately fixes all old resources.” It triggers automatically only on newly created or updated resources. Existing resources need a remediation task. ③ “Setting the effect to Disabled on a child management group turns off the parent's Deny.” The parent assignment still applies. Use an exemption, or change the parent assignment's parameters. ④ “Every resource under Microsoft.Resources is evaluated.” Apart from subscriptions and resource groups, resources under this provider are designed to be exempt from evaluation.

How the four objects relate

Policy definitions ×Nif … then effect Policy setShared parameters Assignment @ management groupParameters · identity · enforcementMode ExemptionWaiver / Mitigated Managed identity+ role assignments (DINE/Modify) Remediation taskHandles existing resources Definitions can also be assigned directly (without a policy set)
Figure 5-1: ALZ's definitions and policy sets are deployed on alz (the intermediate root). Assignments are spread across the management groups.

The order in which a request passes through the policy engine

PUT request→ ARM Skipped if Disabled Append / Modify Deny Audit Resource providerCreated successfully AuditIfNotExistsDeployIfNotExists Any Deny match returns 403, and the later steps do not happen
Figure 5-2: Evaluation order (see hour 2 for details). Deny applies during the request stage. DINE and AINE apply after the resource is created successfully.

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.

Ready.
$ # Waiting for request…

Core commands

CommandPurposeKey parameters
az policy definition list/showView definition--management-group looks up custom definitions. Use the GUID for built-in definitions.
az policy set-definition listView policy set--management-group alz
az policy assignment createAssignment--policy/--policy-set-definition --scope --params --enforcement-mode --mi-system-assigned --location
az policy state summarize / listCompliance summary / details--management-group, --filter
az policy remediation createRemediate existing resources--policy-assignment
az policy exemption createExemption--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)

Download the archetype definitions for the matching ALZ library version:
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
Count the assignments in each archetype:
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
View the effect parameter of one assignment:
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"
}
Think about it: Why does 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.

Command-line exercise
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 table
2. 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"
Scenario analysis question
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)

Shot 1 · 0–30s
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.
Shot 2 · 30–60s
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.
Shot 3 · 60–90s
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.
Or score ≥ 70% on the quiz

Module 6 · Deployment options: portal accelerator, Bicep, and Terraform (ALZ IaC Accelerator)

35:00 – 42:00 · One ALZ library, three ways to deliver it: click through a wizard, generate a pipeline, or write your own modules
7 minavm-ptn-alz 0.23.0 · alz provider 0.22.1Classic ALZ-Bicep archived 2027-02-16★★★★☆
Learning objectives
  • 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, the Deploy-Accelerator command, and the prerequisites.
  • Read the minimal Terraform usage: the library_references of the alz provider and the three required inputs of the avm-ptn-alz module.
  • Know which implementations are retired: classic ALZ-Bicep and Terraform caf-enterprise-scale.
Prerequisites: Basic Terraform or Bicep, and OIDC deployment identity. Importance: ★★★★☆

What: current deployment options (2026-11)

OptionWhat it isStatusBest 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 recommendedMost organizations
Terraform AVM: Azure/avm-ptn-alz/azurerm + Azure/alz providerThe 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 AVMThe default Bicep option in the AcceleratorTeams that prefer Bicep
Portal accelerator (aka.ms/alz/portal)A “Deploy to Azure” graphical wizard that deploys management groups, policies, and more using preset configurationAvailable. 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-BicepLegacy Bicep module repositoryRemoved from the Accelerator on 2026-02-16. Fixes continue for 12 months, then archived on 2027-02-16Only for migrating existing deployments
Terraform caf-enterprise-scaleLegacy Terraform modulesDeprecated. Repository archived 2026-09-15. Migration guide: aka.ms/alz/tf/migrateOnly for migrating existing deployments

The four phases of the IaC Accelerator

  1. 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.
  2. 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.
  3. Phase 2: Bootstrap: Run Install-PSResource -Name ALZ (or Update-PSResource -Name ALZ if already installed), then run Deploy-Accelerator to 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.
  4. 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 ref and 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-alz and the related AVM pattern modules directly.
  • Still using classic ALZ-Bicep or caf-enterprise-scale → Create a migration plan and finish it before 2027.
Common misconceptions ① “The portal accelerator has been discontinued.” It hasn't, but Microsoft explicitly does not recommend long-term use. ② “The Accelerator only supports GitHub.” It also supports Azure DevOps and a local file system. ③ “avm-ptn-alz deploys the hub network and Log Analytics.” It only handles management groups, policies, and roles. Management and connectivity resources are handled by other AVM pattern modules, which are combined in the Accelerator's starter code. ④ “The ALZ library version upgrades automatically with the module version.” The library version is pinned separately by library_references.ref in the provider.

Three approaches, one library

Azure-Landing-Zones-Libraryplatform/alz/2026.11.0 (architecture · archetypes · policies) Portal acceleratorGraphical wizard · one-time deploymentHard to upgrade IaC AcceleratorALZ module · Deploy-AcceleratorRepository + pipelines + identity Use AVM modules directlyavm-ptn-alz / Bicep AVMEmbed in your own platform code Terraform starter code = avm-ptn-alz + AVM pattern modules for management, connectivity, and so on
Figure 6-1: All current implementations use the ALZ library as the “single source of truth.”

IaC Accelerator: four phases

Phase 0: PlanLanguage · VCS · subscriptions Phase 1: PrerequisitesTools · permissions · subscriptions Phase 2: BootstrapDeploy-Accelerator Phase 3: RunChange code → PR → pipeline
Figure 6-2: After Phase 2, every change to the platform landing zone should go through a PR and the pipeline.

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.

Please answer the questions above.
$ # Waiting for selection…

Core commands

CommandPurposeNotes
Install-PSResource -Name ALZInstall the IaC Accelerator moduleRun in pwsh 7.4+. If already installed, use Update-PSResource -Name ALZ
Deploy-AcceleratorStart the interactive wizard and complete the bootstrapRunning it with no parameters opens the wizard
terraform init / plan / applyUse avm-ptn-alz directlyThe first init downloads the alz provider. plan downloads the library to .alzlib
az deployment mg createBicep 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)

Note: This lab runs only up to 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.
Create the project: Save the 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!
Sign in and plan (sign in to the CLI with the sandbox tenant. AzAPI and the alz provider read Azure CLI credentials by default):
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
Check the library cache: Run ls .alzlib, find alz.alz_architecture_definition.json, and confirm that the 12 management groups match Module 4.
Cleanup: 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.

Command-line exercise
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 }
Scenario analysis question
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

▶
Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules
English · Official AVM channel (the channel also publishes ALZ and AVM content) · Verified with YouTube oEmbed

No verified video specifically demonstrating the 2026 IaC Accelerator was found. Please refer to the official documentation below.

Official documentation

Video storyboard (about 90 seconds)

Shot 1 · 0–25s
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.
Shot 2 · 25–65s
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.
Shot 3 · 65–90s
Visual: The classic ALZ-Bicep and caf-enterprise-scale icons are stamped “Archived.”
Narration: The old implementations are retired. New projects use AVM directly.
Or score ≥ 70% on the quiz

Module 7 · Hands-on: build the management group hierarchy and your first policy assignment in a sandbox tenant

42:00 – 50:00 · 12 commands to build the tree, 1 command to attach a policy, and 1 rejected deployment to prove it really works
8 minCost: 0 (no billable resources)Sandbox tenant only★★★★★
Learning objectives
  • 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. On landingzones, 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.
Prerequisites: Modules 4–5, and the “Preparation” page completed. Importance: ★★★★★

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) under corp.
  • 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 parameters canadacentral and canadaeast.
    • On landingzones: Require a tag on resource groups (96670d01-0a4d-4649-9c89-2d3abc0a5025), with parameter tagName=costCenter and enforcementMode=DoNotEnforce.

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

  1. 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).
  2. 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.
  3. 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

Step4 subscriptionsOnly 1 subscription
Place subscriptionsPlace the management, connectivity, and identity subscriptions in their matching management groups. Place application subscriptions in corp.Place the only subscription in corp
Policy verificationTest in an application subscriptionTest in that same subscription
CleanupMove all subscriptions back to the rootSame as left
Common misconceptions ① “Allowed locations also blocks global resources.” The built-in policy excludes the 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

Tenant Root (default MG → sandbox) alzAllowed locations ×2 (Deny): canadacentral, canadaeast platform (4 child MGs) landingzonesRequire tag costCenter (DoNotEnforce) sandbox decommissioned corp ◀ subscription online local
Figure 7-1: The subscription sits under corp and inherits the Deny from alz and the DoNotEnforce assignment from landingzones.

Paths of the two test requests

az group create -l eastus Allowed locations for RG → Deny 403 RequestDisallowedByPolicy az group create -l canadacentral (no tag) Require tag (DoNotEnforce) → not rejected 201 Created · compliance state NonCompliant
Figure 7-2: Deny blocks during the request stage. DoNotEnforce only records.

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.

Ready: the tenant has only the Tenant Root Group and one subscription.
$ az account show --query tenantId -o tsv

Commands used in this lab

CommandPurposeNote
az account management-group create --name --display-name --parentCreate management group--parent takes the parent ID. If omitted, it goes under the root.
az account management-group subscription addMove subscriptionMove back to root: subscription remove, or add to the tenant ID
az policy assignment createAssign policy--scope, --policy, --params, --enforcement-mode
az policy assignment deleteDelete assignmentRequires the same --scope
az account management-group deleteDelete management groupMust 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)

Double-check: az account show --query tenantId -o tsv must return the sandbox tenant ID.
1. Create the 12 management groups top-down:
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.

2. Hierarchy settings: default management group sandbox, require authorization:
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
3. Move the subscription into corp and verify its ancestor chain:
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.

4. Assign policies:
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 table
5. Verify the Deny (the assignment takes effect after about 5 minutes. Testing too early may still succeed):
az 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",...}}]'.
6. Verify DoNotEnforce: A resource group in an allowed region without a tag can be created, but it is recorded as non-compliant:
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
7. Cleanup (if you continue to hour 2, you can keep the hierarchy and delete only the test resource group):
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.

Command-line exercise
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 DoNotEnforce
2. 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 table
Scenario analysis question
After 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

Video storyboard (about 100 seconds)

Shot 1 · 0–30s
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.
Shot 2 · 30–70s
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.
Shot 3 · 70–100s
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.
Or score ≥ 70% on the quiz

Module 8 · Readiness review and introduction to troubleshooting

50:00 – 60:00 · Use a checklist and a few Resource Graph queries to answer “Is our landing zone really ready?”
10 minAzure/review-checklists: ALZ checklist GA★★★★☆
Learning objectives
  • 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.
Prerequisites: Modules 1–7. Importance: ★★★★☆

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 areaCheck itemHow to check automatically
Billing and tenantWho can create subscriptions? Are there orphaned subscriptions (directly under the root)?Resource Graph: managementGroupAncestorsChain[0] is the tenant root
Resource organizationThe 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 accessNo Owner or Contributor for workload teams on the management groups; elevated access at the root has been revokedauthorizationresources table
GovernanceKey assignments are in place on alz; every DoNotEnforce assignment has a planned switch date; every exemption has an expiry datepolicyresources table
ManagementActivity logs and diagnostic logs flow to a central Log Analytics workspaceDeploy-AzActivity-Log compliance state
SecurityDefender for Cloud plans are enabled as requiredDeploy-MDFC-Config-H224 compliance state
NetworkingIP plan is recorded, with no overlapsVNet address space query (hour 4)
Platform automationAll platform changes go through IaC and pull requests; deployment identities use OIDCWhether 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

  1. Confirm the context first: tenant, subscription, and identity are correct. Many "strange" problems come from being signed in to the wrong tenant.
  2. Read the full error: for AuthorizationFailed, look at the action and scope; for RequestDisallowedByPolicy, look at the assignment name.
  3. Confirm the level: what is the subscription's current ancestor chain? Note the 30-minute cache.
  4. 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.
Common misconceptions (1) "100% compliance means ready": places with no assignments also show 100%, so first check whether the expected assignments exist. (2) "One review is enough": platforms drift. (3) "Global Administrator can manage Azure resources by default": you must elevate access first, and that is a temporary measure.

Readiness review process

Import checklistreview-checklists Automated checksResource Graph Manual confirmationProcess · roles · documents Scoring and gapsHigh / Medium / Low Remediation backlogPR + ADR Repeat each quarter and after each library upgrade
Figure 8-1 The review is a cycle, not a one-time sign-off

Error → first diagnostic command

AuthorizationFailed … managementGroups az role assignment list --scope <mg-id> --include-inherited RequestDisallowedByPolicy Assignment name in the error → az policy assignment show DINE stays NonCompliant Assignment identity.principalId → az role assignment list --assignee Portal shows the old parent / compliance not updated entities list (the API is the source of truth) · trigger-scan · wait for the cache
Figure 8-2 The first command for each of the four common beginner problems

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.

No items ticked yet.
Top remediation: —

Review queries (Resource Graph)

CheckTableVerdict
Orphaned subscriptionsresourcecontainersThe number of subscriptions whose parent is the tenant root should be 0
Key assignments existpolicyresourcesNumber of assignments on alz matches expectations
DoNotEnforce assignmentspolicyresourcesEach one has an ADR and a switch date
Exemptions expiredpolicyresourcesExemptions with an empty expiresOn need review
Authorizations on management groupsauthorizationresourcesThere should be no workload team access
Non-compliant resourcespolicyresources (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)

Starting point: this lab works best before Module 7, step 7 cleanup. If cleanup is already done, first re-run steps 1–4 of Module 7.
Run the four review queries (paginated commands) and save the results:
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
Compare with the Module 1 baseline:
jq '.count' ../baseline-policy.json assignments.json
0
3
Check the level settings and elevated access:
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.

Fill in the scorecard (animation tab), and append the "Top remediation" list to design-decisions.md as input for Hours 2–4. Cleanup: this lab is read-only.
(Optional) Import the official checklist: download the Azure Landing Zone checklist from 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 table
Command-line exercises
1. 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 /
Scenario analysis
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

Video storyboard (about 80 seconds)

Shot 1 · 0–25s
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.
Shot 2 · 25–55s
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.
Shot 3 · 55–80s
On screen: the troubleshooting tree branches from "symptom" to leaves.
Narration: troubleshooting starts from four directions: context, the full error, the level, and timing.
Or score 70% or higher on the Quiz tab

Command cheat sheet

Every command and key fact in this hour, on one page
Verified on 2026-11-18

Key facts

TopicFact
CAF seven phasesStrategy → Plan → Ready → Adopt → Govern → Secure → Manage (Ready produces the landing zone)
Eight design areasBilling and Entra tenants, identity and access, resource organization, network topology and connectivity (environment); security, management, governance, platform automation and DevOps (compliance)
Five design principlesSubscription 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 limits10,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 timingNew assignments take about 5 minutes to apply; resource results about 15 minutes; subscription move evaluation about 30 minutes; standard cycle 24 hours
Deployment optionsIaC 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 subscriptionsManagement 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

EffectOne line
DenyRejected at the request stage, 403 RequestDisallowedByPolicy
DenyActionBlocks deletion of protected resources
Audit / AuditIfNotExistsAllowed through and recorded as non-compliant; non-compliant if the related resource does not exist
DeployIfNotExistsAfter successful creation, deploys missing related resources; needs a managed identity and roles
Modify / AppendModifies properties or tags at the request stage; existing resources are handled by remediation tasks
Disabled / ManualNot evaluated / manual attestation

Capstone lab + final quiz

Design and build a minimal ALZ skeleton for the fictitious company Northwind Maple
About 30 minutesCost: 0Sandbox tenant only

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.

1. Design decisions: in 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).
2. Hierarchy: using the CLI or Terraform (pick one), create the 12 default management groups. Set the default management group to sandbox and turn on "require authorization".
3. Place subscriptions: put one subscription in 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.
4. Policy: on alz, assign Allowed locations and Allowed locations for resource groups (Deny). On landingzones, assign Require a tag on resource groups (costCenter) in DoNotEnforce mode.
5. Verify: a resource group in eastus is rejected; a resource group without the tag is created successfully but is non-compliant; use Resource Graph to confirm the subscription's ancestor chain.
6. Review: run the four queries from Module 8, fill in the scorecard, and list the top three remediation items.
7. Plan the move to IaC: write a plan of no more than 10 lines that says which language and VCS you would pick from the IaC Accelerator, and how Terraform will take over the management groups created by the CLI (hint: import blocks, or clean up and rebuild).
8. Cleanup: follow Module 7, step 7 to clean up, and revoke the elevated access.

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)

  1. Why does ALZ have an intermediate root alz instead of placing policies directly on the Tenant Root Group?
  2. The online management group has no direct assignments by default. Does that mean workloads in online have "no guardrails"?
  3. How do DINE and Deny differ in their position in the request lifecycle? What prerequisite does each one need?
  4. If the organization insists on creating management groups by dev / prod, how would you explain the cost and propose an alternative?
  5. What are the trade-offs between the IaC Accelerator and using avm-ptn-alz directly?
  6. Which review queries would you put into a pipeline that runs daily? Why?

Sources and versions

All facts were verified on 2026-11-18 against the sources below

Source

TopicSourceVerified on
CAF seven phasesCloud Adoption Framework for Azure (page dated 2026-08-26)2026-11-18
Landing zone definition, platform and workload landing zonesWhat is an Azure landing zone?2026-11-18
Eight design areasAzure landing zone design areas2026-11-18
Five design principlesDesign principles2026-11-18
Management group hierarchy (CAF)Management groups2026-11-18
Management group limits, root, move permissions, cacheOrganize your resources with management groups2026-11-18
Hierarchy settings CLIaz account management-group hierarchy-settings2026-11-18
ALZ library version, architecture definitions, archetypes and assignmentsAzure-Landing-Zones-Library releases (platform/alz/2026.11.0, 2026-11-06), and architecture_definitions, archetype_definitions, policy_assignments under that tag2026-11-18
Deployment optionsPlatform landing zone implementation options2026-11-18
IaC Accelerator prerequisites, subscriptions, bootstrapPrerequisites · Platform subscriptions · Bootstrap2026-11-18
avm-ptn-alz 0.23.0, alz provider 0.22.1, vending moduleRegistry: avm-ptn-alz · Registry: alz provider · Module README2026-11-18
Classic ALZ-Bicep deprecation timelineAzure/ALZ-Bicep2026-11-18
caf-enterprise-scale archiveAzure/terraform-azurerm-caf-enterprise-scale2026-11-18
Policy evaluation timing, on-demand scansGet policy compliance data2026-11-18
Built-in policy IDsAzure/azure-policy built-in definitions2026-11-18
Review checklistAzure/review-checklists2026-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:

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-Accelerator are not used in this hour.
  • The resource addresses and counts in the terraform plan output 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.