Azure Landing Zone Hour 8 (optional): 50 production problems + 50 interview questions

Turn the first seven hours into two skills. When you see an ARM, Entra or networking error, say which layer it is stuck in (hierarchy, policy, identity, network or automation) and which command to run first. In an interview, explain in two minutes why ALZ is designed this way
A: 50 production problemsB: 50 interview questionsALZ library 2026.11.0 · avm-ptn-alz 0.23.0Verified on 2026-11-18
Do not run experiments in a production tenantThe reproduction labs in this hour create policy denials, missing permissions and peering failures. Run them only in a dedicated sandbox Entra tenant (or a company lab tenant). When you need Owner on the root management group, get it by elevating access through "Access management for Azure resources" in Entra, and revoke it right after the lab.
Overall learning goals
  • Read the actual error text (AuthorizationFailed, RequestDisallowedByPolicy, LinkedAuthorizationFailed, AADSTS700213, VnetAddressSpacesOverlap, DINE remediation failure, Terraform state lock …) and decide which layer it belongs to: management groups / subscriptions / policy, identity and access, networking and DNS, or management / automation / migration. Then name the first diagnostic command.
  • Understand the mechanism behind each problem: the ARM request pipeline (authentication → RBAC → policy effect order → resource provider → DINE/AINE after-the-fact evaluation); management group inheritance and ARM hierarchy caching; managed identities plus remediation tasks; issuer/subject/audience matching in workload identity federation; UDR → firewall → rule evaluation; private DNS zone links and Private Resolver forwarding.
  • In a sandbox tenant, be able to reproduce, diagnose, fix and clean up 14 typical faults. Most of them fail during ARM validation or policy evaluation, so they cost nothing.
  • Be able to answer the 50 ALZ interview questions in the structure "30-second answer → mechanism → commands/configuration → production experience", and handle common follow-up questions and scenario design questions. Use mock interviews (timed, self-rated) to measure how much you have mastered.

1-hour timetable

#TimeModuleCore contentAnimations · interactionsLab
0Before classInstructions and fault lab environmentSandbox tenant, alz hierarchy, sub-lz-corp-myapp; single-subscription fallback; costs and cleanupEnvironment self-checkVariables, elevated access, diagnostic tools
100–08A · Management groups, subscriptions and policyProblems 1–12: root MG access, subscription aliases, default MG, moving subscriptions, hierarchy caching, depth limit, deleting MGs, reading Deny, Indexed mode, assignment limits and naming, tag Deny, DenyActionARM pipeline simulator for one requestReading Deny · resource group location · assignment name 24 characters · DenyAction
208–16A · Identity and accessProblems 13–25: authorization delay, PrincipalNotFound, LinkedAuthorizationFailed, DataActions, moving breaks custom roles, PIM activation and licensing, enforced MFA, CA blocking emergency accounts, AADSTS700213/700212/70021, subscription transfer, Lighthouse"Access denied" troubleshooting decision treeFederated credentials · authorization without directory lookup · custom roles
316–24A · Networking and DNSProblems 26–38: address overlap, peering initiated, no connectivity between spokes, firewall default deny, asymmetric routing, default outbound access, non-AZ gateways, Deny-HybridNetworking, private endpoint resolving to a public IP, no private DNS zone group, on-premises domain names, NSG policy, DDoS Modify"Can't connect / name resolution fails" decision treePeering overlap · effective routes · private DNS
424–30A · Management, automation and migrationProblems 39–50: AMA/DCR DINE, workspace placeholders, diagnostic setting conflicts, AMBA not notifying, Defender cost, backup, state locks, library pull, accelerator, library upgrade, brownfield onboarding, ARG throttlingPlatform pipeline failure simulatorRemediation tasks · state locks · dry run before migration
530–37B · Architecture and design areasInterview 1–13Mock interview2 scenario questions
637–44B · Governance and identityInterview 14–25Mock interview2 scenario questions
744–52B · Networking and operationsInterview 26–38Mock interview3 scenario questions
852–60B · Platform engineering and scenario designInterview 39–50Mock interview3 scenario questions
—After classQuick reference · Capstone lab50 entries of "error → first command → fix"; 50 flashcards; 8 mixed faults; full mock interviewFull mock interviewFinal quiz, 12 questions

Knowledge coverage matrix

Topicm1m2m3m4m5m6m7m8
Management group hierarchy / subscription placement / hierarchy caching●●—●●——●
Azure Policy effects / remediation / exemptions●●●●—●●●
RBAC / custom roles / PIM / CA / MFA●●———●—●
Workload identity federation / managed identities / Lighthouse—●—●—●—●
Hub-spoke / vWAN / IPAM / firewall / hybrid connectivity——●—●—●●
Private Link / private DNS / Private Resolver——●———●●
Logs / AMA / AMBA / Defender / backup / cost———●●●●—
IaC Accelerator / Terraform / Bicep / pipelines—●—●●●—●
Subscription vending / brownfield migration / platform as a product●——●●——●

Not covered in this hour (where to learn it)

  • Generic Terraform errors (state, provider dependencies, circular dependencies) → Terraform course, hour 8. This hour covers only the alz provider, avm-ptn-alz, and platform pipeline problems that appear specifically on ALZ.
  • OIDC pipeline details for GitHub Actions / Azure Pipelines → GitHub course, hour 3, Azure DevOps course, hour 3.
  • AKS cluster faults inside an application landing zone (node bootstrap, outbound FQDNs, private cluster DNS) → next course AKS 8 hours, especially AKS hour 8.
  • Linux troubleshooting at the VM level → Linux course, hour 3.

How to use this hour

When troubleshooting (Part A)
  • Open the overview of the relevant module and paste the most distinctive word from the error (such as RequestDisallowedByPolicy, Linked, AADSTS, Overlap, state lock) into the filter box.
  • Click a table row to jump to the problem details, then follow "diagnose → compare with output → fix".
  • Not sure which layer it is in? Use the animated paged decision trees and simulators.
Before the interview (Part B)
  • Start with the overview, and pick out the questions you are unsure about, by difficulty.
  • Mock interview: random questions, 2-minute countdown, answer first and then check, self-rate as "answered / partial / didn't know". Scores are saved in this browser.
  • Answer structure: one-sentence conclusion → mechanism → commands/configuration → pitfalls you have hit.
After class
  • The quick reference is suited to printing and pinning up at your desk.
  • Capstone lab: 8 mixed faults + full mock interview (10 out of 50) + final quiz.
  • Each problem and interview question links back to the matching module in Hours 1–7, so you can revisit it.

Entry structure for Parts A and B

Part A · 50 production problems

Error text or symptom → root cause (mechanism level) → diagnostic command → sample expected output → fix → prevention and best practices → see Hour N. Error text comes from Microsoft Learn documentation (Azure Policy / management group / RBAC / Entra / networking troubleshooting pages) or from entries verified in Hours 1–7 of this course. Entries that cannot be verified word for word are marked "verify against your environment". Angle brackets and ellipses are placeholders.

Part B · 50 interview questions

Question → 30-second answer → deeper answer (mechanism, commands/configuration) → common follow-ups → bonus points → common wrong answers. Difficulty: BeginnerIntermediateAdvanced. Aimed at interviews for Senior Cloud / Platform Engineer and cloud architect roles.

Relationship to the first seven hours

CourseMost-referenced content in this hour
Hour 1: Concepts and hierarchyDesign areas and principles, platform / application landing zones, default management group hierarchy, default policies, deployment options and accelerators
Hour 2: Subscriptions and governanceSubscription design and limits, naming and tags, Policy definition / assignment / effect order, remediation and exemptions, ALZ policy library versions, compliance and Resource Graph
Hour 3: Identity and accessTenant design, RBAC and ALZ custom roles, PIM, emergency accounts and CA, enforced MFA, workload identity federation, managed identities and Lighthouse
Hour 4: NetworkingHub-spoke and vWAN, IPAM and AVNM, Azure Firewall and UDR, VPN/ER, Private Link and private DNS, DDoS/WAF, corp/online network policies
Hour 5: Management and monitoringLog Analytics workspaces, AMA + DCR deployed through policy, AMBA, Defender for Cloud, Update Manager and backup, cost, activity log
Hour 6: AutomationIaC Accelerator, avm-ptn-alz and the alz provider, Bicep AVM and deployment stacks, platform pipelines, subscription vending, EPAC, version upgrades
Hour 7: Operations and deep troubleshootingBrownfield assessment and migration, deep policy troubleshooting, deep networking and DNS troubleshooting, sovereign landing zones, large-scale organizations, platform as a product
Version notes (verified 2026-11-18)ALZ library platform/alz/2026.11.0 (2026-11-06). 12 default management groups: intermediate root alz → platform (security, management, connectivity, identity), landingzones (corp, online, local), sandbox, decommissioned. Apart from the intermediate root, IDs have no prefix. Terraform: Azure/avm-ptn-alz/azurerm 0.23.0, Azure/alz provider 0.22.1. The old caf-enterprise-scale module was archived on 2026-09-15; classic ALZ-Bicep will be archived on 2027-02-16. The postponed deadline of 2026-07-01 for Azure enforced MFA phase 2 (write operations from CLI, PowerShell and IaC) has passed. Non-AZ VpnGw1–5 retire on 2026-09-30. All "expected output" blocks are examples; IDs, names and times will differ in your environment.

Module 0 · Instructions and fault lab environment

Before class · Reuse the sandbox tenant, the alz hierarchy and sub-lz-corp-myapp from the first seven hours, and "create faults" in the rg-lab8-* resource groups
10 minutes before classMost labs cost nothing
Module goals
  • Confirm that the sandbox tenant already has the alz management group hierarchy (the result of hour 1 module 7 or the hour 6 accelerator deployment), at least one application subscription, and the hub / spoke network from hour 4 (optional for the network labs).
  • Understand the cost model: most Part A faults fail during ARM validation or policy evaluation and create no resources. Only the effective routes lab in module 3 needs one small VM without a public IP.
  • Remember the safety rules: only create faults on the rg-lab8-* resource groups and on assignments and identities with the lab8- prefix. Clean up as soon as you finish, and revoke the elevated access.

Prerequisites

  • If you do not have the previous hour's results: follow Hour 1 module 7 to build the management group hierarchy with the CLI (at minimum alz → landingzones → corp, and sandbox), and put one subscription into corp. For the network labs, follow Hour 4 module 0 to build vnet-hub-cc / vnet-spoke-myapp-cc (you can skip the firewall).
  • Tools: Azure CLI (≥ 2.76 recommended, which handles the claims challenge for enforced MFA better), the resource-graph extension, PowerShell 7.4+ (for accelerator-related steps), Terraform ≥ 1.12 (optional for module 4), and jq.
  • Permissions: Owner on the root management group (or alz), obtained temporarily through "elevate access"; Owner on the subscription.
Fallback if you have only one subscription: put that subscription into corp and complete the module 1 and 3 labs with it. Steps that need "another subscription" (moving a subscription, cross-subscription peering) become reading the command output and the examples. Put platform resources (hub, DNS zones, workspace) in different resource groups of the same subscription. Hierarchy and policy behavior is unaffected.

Step 1: variables and self-check

TENANT_ID=$(az account show --query tenantId -o tsv)
SUB_LZ=$(az account list --query "[?name=='sub-lz-corp-myapp'].id" -o tsv); echo "SUB_LZ=$SUB_LZ"
LOC=canadacentral
az version --query '"azure-cli"' -o tsv
az extension add --name resource-graph --upgrade --yes
az graph query -q "resourcecontainers | where type=='microsoft.management/managementgroups' | project name, parent=tostring(properties.details.parent.name)" -o table
SUB_LZ=11111111-2222-3333-4444-555555555555
2.80.0
Name            Parent
--------------  ------------------------------------
alz             9f8e7d6c-0000-0000-0000-tenantroot01
platform        alz
landingzones    alz
corp            landingzones
online          landingzones
sandbox         alz
decommissioned  alz
…

Step 2: temporary elevated access + lab resource group

# Requires Global Administrator. Open it in the portal under "Microsoft Entra ID → Properties → Access management for Azure resources", or call REST
az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"
az account set -s $SUB_LZ
az group create -n rg-lab8-m1 -l $LOC --tags env=lab owner=me costCenter=CC-LAB workload=lab8

Write out the tags and location exactly as the course specifies, to avoid being blocked by the tag Deny or location policies assigned in hour 2. This is where problems #9 and #11 come from.

Step 3: common diagnostic tools

az monitor activity-log list --offset 2h --status Failed --query "[].{op:operationName.value,msg:properties.statusMessage}" -o table
az policy assignment list --disable-scope-strict-match --query "[].{n:name,scope:scope,mode:enforcementMode}" -o table
az role assignment list --all --assignee <objectId> --include-inherited -o table
az network watcher show-next-hop …     # module 3
az graph query -q "policyresources | where type=='microsoft.policyinsights/policystates' | summarize count() by tostring(properties.complianceState)"

Costs, risks and cleanup

ResourceEstimated cost (sample estimate; check the Azure pricing calculator)When to delete
Policy assignments, exemptions, role assignments, management groupsFreeAt the end of each lab
UAMI, VNets, peering, private DNS zonesBasically free (private DNS zones are billed per zone and per query volume, which is very low)End of module
vm-lab8-test (B1s, no public IP, optional for module 3)About US$0.01–0.02 per hourDelete immediately after the lab
Azure Firewall Basic (only if you built it in hour 4)Billed by the hour, noticeably more expensiveDelete when not needed. The labs in this hour do not require a firewall.
for rg in $(az group list --query "[?starts_with(name,'rg-lab8-')].name" -o tsv); do az group delete -n $rg --yes --no-wait; done
az policy assignment list --disable-scope-strict-match --query "[?starts_with(name,'lab8-')].id" -o tsv | xargs -r -n1 az policy assignment delete --ids
# Revoke the User Access Administrator that was obtained by elevating on the root "/"
az role assignment delete --assignee <your objectId> --role "User Access Administrator" --scope "/"

Link to the previous hour

  • The troubleshooting method from hour 7 (first locate the layer: ARM authentication → RBAC → Policy → resource provider → after-the-fact DINE) is reused in full here. Every problem is classified along this pipeline.
  • New prefixes in this hour: resource groups rg-lab8-*, policy assignments lab8-* (assignment names at management group scope must be ≤ 24 characters).

Self-check list

Module 1 · Part A: Management groups, subscriptions and policy (problems 1–12)

00:00 – 08:00 · Root management group access, subscription aliases and placement, moves and caching, hierarchy limits, reading Deny errors, policy modes, assignment limits, tags and DenyAction
8 minARM → RBAC → Policy → RP12 problems
Learning goals
  • Explain where a single ARM write request can stop: authentication (Entra token, MFA claim) → RBAC (scope and inheritance, linked scope) → Policy (disabled → append/modify → deny → audit → … → denyAction) → resource provider → after-the-fact AINE/DINE.
  • Read the assignment name, definition ID and scope from the error details of RequestDisallowedByPolicy, and decide whether to "fix the request, request an exemption, or fix the policy".
  • Remember the hierarchy hard limits and delays: depth of 6 levels; the ARM hierarchy cache lasts up to 30 minutes; after a subscription is moved into an MG, subscription-level evaluation takes about 30 minutes to complete; assignment names at management group scope are ≤ 24 characters; 200 assignments per scope.

Filter by keywords in the error (such as managementGroups, aliases, disallowed, depth, 24, denyAction). Click a row to jump to the matching entry in "Problem details".

#1 (AuthorizationFailed) … does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/<tenantId>'
(AuthorizationFailed) The client 'admin@contoso.onmicrosoft.com' with object id '<objectId>' does not have authorization to perform action 'Microsoft.Management/managementGroups/read' over scope '/providers/Microsoft.Management/managementGroups/<tenantId>' or the scope is invalid. If access was recently granted, please refresh your credentials.

Symptom: A Global Administrator's first ALZ deployment (the accelerator, az account management-group create, Terraform avm-ptn-alz) fails. The portal shows "Tenant root group", but you cannot create management groups or assign policies under it.

Root cause: Entra roles and Azure RBAC are two separate authorization systems. Nobody has access to the root management group by default. A Global Administrator can only add User Access Administrator on the root "/" to themselves by elevating access, and then assign Owner on the root MG or intermediate root to themselves (or to the deployment identity).

Diagnostic commands
az role assignment list --assignee <objectId> --scope "/providers/Microsoft.Management/managementGroups/$TENANT_ID" --include-inherited -o table
az role assignment list --assignee <objectId> --scope "/" -o table     # Whether access has been elevated
(empty): no role at any root scope
Fix
az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"
az role assignment create --assignee <objectId> --role Owner --scope "/providers/Microsoft.Management/managementGroups/$TENANT_ID"
az logout; az login --tenant $TENANT_ID     # Refresh the token, then retry
Prevention and best practices
  • Elevate only during bootstrap. Afterwards, narrow Owner to the intermediate root alz and hand it to the deployment identity (the accelerator's apply UAMI). People get PIM eligibility instead.
  • Record the elevation immediately, and revoke the UAA on the root "/" after the lab or bootstrap (both the activity log and the Entra audit log record it).

See Hour 1 module 1 · Hour 1 module 4 management group hierarchy · Hour 3 module 2 RBAC.

#2 Subscription vending fails: (AuthorizationFailed / BillingScopeNotFound) … 'Microsoft.Subscription/aliases/write'
(AuthorizationFailed) The client '<pipeline-identity>' … does not have authorization to perform action 'Microsoft.Subscription/aliases/write' over scope '/providers/Microsoft.Subscription/aliases/sub-lz-corp-myapp2' …
Or: (BillingScopeNotFound) … billing scope … not found / not accessible

Symptom: The subscription vending pipeline (avm-ptn-alz-sub-vending / Bicep version / az account alias create) fails at the step that creates the subscription, even though Azure RBAC shows Owner.

Root cause: Creating a subscription requires billing permissions, not Azure RBAC. EA needs the Enrollment account subscription creator role (or account owner) on the enrollment account. MCA needs the Azure subscription creator role on the invoice section (or Owner / Contributor on the billing account, billing profile or invoice section). A wrong billingScope string also produces a "not found" error, because EA and MCA use different formats.

Diagnostic commands
az billing account list --query "[].{name:name,type:agreementType}" -o table
az account alias show --name sub-lz-corp-myapp2 2>&1 | head -5
Fix
  • Have the billing administrator add the pipeline identity (the service principal or UAMI object) to the matching billing role. For EA, assign the SPN the enrollment account role via REST.
  • Spell billingScope according to the agreement type. EA: /providers/Microsoft.Billing/billingAccounts/<ea>/enrollmentAccounts/<id>. MCA: /providers/Microsoft.Billing/billingAccounts/<acc>/billingProfiles/<bp>/invoiceSections/<is>.
Prevention and best practices
  • Keep the vending identity separate from the platform apply identity. The vending identity needs only billing roles, plus permission to place subscriptions under the target MG.
  • In the vending module, also specify the target management group (for example corp), to avoid landing at the tenant root (#3).

See Hour 1 module 3 subscription democratization · Hour 6 module 5 subscription vending.

#3 New subscription appears under the Tenant Root Group, with no ALZ policies
name                 parent
-------------------  ------------------------------------
sub-lz-online-shop   9f8e7d6c-0000-0000-0000-tenantroot01   ← attached directly to the tenant root

Symptom: A team creates a subscription in the portal itself, or vending runs without a management group. The subscription is not bound by the policies and RBAC at alz and below (none of the 17 assignments on the intermediate root are inherited).

Root cause: A new subscription goes into the default management group, which is the tenant root if nothing is configured. ALZ policies are assigned at the intermediate root alz and its child MGs, and usually not on the tenant root.

Diagnostic commands
az graph query -q "resourcecontainers | where type=='microsoft.resources/subscriptions' | extend p=tostring(properties.managementGroupAncestorsChain[0].name) | where p=='$TENANT_ID' | project name, subscriptionId"
az account management-group hierarchy-settings list --name $TENANT_ID -o json
Fix
az account management-group subscription add --name sandbox --subscription <subId>   # Place it in sandbox first for evaluation
az account management-group hierarchy-settings create --name $TENANT_ID \
  -m /providers/Microsoft.Management/managementGroups/sandbox -r true

-m sets the default MG (sandbox is recommended, constrained by Enforce-ALZ-Sandbox). -r true requires write access at the root to create MGs.

Prevention and best practices
  • Subscriptions are created only through the vending process. The default MG points to sandbox. Use ARG to report daily on "subscriptions under the tenant root".

See Hour 1 module 3 · Hour 2 module 1 subscription placement.

#4 Subscription move fails: cannot move a subscription into a management group where you only have Contributor (you would lose Owner) / missing roleAssignments/write
(AuthorizationFailed) … does not have authorization to perform action 'Microsoft.Management/managementGroups/subscriptions/write' over scope '…/managementGroups/corp/subscriptions/<subId>' …
Portal: Cannot move subscription … the current user does not have permission … (moving would remove ownership)

Symptom: A platform engineer who has Owner inherited from the old parent is refused when dragging the subscription into corp.

Root cause: A move requires permissions in three places. On the subscription being moved: managementGroups/write, managementGroups/subscriptions/write, roleAssignments/write, roleAssignments/delete, and Microsoft.Management/register/action (for example, the built-in Owner role). On both the target parent and the current parent: managementGroups/write (Owner / Contributor / Management Group Contributor). If your Owner on the subscription is inherited from the current MG, you can only move it to an MG where you are also Owner. Otherwise you lose all ownership after the move. No permissions are needed when the tenant root is the source or the target.

Diagnostic commands
az role assignment list --assignee <me> --scope /subscriptions/<subId> --include-inherited --query "[].{role:roleDefinitionName,scope:scope}" -o table
az role assignment list --assignee <me> --scope /providers/Microsoft.Management/managementGroups/corp --include-inherited -o table
Role         Scope
-----------  ---------------------------------------------------------
Owner        /providers/Microsoft.Management/managementGroups/sandbox   ← inherited Owner
Contributor  /providers/Microsoft.Management/managementGroups/landingzones
Fix
  • Have the deployment identity that has Owner on alz perform the move (recommended: placement is written in IaC as subscription_placement). Or temporarily grant Owner directly on the subscription, then move it.
Prevention and best practices
  • Subscription placement is the job of the platform pipeline, not manual dragging. Changes go through a PR.
  • Before migrating, run the dry run described in #49.

See Hour 1 module 4 · Hour 7 module 2 subscription migration into the hierarchy.

#5 Subscription has been moved to corp, but the portal still shows the old parent / deny policy does not block
az account management-group show -n corp -e   → already includes the subscription
Portal "Management groups" page → the subscription is still under sandbox
Create a storage account with public access in that subscription → succeeds (expected to be denied by Deny-Public-Endpoints)

Root cause: Two delays stack up. The ARM management group hierarchy cache can last up to 30 minutes. After a subscription is created or moved into an MG, subscription-level effect evaluation takes about 30 minutes to complete (new assignments take effect in about 5 minutes). During this window, a request can still be evaluated against the old hierarchy, so the Deny may not apply.

Diagnostic commands
az graph query -q "resourcecontainers | where subscriptionId=='$SUB_LZ' and type=='microsoft.resources/subscriptions' | project mgChain=properties.managementGroupAncestorsChain"
az policy assignment list --scope /subscriptions/$SUB_LZ --disable-scope-strict-match --query "[?contains(scope,'corp')].name" -o tsv
Fix
  • Wait (up to about 30 minutes) and retry. When you need compliance data, use az policy state trigger-scan.
  • Find "leaked" resources created inside the remediation window using the Audit results, then fix or delete them.
Prevention and best practices
  • The vending pipeline waits after "place into MG" and verifies the inherited assignments before it hands the subscription to the application team.
  • For sensitive subscriptions, move first and grant access afterward (add the application team's roles last).

See Hour 2 module 1 · Hour 7 module 3 compliance delay.

#6 (BadRequest) The management group hierarchy depth exceeds the maximum allowed
(BadRequest) The management group hierarchy depth exceeds the maximum allowed …

Symptom: You keep subdividing under corp by business line, environment or region, and creating a level-7 MG fails.

Root cause: A management group tree allows at most 6 levels (not counting the tenant root and the subscription level), and each directory allows at most 10,000 MGs. CAF recommends 3–4 levels, and do not create MGs by dev/test/prod or by region. Express environment differences with subscriptions plus parameterized assignments.

Diagnostic commands
az graph query -q "resourcecontainers | where type=='microsoft.management/managementgroups' | extend depth=array_length(properties.details.managementGroupAncestorsChain) | project name, depth | order by depth desc" --first 10
Fix
  • Flatten the hierarchy: turn the environment level into subscriptions (sub-lz-corp-myapp-prod / -dev), and express differences with subscription-level assignments or resourceSelectors.
Prevention and best practices
  • When you draw the hierarchy in an architecture review, count the depth too. The deepest default ALZ path is alz → landingzones → corp (3 levels), which leaves room to grow.

See Hour 1 module 4.

#7 (Conflict) Management group cannot be deleted because it has children
(Conflict) … management group … cannot be deleted because it has children …

Symptom: When cleaning up a lab or running terraform destroy, deleting landingzones fails, or the wrong destroy order leaves some MGs behind.

Root cause: A management group must be empty (no child MGs and no subscriptions) before it can be deleted. The tenant root can be neither deleted nor moved. In Terraform, if the dependency between subscription placement and MGs is broken (for example, a subscription was moved by hand), the destroy order goes wrong.

Diagnostic commands
az account management-group show -n landingzones -e -r --query "children[].{name:name,type:type}" -o table
Fix
az account management-group subscription remove --name corp --subscription <subId>   # Return the subscription to the tenant root
az account management-group delete -n corp; az account management-group delete -n landingzones
Prevention and best practices
  • In production, do not "delete the MG and start again". Deleting it loses the assignments and role assignments on it. Move subscriptions to decommissioned first.

See Hour 1 module 7.

#8 (RequestDisallowedByPolicy) Resource '…' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-Public-Endpoints",…}}]'
(RequestDisallowedByPolicy) Resource 'stmyapp01' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-Public-Endpoints","id":"/providers/Microsoft.Management/managementGroups/corp/providers/Microsoft.Authorization/policyAssignments/Deny-Public-Endpoints"},"policyDefinition":{"name":"…","id":"…"},"policySetDefinition":{"name":"Deny-PublicPaaSEndpoints",…}}]'.

Symptom: Application teams' deployments fail in a corp subscription, and they report that "the platform is blocking us".

Root cause: Deny is evaluated at the request stage. On a match it returns 403, and the resource is not created. The error details include the assignment ID (the scope tells you which layer the assignment is at), the definition ID and the initiative. Official troubleshooting guidance: take the ID from the error or the activity log, and adjust the request properties according to the definition.

Diagnostic commands
az policy assignment show --name Deny-Public-Endpoints --scope /providers/Microsoft.Management/managementGroups/corp --query "{mode:enforcementMode,msg:nonComplianceMessages}"
az policy set-definition show --name Deny-PublicPaaSEndpoints --management-group alz --query "policyDefinitions[].policyDefinitionReferenceId" -o tsv | head
az monitor activity-log list --offset 1h --status Failed --query "[?contains(properties.statusMessage,'disallowed')].properties.statusMessage" -o tsv
Fix
  • Preferred: change the request (publicNetworkAccess=Disabled + private endpoint).
  • If there is a real business need, request an exemption with an expiry date (Waiver, using policyDefinitionReferenceIds to exempt only one policy in the initiative), or move the workload to online.
  • Do not delete the policy or change enforcementMode to "unlock" it. That would affect the whole MG.
Prevention and best practices
  • Write nonComplianceMessages on custom assignments (explain the reason and link to the exemption request).
  • Run az deployment group what-if in CI first (Deny shows up in what-if), so fewer problems surface only at release time.

See Hour 1 module 5 · Hour 2 module 4 effects · Hour 2 module 5 exemptions.

#9 Allowed locations assigned (only canadacentral allowed), yet az group create -l eastus still succeeds
$ az group create -n rg-lab8-us -l eastus --tags …
{ "location": "eastus", "provisioningState": "Succeeded" }
$ az storage account create -g rg-lab8-us -n stlab8us01 -l eastus …
(RequestDisallowedByPolicy) … 'Allowed locations' …

Root cause: The built-in Allowed locations policy (e56962a6-…) is in Indexed mode, which evaluates only resources that support tags and location, and does not evaluate resource groups. To control resource group locations, use Allowed locations for resource groups (e765b5de-…, mode All). Likewise, a tag policy in Indexed mode does not govern resource groups.

Diagnostic commands
az policy definition show --name e56962a6-4747-49cd-b67b-bf8b01975c4c --query "{mode:mode,name:displayName}"
az policy definition show --name e765b5de-1225-4ba3-bd56-1ac6695af988 --query "{mode:mode,name:displayName}"
{ "mode": "Indexed", "name": "Allowed locations" }
{ "mode": "All", "name": "Allowed locations for resource groups" }
Fix
az policy assignment create --name lab8-rg-loc --policy e765b5de-1225-4ba3-bd56-1ac6695af988 \
  --scope /providers/Microsoft.Management/managementGroups/corp --params '{"listOfAllowedLocations":{"value":["canadacentral","canadaeast"]}}'
Prevention and best practices
  • Assign region policies in pairs (resource + resource group) and manage them together in one initiative. Add global to the allowed list so that global resources are not blocked (check the definition notes).

See Hour 1 module 7 · Hour 2 module 3 definitions and modes.

#10 InvalidPolicyAssignmentName (management group scope names ≤ 24 characters) / exceeding the limit of 200 assignments per scope
(InvalidPolicyAssignmentName) The policy assignment name 'Enforce-Guardrails-KeyVault-Corp' is invalid. … at most 24 characters …
(PolicyAssignmentScopeLimitExceeded / QuotaExceeded) … exceeds the maximum number of policy assignments (200) …

Root cause: A policy assignment name must be 1–24 characters at management group scope (1–64 at subscription or resource group scope). ALZ library assignment names (such as Enforce-GR-AppServices0) are deliberately kept within 24. Each scope allows at most 200 assignments. Assigning policies one at a time, or copying assignments per team, hits that limit quickly.

Diagnostic commands
az graph query -q "policyresources | where type=='microsoft.authorization/policyassignments' | summarize n=count() by scope=tostring(properties.scope) | order by n desc" --first 5
Fix
  • Names: a short name plus a descriptive displayName (≤128).
  • Count: group similar policies into an initiative (≤ 1,000 policies per initiative), and tell them apart with parameters and overrides. For differences between scopes, use inheritance rather than copies.
Prevention and best practices
  • Add a name-length check in EPAC / IaC. Each month, review the scopes closest to 200.

See Hour 2 module 2 naming · Hour 2 module 3.

#11 (RequestDisallowedByPolicy) … Require a tag on resource groups: resource groups created "on behalf" by AKS, backup and similar services are denied
(RequestDisallowedByPolicy) Resource 'MC_rg-lz-myapp-cc_aks1_canadacentral' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"lab8-rg-costcenter",…},"policyDefinition":{"name":"96670d01-0a4d-4649-9c89-2d3abc0a5025",…}}]'.

Symptom: After a Deny that requires "costCenter" on resource groups went live, manual deployments work fine, but resource groups created by platform services (the AKS node resource group, Azure Backup's AzureBackupRG_*, Network Watcher's NetworkWatcherRG) fail.

Root cause: These resource groups are created by resource providers under a service identity, and the request does not carry your tags. The Deny applies to them too.

Diagnostic commands
az monitor activity-log list --offset 6h --status Failed --query "[?contains(properties.statusMessage,'96670d01')].{who:caller,rg:resourceGroupName}" -o table
Fix
  • For Deny on resource groups, exclude known system resource group name patterns (with notIn / notLike conditions, or an exemption). On resources, use Modify with inheritance from the resource group to add the tag.
  • AKS and similar services can explicitly set the node resource group name and tags (check each service's parameters).
Prevention and best practices
  • Use the combination "Deny on resource groups + Modify on resources". Audit for a week first, to see who would be caught in the activity log, before switching to Deny.

See Hour 2 module 2 tags · Hour 2 module 4.

#12 Resource group delete fails: … was disallowed by policy (denyAction, DenyAction-DeleteUAMIAMA)
(RequestDisallowedByPolicy) … Resource 'id-ama-prod-cc' … was disallowed by policy … 'DenyAction-DeleteUAMIAMA' … action 'delete'

Symptom: Cleaning up old resource groups under platform fails, and on the compliance page these resources show Protected.

Root cause: The DenyAction-DeleteUAMIAMA (denyAction) on the platform MG protects the user-assigned managed identity that AMA uses. denyAction currently supports only delete, and it returns 403. cascadeBehaviors.resourceGroup defaults to deny, so it also blocks deleting the entire resource group. Deleting a subscription is not blocked.

Diagnostic commands
az policy state list --resource-group <rg> --filter "complianceState eq 'Protected'" --query "[].resourceId" -o tsv
Fix
  • First confirm that AMA no longer depends on the identity (DCR association, VM identity). Then, through change control, temporarily exempt that resource group, and revoke the exemption after deletion. Do not change the assignment itself just to delete a resource.
Prevention and best practices
  • Add "resources protected by denyAction" to the checklist in the decommissioning runbook. denyAction complements resource locks rather than replacing them: a lock can be removed by an Owner, while policy is managed centrally by the platform team.

See Hour 2 module 4 DenyAction · Hour 5 module 2 AMA.

The pipeline for one ARM write request (PUT / DELETE), and the typical error at each step ① AuthenticationEntra token · MFA ② RBACScope · inheritance · linking ③ Hierarchy resolutionMG ancestor chain (cached) ④ Policymodify→deny→audit ⑤ Resource providerQuotas · names · limits ⑥ After-the-fact evaluationAINE / DINE #20 Enforced MFA#21 CA blocking#22 #23 Federated credentials #1 No access on the root MG#4 Moving a subscription#13 Authorization delay#15 Linked… #3 Landing on the tenant root#5 30-minute cache#6 Depth of 6 levels #8 Reading Deny#9 Indexed mode#11 Tag Deny#12 denyAction #2 Billing permissions#10 Name / 200 limit#26 Address overlap #35 No private DNS zone group#39 AMA not deployed#40 Workspace placeholder Steps ①–⑤ failing: the request is rejected and nothing is created, so fix it and retry. Step ⑥ failing: the resource was created, but its "compliance companion resources" are missing, so a remediation task is needed.First check which step the error belongs to: AuthorizationFailed → ②; RequestDisallowedByPolicy → ④; DINE not taking effect → ⑥
Figure 1-1: decide where the request stopped first, then look up the cause
Timeline after moving a subscription into corp (#5) t=0 move succeeds ≈5 minutes new assignments take effect ≤30 minutes ARM hierarchy cache refreshes ≈30 minutes subscription-level evaluation completes 24 hours standard cycle Risk window: requests may be evaluated against the old hierarchy, so a new Deny may not block them yet Mitigation: the vending pipeline does "place → wait → verify inherited assignments → then grant access to the application team". For immediate evaluation, run az policy state trigger-scan.
Figure 1-2: both hierarchy and compliance are eventually consistent

ARM request pipeline failure simulator

Pick a scenario and click "Run", then watch where the request stops, what the final state is, and which problem to look at. The flow is simplified to ARM authentication → RBAC → hierarchy → Policy (official effect order) → resource provider → after-the-fact DINE.

$ Waiting to run…
Environment and costSandbox tenant, subscription under corp, resource group rg-lab8-m1. All labs fail at the ARM / Policy stage, so they cost nothing. Required roles: Resource Policy Contributor (or Owner) on corp, plus Contributor on the subscription.

Lab 1-A: Read a Deny (#8)

az storage account create -g rg-lab8-m1 -n stlab8pub$RANDOM -l canadacentral --sku Standard_LRS \
  --public-network-access Enabled --tags env=lab owner=me costCenter=CC-LAB workload=lab8 2>&1 | tee /tmp/deny.txt
(RequestDisallowedByPolicy) Resource 'stlab8pub12345' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-Public-Endpoints",…
Extract the assignment name and scope:
grep -o '"policyAssignment":{"name":"[^"]*","id":"[^"]*"' /tmp/deny.txt
After fixing the request, the retry succeeds with --public-network-access Disabled. Cleanup: az storage account delete -g rg-lab8-m1 -n <name> --yes.

Lab 1-B: Indexed mode does not govern resource groups (#9)

az policy assignment create --name lab8-loc --policy e56962a6-4747-49cd-b67b-bf8b01975c4c \
  --scope /subscriptions/$SUB_LZ --params '{"listOfAllowedLocations":{"value":["canadacentral"]}}'
sleep 300   # New assignments take about 5 minutes to take effect
az group create -n rg-lab8-us -l eastus --tags env=lab owner=me costCenter=CC-LAB workload=lab8 -o table
Location    Name
----------  ----------
eastus      rg-lab8-us        ← resource group created successfully
Creating a resource inside it is then denied, because the resource is evaluated by the Indexed policy. Cleanup:
az group delete -n rg-lab8-us --yes
az policy assignment delete --name lab8-loc --scope /subscriptions/$SUB_LZ

Lab 1-C: Assignment name too long at management group scope (#10)

az policy assignment create --name lab8-this-name-is-way-too-long --policy e56962a6-4747-49cd-b67b-bf8b01975c4c \
  --scope /providers/Microsoft.Management/managementGroups/sandbox --params '{"listOfAllowedLocations":{"value":["canadacentral"]}}'
(InvalidPolicyAssignmentName) … at most 24 characters …
Change it to --name lab8-sbx-loc --display-name "Lab8 sandbox allowed locations" and it succeeds. Then delete that assignment.

Lab 1-D: Observe denyAction protection (#12, requires the ALZ library to be deployed on the platform MG)

az graph query -q "policyresources | where type=='microsoft.policyinsights/policystates' and properties.complianceState=='Protected' | project id=tostring(properties.resourceId)" --first 5
id
/subscriptions/…/resourceGroups/rg-alz-mgmt-cc/providers/Microsoft.ManagedIdentity/userAssignedIdentities/id-ama-…
Observe only, do not delete. In a lab tenant you can reproduce it yourself on rg-lab8-m1 with a custom assignment that has denyAction (scope limited to that resource group), then delete the assignment after verifying.

Teaching video (title and channel verified with the YouTube oEmbed endpoint)

▶
Azure Landing Zones Overview — John Savill's Technical Training
English · Management group hierarchy and policy-driven governance (earlier material, before AVM; some details are out of date)
▶
Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules
English · Subscription design (covers #2, #3)
▶
Anatomy of Azure Policy — John Savill's Technical Training
English · Definitions, assignments, effects and evaluation (covers #8–#12)

No verified video specifically on troubleshooting Azure Policy errors was found.

Supplementary storyboard (3 minutes, can be recorded yourself) Shot 1: create a public storage account in the corp subscription and get the red 403. Shot 2: highlight the policyAssignment.id in the error and point out that the scope is the corp MG. Shot 3: az policy set-definition show to find the matching member definition. Shot 4: change to --public-network-access Disabled and retry successfully, then compare with the exemption request process.

Official documentation

Or score ≥ 70% on the quiz

Module 2 · Part A: Identity and access (problems 13–25)

08:00 – 16:00 · Authorization propagation delays, principal replication delays, linked scope, custom role limits, PIM, enforced MFA, conditional access, workload identity federation, subscription transfer, Lighthouse
8 minToken → role assignment → scope13 problems
Learning goals
  • Distinguish three kinds of "denied": authentication failures (AADSTS codes, MFA claim, CA), authorization failures (AuthorizationFailed, LinkedAuthorizationFailed), and propagation or caching delays (a role just assigned, a principal just created, a federated credential just created).
  • Remember the hard constraints in ALZ identity design: a custom role's AssignableScopes may contain only 1 MG, and a role containing DataActions cannot be assigned at MG scope; 5,000 role assignments per subscription; PIM requires P2 or ID Governance; managed identities and service principals are not affected by enforced MFA.
  • Be able to troubleshoot federated credentials by comparing the issuer / subject / audience triple, and explain the difference in subject between a GitHub environment and a branch.

Filter by keywords (such as AADSTS, Linked, PrincipalNotFound, MFA, PIM, Lighthouse). Click a row to jump to its details.

#13 Role just assigned, still AuthorizationFailed / 401: "If access was recently granted, please refresh your credentials."
(AuthorizationFailed) The client '<upn>' with object id '<objectId>' does not have authorization to perform action 'Microsoft.Network/virtualNetworks/write' over scope '/subscriptions/<sub>/resourceGroups/rg-lz-myapp-cc/…' or the scope is invalid. If access was recently granted, please refresh your credentials.

Root cause: A role assignment change can take up to about 10 minutes to take effect in ARM. Old tokens held by the client, and token caching when a managed identity is authorized through a group (which can last hours, up to about 24 h), both keep the new permission "invisible". Another common cause is that the assignment is at the wrong scope (resource group vs subscription), or it went to a different object (an app registration and an enterprise application with the same name).

Diagnostic commands
az role assignment list --assignee <objectId> --all --include-inherited --query "[].{role:roleDefinitionName,scope:scope}" -o table
az account get-access-token --query expiresOn -o tsv
Fix
  • People: az logout && az login (or sign in again in the portal). Pipelines: re-run the job to get a new token.
  • Managed identity authorized through a group: assign the role to the identity directly, or wait for the token to expire / restart the workload.
Prevention and best practices
  • In IaC, add a wait or retry between "assign role" and "use role". Give the deployment identity its roles once, during bootstrap.

See Hour 3 module 2 RBAC.

#14 PrincipalNotFound: Principal <id> does not exist in the directory <tenantId>
(PrincipalNotFound) Principal 0b1f… does not exist in the directory 9f8e7d6c-…. Check that you have the correct principal ID. If you are creating this principal and then immediately assigning a role, this error might be related to a replication delay.

Root cause: A newly created service principal or UAMI has not yet replicated to all Entra replicas. Or the appId of an app registration was used instead of the object ID of the enterprise application (service principal).

Diagnostic commands
az ad sp show --id <appId> --query "{objectId:id,appId:appId}"
az identity show -g rg-alz-mgmt-cc -n id-alz-platform-apply --query principalId -o tsv
Fix
az role assignment create --assignee-object-id <principalId> --assignee-principal-type ServicePrincipal \
  --role Reader --scope /providers/Microsoft.Management/managementGroups/alz

Specifying the object ID plus the principal type skips the directory lookup and avoids the replication delay (in Terraform azurerm this is skip_service_principal_aad_check; in Bicep, principalType).

Prevention and best practices
  • In IaC, always pass principalType. Do not make assignments using a UPN or display name.

See Hour 3 module 2 · Hour 3 module 7 managed identities.

#15 (LinkedAuthorizationFailed) The client has permission to perform action 'Microsoft.Authorization/policyAssignments/write' … however, it does not have permission to perform action(s) 'Microsoft.Authorization/roleAssignments/write' on the linked scope(s)
(LinkedAuthorizationFailed) The client '<id>' has permission to perform action 'Microsoft.Authorization/policyAssignments/write' on scope '/providers/Microsoft.Management/managementGroups/corp'; however, it does not have permission to perform action(s) 'Microsoft.Authorization/roleAssignments/write' on the linked scope(s) '…' (respectively) or the linked scope(s) are invalid.

Symptom: A person or pipeline with Resource Policy Contributor creates a DINE or Modify assignment with a managed identity (such as Deploy-Private-DNS-Zones) and it fails, or the assignment succeeds but the identity has no roles.

Root cause: When you create a DINE/Modify assignment in the portal, the portal grants the identity access automatically based on the roleDefinitionIds in the definition. That requires roleAssignments/write. CLI, SDK and IaC do not grant access automatically, so you must create the role assignment separately, and it often has to be granted at a different scope (for example, the resource group that holds the private DNS zones in the connectivity subscription).

Diagnostic commands
az policy assignment show -n Deploy-Private-DNS-Zones --scope /providers/Microsoft.Management/managementGroups/corp --query identity.principalId -o tsv
az role assignment list --assignee <principalId> --all -o table
Fix
  • The deployment identity needs Owner (or Resource Policy Contributor plus Role Based Access Control Administrator, with conditions limiting which roles can be granted) on the assignment scope and the linked scope.
  • Create the role assignment for the identity explicitly in IaC (avm-ptn-alz handles this based on library metadata; custom assignments you must write yourself).
Prevention and best practices
  • Review the identity, the role and the cross-scope grant of each DINE assignment as one unit. Check the remediation tasks after deployment (#39).

See Hour 1 module 8 · Hour 2 module 5 remediation and managed identities.

#16 You cannot add data action permissions when you have a management group as an assignable scope
You cannot add data action permissions when you have a management group as an assignable scope

Root cause: Custom roles have three hard limits related to MGs. AssignableScopes can contain only 1 MG. A role that contains DataActions cannot be defined or assigned at MG scope. AssignableScopes cannot be "/". Also, ARM does not validate whether the MG ID exists, so you can create the role with a typo, and then it cannot be assigned.

Diagnostic commands
az role definition list --custom-role-only true --query "[].{n:roleName,scopes:assignableScopes,data:permissions[0].dataActions}" -o json
Fix
  • Split it into two roles. Put the control-plane action role at the MG. For data-plane access (such as reading Key Vault secrets, or blob data), assign built-in data roles at the subscription or resource level.
Prevention and best practices
  • Prefer built-in roles. The 5 custom roles in the ALZ library have only control-plane Actions.

See Hour 3 module 3 custom roles.

#17 Moving a subscription is denied: it would break the role assignments on the subscription and its custom role definition (the definition sits in another branch's MG)
The move is not allowed because it breaks the relationship between role assignments on the subscription and the custom role definition at management group 'sandbox' …

Root cause: The custom role definition is in sandbox, and the subscription has an assignment of that role. After the subscription moves to corp, the assignment's scope is no longer under the definition's AssignableScopes, so ARM refuses the move. This is the scenario described in the official management group documentation.

Diagnostic commands
az role assignment list --scope /subscriptions/<sub> --query "[].{role:roleDefinitionName,id:roleDefinitionId}" -o table
az role definition list --name "<role name>" --query "[].assignableScopes"
Fix
  • Options given in the official documentation: delete the assignment before moving; add the subscription to the definition's assignable scopes; move the definition's scope up to the common ancestor of both branches (such as alz); or create a new role in the new branch.
Prevention and best practices
  • Keep custom role definitions at the intermediate root alz, as the ALZ library does, and make the assignments at the scopes where they are needed.

See Hour 3 module 3 · Hour 7 module 2.

#18 PIM activation succeeds, but the operation still gets AuthorizationFailed
PIM: Contributor @ sub-lz-corp-myapp, activated, 3:58 remaining
$ az network vnet update … → (AuthorizationFailed) …

Root cause: ① The CLI is still using the token from before activation. ② The activation is at the wrong scope: the eligible assignment is on a resource group but the operation is on the subscription, or landingzones was activated but the subscription is not under online. ③ The role itself does not include that action (for example, the NotActions of Application-Owners exclude virtualNetworks/write). ④ An activation that requires approval is actually still Pending.

Diagnostic commands
az role assignment list --assignee <me> --all --include-inherited --query "[].{role:roleDefinitionName,scope:scope}" -o table
az role definition list --name "Application-Owners" --query "[0].permissions[0].notActions"
Fix
  • Sign in again, and activate at the correct scope. When you need network write access, use a suitable role such as Network-Management, rather than loosening Application-Owners.
Prevention and best practices
  • PIM settings are per role and per resource, and they are not inherited. Configure them once at the MG, and write the activation duration and approvers into the runbook.

See Hour 3 module 4 PIM.

#19 PIM menu disappears / cannot activate: The tenant does not have a valid license (license expired)
The PIM page says the tenant has no valid license, and eligible assignments disappear from "My roles"

Root cause: PIM requires Entra ID P2 or Entra ID Governance. After the license expires, permanent active assignments stay as they are, time-bound active assignments become permanent, eligible assignments are deleted, and activation is no longer possible. In other words, the just-in-time access model is quietly broken and standing privileges are left behind.

Diagnostic commands
az rest --url "https://graph.microsoft.com/v1.0/subscribedSkus?\$select=skuPartNumber,capabilityStatus" --query "value[]" -o table
Fix
  • After restoring the license, rebuild the eligible assignments (from IaC or an export script). Audit and remove the active assignments that became permanent during the expiry period.
Prevention and best practices
  • Put license expiry alerts on the platform operations calendar, and keep eligible assignments as code so they can be replayed.

See Hour 3 module 4.

#20 (RequestDisallowedByPolicy) … Users must use MFA for Create/Update operations (an overnight IaC job suddenly fails)
(RequestDisallowedByPolicy) … Users must use MFA for Create/Update operations. …
Run the command below to authenticate interactively …
az login --tenant "<tenantId>" --scope "https://management.core.windows.net//.default" --claims-challenge "<token>"

Symptom: After 2025-10, Terraform or scripts that run under a service account using username and password start failing on write operations, while read operations still work.

Root cause: Azure enforced MFA phase 2 requires MFA for create, update and delete operations from Azure CLI, PowerShell, IaC tools and the REST control plane. The postponed deadline of 2026-07-01 has passed, and it cannot be opted out of. Managed identities and service principals are not affected. User accounts (including test tenants and emergency accounts) have no exception, and excluding them from CA does not change the enforcement.

Diagnostic commands
az account show --query user     # if type is user, this is the root cause
Fix
  • Move the automation to workload identities: a UAMI with federated credentials (GitHub / ADO OIDC), or managed identities. Do not use ROPC.
  • For manual operations, sign in again as prompted with a claims challenge to complete MFA.
Prevention and best practices
  • Use Entra sign-in logs to find all non-interactive sign-ins from user-type service accounts, and migrate them one by one.

See Hour 3 module 5 enforced MFA · Hour 3 module 6 deployment identity.

#21 Emergency account sign-in blocked: AADSTS53003 Access has been blocked by Conditional Access policies
AADSTS53003: Access has been blocked by Conditional Access policies. The access policy does not allow token issuance.

Root cause: A newly added CA policy ("block legacy authentication", "require compliant device" or "block by location") does not exclude the emergency access account group. Or the authentication method the emergency account uses does not meet the new authentication strength.

Diagnostic commands
az rest --url "https://graph.microsoft.com/v1.0/identity/conditionalAccess/policies?\$select=displayName,state,conditions" \
  --query "value[].{n:displayName,s:state,excl:conditions.users.excludeGroups}" -o json
Fix
  • Sign in with another emergency account, and add the emergency account group as an exclusion to the block or restrict policies. Report-only policies do not need the exclusion.
Prevention and best practices
  • At least 2 cloud-only accounts, FIDO2 passkeys, permanently active Global Administrator, sign-in alerts, and a drill every 90 days. Run all CA changes in report-only mode first.

See Hour 3 module 5 emergency accounts and conditional access.

#22 AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:contoso/alz-platform:environment:prod'
AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:contoso/alz-platform:environment:prod'. Check your federated identity credential Subject, Audience and Issuer against the presented assertion.

Root cause: Entra matches federated credentials exactly on issuer + subject + audience (no wildcards). Once a GitHub job references environment:, the subject changes from …:ref:refs/heads/main to …:environment:prod. Renaming a repository or transferring it to another organization, or renaming an ADO service connection, also changes the subject.

Diagnostic commands
az identity federated-credential list -g rg-alz-mgmt-cc --identity-name id-alz-platform-apply \
  --query "[].{n:name,sub:subject,iss:issuer,aud:audiences[0]}" -o table
N        Sub                                          Iss                                          Aud
-------  -------------------------------------------  -------------------------------------------  -------------------------
gh-main  repo:contoso/alz-platform:ref:refs/heads/main  https://token.actions.githubusercontent.com  api://AzureADTokenExchange
Fix
az identity federated-credential create -g rg-alz-mgmt-cc --identity-name id-alz-platform-apply -n gh-env-prod \
  --issuer https://token.actions.githubusercontent.com --subject repo:contoso/alz-platform:environment:prod \
  --audiences api://AzureADTokenExchange
Prevention and best practices
  • Trust the apply identity only on a protected environment (with approval), and trust the plan identity on PRs and branches. This is also the plan/apply split used in the accelerator.

See Hour 3 module 6 workload identity federation · Hour 6 module 4 platform pipelines.

#23 AADSTS700212 (audience mismatch) / AADSTS70021 (a newly created credential has not propagated yet) / 409 when creating a credential
AADSTS700212: No matching federated identity record found for presented assertion audience '…'.
AADSTS70021: No matching federated identity record found for presented assertion.
Conflict (409): concurrent creation of federated credentials for the same UAMI

Root cause: 700212: The token audience does not match the credential (GitHub uses the default api://AzureADTokenExchange, while ADO service connections have their own issuer and audience). 70021: The credential was used right after it was created (there is a propagation delay), or the issuer is wrong. 409: Credentials were created concurrently on the same UAMI. Each application/UAMI can have at most 20 credentials.

Diagnostic commands
# Print the token claims in a GitHub job (do not print the token itself)
curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=api://AzureADTokenExchange" | jq -r .value | cut -d. -f2 | base64 -d 2>/dev/null | jq '{iss,sub,aud}'
Fix
  • Align the audience and issuer. Wait a few minutes after creating a new credential before running. In IaC, create credentials for the same UAMI one at a time (chain them with depends_on in Terraform).
  • You are close to the 20-credential limit. Split UAMIs by environment, rather than having one identity trust all branches.

See Hour 3 Module 6.

#24 After a subscription moves to another directory, all of its existing role assignments are gone, and it cannot be placed under a management group
$ az account management-group subscription add --name corp --subscription <sub>
(AuthorizationFailed / NotFound) … (the subscription belongs to another tenant)
After the transfer, az role assignment list --scope /subscriptions/<sub> → only a few assignments from the new directory remain

Root cause: A subscription in a management group must trust the same Entra tenant. Transferring a subscription (changing its directory) permanently deletes the role assignments, custom roles, and managed identity bindings on it (system-assigned identities must be re-enabled), and the Key Vault tenant ID must also be updated.

Diagnostic commands
az account show -s <sub> --query "{tenant:tenantId,home:homeTenantId}"
Fix
  • Before the transfer, export the role assignments and custom roles. After the transfer, have the new tenant grant access again, rebuild the managed identities and Key Vault access policies, and then move the subscription into the target MG.
Prevention and best practices
  • Set “subscription leaves/enters directory” to Permit no one, and configure exempted users. For acquisition scenarios, evaluate Lighthouse (#25) first instead of transferring directly.

See Hour 3 Module 1 Tenant design · Hour 2 Module 1.

#25 Lighthouse delegated deployment fails: The role definition … is not supported / Owner is not supported
… The role definition '8e3af657-a8ff-443c-a75c-2fe8c4bcb635' is not supported for delegation …

Root cause: Lighthouse supports only built-in roles. It does not support Owner, roles that include DataActions, or roles with write/delete on Microsoft.Authorization (UAA is used only to assign the roles listed in delegatedRoleDefinitionIds to managed identities in the customer tenant). The group that receives the authorization must be a security group. Eligible authorizations require Entra ID Governance in the managing tenant.

Diagnostic commands
az managedservices definition list --query "[].properties.authorizations[].{role:roleDefinitionId,principal:principalIdDisplayName}" -o table
Fix
  • Use Contributor plus specific other built-in roles instead. If you need to grant roles for DINE, use UAA with delegatedRoleDefinitionIds. Add Managed Services Registration Assignment Delete Role so the managing party can revoke the delegation.

See Hour 3 Module 7 Lighthouse · Hour 7 Module 6 Multitenancy.

Token chain for pipeline access to Azure: the error for each step GitHub / ADOIssue OIDC tokeniss · sub · aud Entra token exchangeMatch federated credential#22 700213 · #23 700212/70021 ARM access tokenUAMI identityNot affected by enforced MFA RBAC decision#13 delay · #15 Linked#18 scope Human pathUser token + MFA claim (#20) → Conditional Access decision (#21)→ Time-bound assignment activated through PIM (#18 #19)User-type service accounts always fail after 2025-10 Machine pathFederated credential / managed identity, no long-lived secretsplan identity Reader, apply identity Owner @ alzapply trusts only a protected environment
Figure 2-1: First identify “who” is being denied: the human, the pipeline, or the policy's managed identity

“Access denied” troubleshooting decision tree

Step through the symptoms to reach the most likely problem number and the first command.

Environment and cost Sandbox tenant; resource group rg-lab8-m2; one UAMI. All free. Requires Owner on the resource group (or User Access Administrator + Managed Identity Contributor).

Lab 2-A: Reproduce AADSTS700213 with the wrong subject (#22)

az group create -n rg-lab8-m2 -l canadacentral --tags env=lab owner=me costCenter=CC-LAB workload=lab8
az identity create -g rg-lab8-m2 -n id-lab8-deploy
az identity federated-credential create -g rg-lab8-m2 --identity-name id-lab8-deploy -n gh-main \
  --issuer https://token.actions.githubusercontent.com --subject repo:<org>/<repo>:ref:refs/heads/main --audiences api://AzureADTokenExchange
In the repository's workflow, add environment: prod to the job and run azure/login (client-id set to that UAMI).
Error: AADSTS700213: No matching federated identity record found for presented assertion subject 'repo:<org>/<repo>:environment:prod'.
Following #22, add the environment:prod credential, wait 1–2 minutes, then rerun and confirm success (rerunning immediately may hit the 70021 error from #23).

Lab 2-B: Role assignment that skips the directory lookup (#14)

PID=$(az identity create -g rg-lab8-m2 -n id-lab8-new --query principalId -o tsv)
az role assignment create --assignee-object-id $PID --assignee-principal-type ServicePrincipal --role Reader --scope /subscriptions/$SUB_LZ/resourceGroups/rg-lab8-m2 -o table
Principal                             RoleDefinitionName    Scope
------------------------------------  --------------------  ----------------------------------------
…                                     Reader                /subscriptions/…/resourceGroups/rg-lab8-m2

Lab 2-C: Custom role containing DataActions placed at the MG (#16)

cat > /tmp/role.json <<'EOF'
{ "Name": "lab8-blob-reader", "Actions": ["Microsoft.Storage/storageAccounts/read"],
  "DataActions": ["Microsoft.Storage/storageAccounts/blobServices/containers/blobs/read"],
  "AssignableScopes": ["/providers/Microsoft.Management/managementGroups/sandbox"] }
EOF
az role definition create --role-definition @/tmp/role.json
You cannot add data action permissions when you have a management group as an assignable scope
Change AssignableScopes to /subscriptions/$SUB_LZ so the role can be created. After verifying, delete it: az role definition delete --name lab8-blob-reader. Clean up the resource group: az group delete -n rg-lab8-m2 --yes.
or score ≥ 70% on the quiz

Module 3 · Part A: Networking and DNS (production problems 26–38)

16:00 – 24:00 · Peering and addressing, spoke-to-spoke forwarding, firewall rules, asymmetric routing, default outbound access, gateway SKUs, corp network policy, private endpoint DNS, Private Resolver, DDoS Modify
8 minUDR → Firewall → DNS13 problems
Learning objectives
  • Locate network problems in three steps: the control plane (the deployment is rejected), the data plane (where the packet went), and name resolution (what the name resolved to). For the data plane, check the effective routes and the next hop first. For name resolution, check from which machine and which DNS server the lookup happens first.
  • Remember the course network convention: hub 10.0.0.0/16 (firewall 10.0.0.4, Resolver inbound 10.0.2.4), spoke 10.1.0.0/16, and route table rt-snet-app-cc: 0.0.0.0/0 and 10.0.0.0/12 → 10.0.0.4.
  • Be able to match the ALZ network policies on corp (Deny-HybridNetworking, Deny-Public-IP-On-NIC, Deny-Subnet-Without-Nsg, Deploy-Private-DNS-Zones) to common deployment failures.

Type a keyword (such as Overlap, Initiated, No rule matched, privatelink, Nsg, or VpnGw) to filter. Click a row to jump to its details.

#26 (VnetAddressSpacesOverlap) Cannot create or update peering … address space overlaps
(VnetAddressSpacesOverlap) Cannot create or update peering /subscriptions/…/virtualNetworks/vnet-hub-cc/virtualNetworkPeerings/hub-to-spoke2 because virtual networks … have overlapping address spaces …

Root cause: The new spoke kept the template's default 10.1.0.0/16 (the same as the myapp spoke), or it overlaps with an on-premises range or with another region's hub. The two sides of a peering cannot have overlapping address spaces. Once they overlap, the only fix is to rebuild the VNet (or adjust the address space and then sync the peering).

Diagnostic commands
az graph query -q "resources | where type=='microsoft.network/virtualnetworks' | mv-expand p=properties.addressSpace.addressPrefixes | project name, subscriptionId, prefix=tostring(p) | order by prefix asc"
Fix
  • Allocate a new, non-overlapping prefix from an IPAM pool (az network vnet create --ipam-allocations), migrate the workloads, then delete the old VNet.
Prevention and best practices
  • When a subscription is vended, allocate its address space automatically from the AVNM IPAM pool (pool-cc 10.0.0.0/12). Do not let application teams enter CIDRs themselves.

See Hour 4 Module 1 · Hour 4 Module 2 IPAM and AVNM.

#27 Peering state shows Initiated, and traffic does not flow
$ az network vnet peering list -g rg-alz-conn-cc --vnet-name vnet-hub-cc -o table
Name           PeeringState   PeeringSyncLevel
hub-to-spoke   Initiated      …

Root cause: Only one side was created (hub → spoke). The other side (spoke → hub) was never created. This is common when the two ends are in different subscriptions and managed by different pipelines. Another cause is changing the spoke's address space, after which the peering must be synced (PeeringSyncLevel shows LocalNotInSync, for example).

Diagnostic commands
az network vnet peering list -g rg-lz-myapp-cc --vnet-name vnet-spoke-myapp-cc --query "[].{n:name,state:peeringState,sync:peeringSyncLevel,fwd:allowForwardedTraffic,useGw:useRemoteGateways}" -o table
Fix
az network vnet peering create -g rg-lz-myapp-cc --vnet-name vnet-spoke-myapp-cc -n spoke-to-hub \
  --remote-vnet <hub-vnet-id> --allow-vnet-access --allow-forwarded-traffic
az network vnet peering sync -g rg-alz-conn-cc --vnet-name vnet-hub-cc -n hub-to-spoke   # after an address space change
Prevention and best practices
  • Manage peerings centrally with an AVNM connectivity configuration (hub-and-spoke). Note that it takes over and deletes duplicate manually created peerings (demonstrated in hour 4).

See Hour 4 Module 1.

#28 Spoke A can ping the hub, but times out when reaching spoke B
$ az network watcher show-next-hop … --source-ip 10.1.1.4 --dest-ip 10.2.1.4
{ "nextHopType": "None" }

Root cause: VNet peering is not transitive. Spoke-to-spoke traffic has to go through the firewall/NVA in the hub. The spoke subnet's UDR must point the other spokes' prefixes (or the summary 10.0.0.0/12) to 10.0.0.4, the peering must allow forwarded traffic, and the firewall must have an allow rule. Alternatively, use an AVNM mesh connectivity configuration or vWAN routing intent.

Diagnostic commands
az network nic show-effective-route-table -g rg-lz-myapp-cc -n <nic> -o table
Source    State    Address Prefix    Next Hop Type     Next Hop IP
User      Active   10.0.0.0/12       VirtualAppliance  10.0.0.4
User      Active   0.0.0.0/0         VirtualAppliance  10.0.0.4
Fix
  • Associate both spokes with the same route table (rt-snet-app-cc). On the hub side of the peering, enable Allow forwarded traffic. The firewall network rule allows 10.1.0.0/16 ↔ 10.2.0.0/16.

See Hour 4 Module 1 · Hour 4 Module 3 UDR · Hour 7 Module 4.

#29 Azure Firewall log: Action: Deny. Reason: No rule matched. Proceeding with default action
TCP request from 10.1.1.4:51234 to 151.101.0.223:443. Action: Deny. Reason: No rule matched. Proceeding with default action

Root cause: The traffic has already reached the firewall through the UDR, but no rule matches, so the default is deny. Common details: the Basic SKU has no DNS proxy, so network rules cannot use FQDNs, and HTTP/S outbound traffic should use application rules. Rules are processed in a fixed order: DNAT → network → application (regardless of priority numbers). Parent policy rule collection groups are always processed first, and processing stops at the first match.

Diagnostic commands
AZFWNetworkRule | union AZFWApplicationRule | where TimeGenerated > ago(30m) and SourceIp == "10.1.1.4" | project TimeGenerated, Action, DestinationIp, DestinationPort, Fqdn, Policy, RuleCollection
Fix
  • In afwp-hub-cc, add an application rule for this spoke (target FQDN), or a network rule (IP/service tag). If you need network rules with FQDNs, upgrade to Standard and enable the DNS proxy.
Prevention and best practices
  • Group rule collection groups by landing zone. Application teams submit changes through PRs, and the platform team approves them (rules as code).

See Hour 4 Module 3 Azure Firewall.

#30 Local access to the spoke: the connection drops right after it is established, or only the SYN arrives with no reply (asymmetric routing)
On-premises 192.168.10.20 → 10.1.1.4:5000: the TCP handshake times out, or the connection is reset after a few seconds
Firewall log: only the return-direction traffic is denied (no session)

Root cause: Return traffic follows the UDR 0.0.0.0/0 / 10.0.0.0/12 → firewall, but the inbound traffic from the VPN/ER gateway goes straight to the spoke (it bypasses the firewall). The stateful firewall never sees the session start, so it drops the return packets.

Diagnostic commands
az network route-table list -g rg-alz-conn-cc --query "[].{n:name,subnets:subnets[].id}" -o json   # check whether GatewaySubnet has a route table
az network nic show-effective-route-table -g rg-lz-myapp-cc -n <nic> -o table
Fix
  • Associate a route table with GatewaySubnet: spoke prefixes → 10.0.0.4 (do not put 0.0.0.0/0 on GatewaySubnet). On the spoke route table, disable gateway route propagation so return traffic also goes through the firewall.

See Hour 4 Module 3 · Hour 4 Module 4 Hybrid connectivity.

#31 VMs in a newly created spoke subnet cannot reach the internet, even without a UDR
$ az network vnet subnet show … --query defaultOutboundAccess   → false
curl https://archive.ubuntu.com → timeout (the same template works in an older VNet)

Root cause: VNets created with an API version released after 2026-03-31 have subnets with defaultOutboundAccess=false by default (private subnets), so implicit default outbound access is no longer provided. Existing VNets are unchanged. ALZ's Enforce-Subnet-Private (Audit, DoNotEnforce) is also pointing in this direction.

Diagnostic commands
az network vnet subnet list -g rg-lz-myapp-cc --vnet-name vnet-spoke-myapp-cc --query "[].{n:name,defOut:defaultOutboundAccess,rt:routeTable.id,nat:natGateway.id}" -o table
Fix
  • The correct ALZ approach: UDR 0.0.0.0/0 → hub firewall, or associate a NAT Gateway with the subnet. Temporary option: az network vnet subnet update --default-outbound true (after changing this private property, the VM must be stopped and deallocated).

See Hour 4 Module 3.

#32 Creating a new gateway with the VpnGw1 (non-AZ) SKU is rejected, or an existing gateway is asked to migrate
(InvalidGatewaySku / BadRequest) … VpnGw1 … is not supported. Please use AZ SKUs …

Root cause: Non-AZ VpnGw1–5 were retired on 2026-09-30 (new deployments were blocked during 2025). The legacy Standard/HighPerformance SKUs were deprecated on 2026-06-30. The Basic SKU is not retired, but it can only be created with the CLI or PowerShell, and it does not support BGP or active-active. Basic public IPs in Azure were retired on 2025-09-30.

Diagnostic commands
az network vnet-gateway list -g rg-alz-conn-cc --query "[].{n:name,sku:sku.name,type:gatewayType}" -o table
Fix
  • Use VpnGw1AZ or later for VPN, and ErGw1Az or later, or ErGwScale, for ExpressRoute. Use Standard SKU public IPs. For existing non-AZ ExpressRoute gateways, use the gateway migration experience.

See Hour 4 Module 4.

#33 (RequestDisallowedByPolicy) … Deny-HybridNetworking / Deny-Public-IP-On-NIC (building your own gateway or attaching a public IP to a VM in the corp subscription)
(RequestDisallowedByPolicy) Resource 'vgw-myapp' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-HybridNetworking",…}}]'.

Root cause: Deny-HybridNetworking on corp blocks expressroutecircuits/gateways/ports, virtualwans, virtualhubs, vpngateways, p2svpngateways, vpnsites, and virtualnetworkgateways. Deny-Public-IP-On-NIC blocks public IPs on NICs. This is by design: hybrid connectivity and inbound/outbound traffic for corp are centralized in the connectivity subscription.

Diagnostic commands
az policy assignment show -n Deny-HybridNetworking --scope /providers/Microsoft.Management/managementGroups/corp --query parameters
Fix
  • Get hybrid connectivity through the hub's gateway and peering (useRemoteGateways). Use Bastion for management access. For externally published services, place App Gateway or Front Door in the right location, or put the workload in online.

See Hour 4 Module 4 · Hour 4 Module 7 corp and online.

#34 nslookup stmyapp.blob.core.windows.net returns a public IP (Non-authoritative answer … 20.x.x.x)
Server:   10.0.2.4
Non-authoritative answer:
stmyapp.blob.core.windows.net  canonical name = stmyapp.privatelink.blob.core.windows.net.
Name:    blob.yto21prdstr02a.store.core.windows.net
Address: 20.60.x.x

Root cause: The CNAME points to a privatelink zone, but the VNet where the resolver lives is not linked to the privatelink.blob.core.windows.net private DNS zone (or the zone has no A record). Alternatively, the spoke's DNS server points to a self-managed DNS server that does not forward the privatelink zone to 168.63.129.16 or to the Resolver inbound endpoint.

Diagnostic commands
az network private-dns link vnet list -g rg-alz-dns-cc -z privatelink.blob.core.windows.net --query "[].{vnet:virtualNetwork.id,state:virtualNetworkLinkState}" -o table
az network private-dns record-set a list -g rg-alz-dns-cc -z privatelink.blob.core.windows.net -o table
az network vnet show -g rg-lz-myapp-cc -n vnet-spoke-myapp-cc --query dhcpOptions.dnsServers
Fix
  • Link the private DNS zone to the hub VNet (where the Resolver is), and point spoke DNS to the Resolver inbound endpoint 10.0.2.4. For a missing A record, see #35.

See Hour 4 Module 5 Private Link and private DNS · Hour 7 Module 4.

#35 The private endpoint was created successfully, but the DNS zone group still does not appear after tens of minutes (Deploy-Private-DNS-Zones is not taking effect)
$ az network private-endpoint dns-zone-group list -g rg-lz-myapp-cc --endpoint-name pep-stmyapp → []
Compliance: Deploy-Private-DNS-Zones … NonCompliant; the remediation deployment fails with AuthorizationFailed (exact wording may vary)

Root cause (by frequency): ① The assigned system-assigned managed identity has no Network Contributor on the resource group that holds the private DNS zones in connectivity (cross-scope authorization must be granted manually, see #15). ② Parameters still hold placeholder values (dnsZoneRegion defaults to changeme, or the subscription ID / RG name is wrong). ③ The service is not among the 59 definitions in the policy set. For example, privatelink.database.windows.net (Azure SQL Database) is not included. ④ Still within the DINE evaluation delay (default PT10M).

Diagnostic commands
az policy assignment show -n Deploy-Private-DNS-Zones --scope /providers/Microsoft.Management/managementGroups/corp --query "{id:identity.principalId,p:parameters}"
az role assignment list --assignee <principalId> --scope /subscriptions/<conn-sub>/resourceGroups/rg-alz-dns-cc -o table
az deployment group list -g rg-lz-myapp-cc --query "[?starts_with(name,'PolicyDeployment')].{n:name,s:properties.provisioningState}" -o table
Fix
az role assignment create --assignee-object-id <principalId> --assignee-principal-type ServicePrincipal \
  --role "Network Contributor" --scope /subscriptions/<conn-sub>/resourceGroups/rg-alz-dns-cc
az policy remediation create -n lab8-pdns --policy-assignment <assignmentId> \
  --definition-reference-id DINE-Private-DNS-Azure-Storage-Blob --resource-discovery-mode ReEvaluateCompliance
Prevention and best practices
  • After deployment, run a smoke test with a test private endpoint. For services that are not in the policy set, write the zone group yourself in the application template.

See Hour 4 Module 5 · Hour 7 Module 3 DINE failures.

#36 Azure names resolve locally, but on-premises domain names do not resolve from Azure. Resolver endpoint creation fails: Subnet … is delegated to another service
vm-myapp-test$ nslookup db01.corp.contoso.local → NXDOMAIN (Server: 10.0.2.4)
Creating the outbound endpoint: (wording may vary) Subnet snet-dnspr-out … is delegated / already in use …

Root cause: Resolving on-premises names from Azure requires a Resolver outbound endpoint and a forwarding ruleset (corp.contoso.local → 192.168.10.4). The ruleset must be linked to the VNet that sends the queries (or to the hub, if spokes point to the inbound endpoint). Inbound and outbound endpoints cannot share a subnet. The subnet must be /28 to /24 and can only be delegated to Microsoft.Network/dnsResolvers.

Diagnostic commands
az dns-resolver forwarding-rule list -g rg-alz-conn-cc --ruleset-name <ruleset> -o table
az dns-resolver vnet-link list -g rg-alz-conn-cc --ruleset-name <ruleset> -o table
Fix
  • Use a separate snet-dnspr-out (10.0.2.16/28) for the outbound endpoint. Add the forwarding rules and link the ruleset to the hub VNet. Confirm that the firewall/NSG allows port 53 to the on-premises DNS.

See Hour 4 Module 5 · Hour 7 Module 4.

#37 (RequestDisallowedByPolicy) … Deny-Subnet-Without-Nsg: Terraform creates the subnet first and associates the NSG afterwards, which is rejected
(RequestDisallowedByPolicy) Resource 'snet-app' was disallowed by policy. Policy identifiers: '[{"policyAssignment":{"name":"Deny-Subnet-Without-Nsg",…}}]'.

Root cause: Deny-Subnet-Without-Nsg on landingzones and identity requires the subnet to include the NSG in the creation request. An IaC approach that works in two steps (create the subnet, then associate the NSG) is rejected at the first step. Special subnets such as GatewaySubnet and AzureFirewallSubnet are handled by the definition's exclusion parameters (check the assignment parameters).

Diagnostic commands
az policy assignment show -n Deny-Subnet-Without-Nsg --scope /providers/Microsoft.Management/managementGroups/landingzones --query "parameters"
Fix
  • Define the subnet inline in the VNet resource with a networkSecurityGroup (supported by Bicep, AzAPI, and the AVM VNet module). In azurerm, use the form that includes the NSG when the subnet is created (check the provider version documentation).

See Hour 4 Module 7.

#38 A new VNet is automatically associated with a DDoS plan, or fails because of a placeholder plan ID (Enable-DDoS-VNET, Modify)
VNet creation fails: … ddosProtectionPlan … '/subscriptions/00000000-…/…/ddosProtectionPlans/placeholder' not found
or: VNet created successfully, enableDdosProtection=true, and DDoS Network Protection appears on the bill

Root cause: Enable-DDoS-VNET on connectivity and landingzones has a Modify effect: during the request, it writes the plan specified by the ddosPlan parameter onto the VNet. If the parameter is left as a placeholder, the request references a plan that does not exist and fails. If the parameter is filled in, every VNet gets associated. This is expected, but budget for it.

Diagnostic commands
az policy assignment show -n Enable-DDoS-VNET --scope /providers/Microsoft.Management/managementGroups/landingzones --query "{mode:enforcementMode,plan:parameters.ddosPlan.value}"
Fix
  • Decide whether to use Network Protection. If yes, enter the real plan ID (one plan can protect VNets across subscriptions). If no, set that assignment's enforcementMode to DoNotEnforce, or remove it in IaC (policy_assignments_to_modify).

See Hour 4 Module 6 DDoS · Hour 6 Module 2 Overriding policy defaults.

The three paths for a spoke VM, and where each one fails spoke 10.1.0.0/16vm-myapp-test 10.1.1.4rt-snet-app-cc0.0.0.0/0 → 10.0.0.410.0.0.0/12 → 10.0.0.4DNS server 10.0.2.4#31 Default outbound access · #37 NSG policy hub 10.0.0.0/16afw-hub-cc 10.0.0.4DNAT → network → application → default deny (#29)dnspr-hub-cc inbound 10.0.2.4Outbound + ruleset (#36)GatewaySubnet UDR (#30)Peering Initiated / not transitive (#27 #28) InternetApplication rule allows the FQDN spoke B 10.2.0.0/16Forwarded through the firewall Private DNS zoneLinked to hub VNet (#34)A records come from the DINE zone group (#35)
Figure 3-1: For the data plane, check effective routes first. For name resolution, check “who is resolving” first.

“Cannot connect / wrong name resolution” troubleshooting decision tree

Start from the symptom to reach the most likely problem and its first command.

Environment and cost The vnet-hub-cc and vnet-spoke-myapp-cc from hour 4 (if they do not exist, follow the steps in #26 to create two empty VNets). Labs 3-A and 3-C are free. Lab 3-B needs a B1s VM without a public IP (about $0.01–0.02/hour, an example estimate). Delete it right after the lab. Requires Network Contributor on the network resource group.

Lab 3-A: Peering with overlapping addresses (#26)

az group create -n rg-lab8-m3 -l canadacentral --tags env=lab owner=me costCenter=CC-LAB workload=lab8
az network vnet create -g rg-lab8-m3 -n vnet-lab8-dup --address-prefixes 10.1.0.0/16
az network vnet peering create -g rg-lab8-m3 --vnet-name vnet-lab8-dup -n dup-to-hub --remote-vnet <hub-vnet-id> --allow-vnet-access
az network vnet peering create -g rg-alz-conn-cc --vnet-name vnet-hub-cc -n hub-to-dup --remote-vnet $(az network vnet show -g rg-lab8-m3 -n vnet-lab8-dup --query id -o tsv) --allow-vnet-access
(VnetAddressSpacesOverlap) … overlapping address spaces …

The hub already peers with the myapp spoke at 10.1.0.0/16, so the second peering on the hub side fails because of the address conflict.

Cleanup: az group delete -n rg-lab8-m3 --yes (this also deletes the half-created peering).

Lab 3-B: Effective routes and next hop (#28, #31)

az vm create -g rg-lz-myapp-cc -n vm-lab8-test --image Ubuntu2404 --size Standard_B1s --vnet-name vnet-spoke-myapp-cc --subnet snet-app --public-ip-address "" --nsg "" --generate-ssh-keys
NIC=$(az vm show -g rg-lz-myapp-cc -n vm-lab8-test --query "networkProfile.networkInterfaces[0].id" -o tsv)
az network nic show-effective-route-table --ids $NIC -o table
az network watcher show-next-hop -g rg-lz-myapp-cc --vm vm-lab8-test --source-ip 10.1.1.4 --dest-ip 10.2.1.4
Source    State    Address Prefix    Next Hop Type
Default   Active   10.1.0.0/16       VnetLocal
Default   Active   10.0.0.0/16       VNetPeering
{ "nextHopType": "None" }   ← no route to 10.2.0.0/16
After associating rt-snet-app-cc, check again: the next hop becomes VirtualAppliance 10.0.0.4. Cleanup: az vm delete -g rg-lz-myapp-cc -n vm-lab8-test --yes (and delete its NIC and OS disk).

Lab 3-C: Private DNS zone not linked (#34)

az network private-dns zone create -g rg-alz-dns-cc -n privatelink.lab8.internal
az network private-dns record-set a add-record -g rg-alz-dns-cc -z privatelink.lab8.internal -n app -a 10.1.2.10
# From a machine inside the hub (or a container in the VNet via Cloud Shell), resolve app.privatelink.lab8.internal → NXDOMAIN
az network private-dns link vnet create -g rg-alz-dns-cc -z privatelink.lab8.internal -n hub-link -v <hub-vnet-id> -e false

After linking, resolve again through the Resolver inbound endpoint 10.0.2.4, and it returns 10.1.2.10. Cleanup: az network private-dns zone delete -g rg-alz-dns-cc -n privatelink.lab8.internal --yes (delete the link first).

or score ≥ 70% on the quiz

Module 4 · Part A: Management, automation and migration (production problems 39–50)

24:00 – 30:00 · AMA/DCR and DINE, workspace parameters, diagnostic settings, AMBA, Defender costs, backup, Terraform state locks and library pulls, the accelerator, library upgrades, onboarding existing resources, ARG throttling
6 minDINE · pipelines · migration12 problems
Learning objectives
  • Be able to tell whether a management capability that is not working (AMA, diagnostic settings, backup, Defender, AMBA) is caused by a policy parameter, managed identity authorization, a remediation task that has not run, or evaluation delay.
  • Be able to identify the step where a platform pipeline fails: OIDC sign-in → state lock → provider / library pull → plan → approval → apply → post-apply remediation.
  • Be able to write an onboarding plan for an existing subscription that goes “Audit first, pre-exempt, then remediate in batches.”

Type a keyword (such as AMA, workspace, lock, library, Deploy-Accelerator, or throttled) to filter. Click a row to jump to its details.

#39 The DINE did not automatically install AMA or associate the DCR on a new VM. The remediation task shows Failed (AuthorizationFailed)
Remediation task state: Failed
Deployment error: The client '<policy-identity>' … does not have authorization to perform action 'Microsoft.Insights/dataCollectionRuleAssociations/write' …

Root cause: The DINE for VM monitoring depends on three things: ① the user-assigned managed identity for AMA and the DCR IDs in the parameters (the ALZ default value names are ama_user_assigned_managed_identity_id and ama_*_data_collection_rule_id) actually exist; ② the assigned managed identity has the required roles at the VM's scope and in the management subscription where the DCR and UAMI live; ③ existing VMs need a remediation task, because DINE only deploys automatically to newly created or updated resources (and it has an evaluationDelay). The legacy MMA (Log Analytics agent) was retired on 2024-08-31, so do not use the old policies.

Diagnostic commands
az policy state list --resource <vmId> --query "[?complianceState=='NonCompliant'].{a:policyAssignmentName,ref:policyDefinitionReferenceId}" -o table
az policy remediation list --management-group landingzones --query "[].{n:name,state:provisioningState,fail:deploymentStatus.failedDeployments}" -o table
az vm extension list -g <rg> --vm-name <vm> --query "[].name" -o tsv
Fix
  • Add the missing cross-scope roles for the identity (#15), then create remediation tasks for the existing resources (a policy set assignment requires --definition-reference-id).
Prevention and best practices
  • Configure alerts for “remediation task failed” and for “DINE non-compliant count > threshold.” After deploying the accelerator or avm-ptn-alz, check that every assignment with an identity has been authorized.

See Hour 5 Module 2 AMA and DCR · Hour 2 Module 5 Remediation tasks · Hour 7 Module 3.

#40 Deploy-Diag-LogsCat or a monitoring assignment fails to deploy: the Log Analytics workspace parameter is empty or a placeholder (workspace not found)
Error: … policy assignment 'Deploy-Diag-LogsCat' … parameter 'logAnalytics' … value is empty / placeholder
or the remediation deployment: ResourceNotFound … workspaces/law-placeholder …

Root cause: Many ALZ library assignments are parameterized (workspace IDs, DCR IDs, private DNS zone subscriptions, and so on), and they are injected through default value names in alz_policy_default_values.json. In Terraform, if policy_default_values is not passed, or it passes a workspace that has not been created yet (wrong dependency order), the assignments are created with placeholder values.

Diagnostic commands
az policy assignment show -n Deploy-Diag-LogsCat --scope /providers/Microsoft.Management/managementGroups/alz --query parameters.logAnalytics.value -o tsv
az monitor log-analytics workspace show --ids <value from above> --query name -o tsv
Fix
module "alz" {
  source  = "Azure/avm-ptn-alz/azurerm"
  version = "0.23.0"
  # …
  policy_default_values = {
    log_analytics_workspace_id = jsonencode({ value = module.management.log_analytics_workspace.id })
  }
}

Follow the module README for the variable syntax. Create management resources (workspaces, DCRs, UAMIs) before the policy assignments. Express this with the *_dependencies variables, since the module does not support depends_on.

See Hour 2 Module 6 Policy library · Hour 5 Module 1 Workspaces · Hour 6 Module 2.

#41 Duplicate diagnostic settings / reached the limit of 5 diagnostic settings per resource / logs ingested twice
Application teams fail to deploy diagnostic settings: … maximum number of diagnostic settings (5) …
The same resource's logs appear twice in Log Analytics, doubling the cost

Root cause: Each resource can have at most 5 diagnostic settings. ALZ's Deploy-Diag-LogsCat sends allLogs to the central workspace under its own setting name. An application team then created another setting, under a different name, that points to the same workspace, so the logs are ingested twice. When several teams add settings on top of that, they hit the limit.

Diagnostic commands
az monitor diagnostic-settings list --resource <resourceId> --query "[].{n:name,ws:workspaceId}" -o table
Fix
  • One setting per destination. Keep the platform's central setting, and get the logs that application teams need through resource-context access or another workspace (a different destination).

See Hour 5 Module 7 Diagnostic settings · Hour 5 Module 1.

#42 The AMBA alert rules are all deployed, but nobody receives notifications
Azure Monitor → Alerts: there are Fired records, but no email or Teams notifications
The alert rules' actions are empty, or the Action Group's email parameter is empty

Root cause: AMBA (library platform/amba, which deploys the alert rules through policy DINE) hands notifications to Action Groups / alert processing rules. Either the notification parameters were not filled in at deployment, an alert processing rule is suppressing notifications (for example, a maintenance window that was never closed), or the alert rules for existing resources need a remediation task before they are created.

Diagnostic commands
az monitor action-group list --query "[].{n:name,email:emailReceivers[].emailAddress,enabled:enabled}" -o json
az monitor alert-processing-rule list --query "[].{n:name,type:properties.actions[0].actionType,enabled:properties.enabled}" -o table
Fix
  • Fill in the Action Group parameters, then redeploy the AMBA assignments. Find and end leftover suppression rules. Run a remediation task for existing resources. Verify with az monitor action-group test-notifications (check the CLI version for the exact syntax).

See Hour 5 Module 3 AMBA.

#43 Defender for Cloud plan charges appear on the bill after ALZ is deployed (Deploy-MDFC-Config-H224 enables them automatically)
Cost analysis: Microsoft Defender for Cloud charges appear on every subscription the day after deployment
$ az security pricing list --query "[].{n:name,tier:pricingTier}" -o table → Servers/Storage/… Standard

Root cause: Deploy-MDFC-Config-H224 (DINE) at the intermediate root enables Defender plans on each subscription according to its parameters. Plans that are enabled by default in the parameters take effect on every subscription, including sandbox and test subscriptions.

Diagnostic commands
az policy assignment show -n Deploy-MDFC-Config-H224 --scope /providers/Microsoft.Management/managementGroups/alz --query "parameters" -o json | jq 'with_entries(select(.key|test("enable")))'
Fix
  • Set each plan's parameter explicitly in IaC (DeployIfNotExists for the plans you need, Disabled for the rest). For subscriptions where a plan is already enabled but not needed, downgrade it manually (DINE does not roll back).
Prevention and best practices
  • Before deployment, have the Defender plan list signed off by the security team and finance. Set a budget alert for each subscription.

See Hour 5 Module 4 Defender for Cloud · Hour 5 Module 6 Cost.

#44 Deploy-VM-Backup: a VM is not backed up, or a new Recovery Services vault appears in every resource group
Compliance: Deploy-VM-Backup … NonCompliant (existing VMs)
A new RSV appears in the resource group of a new VM (the name is generated by the policy)

Root cause: This assignment is based on the built-in definition that configures backup for VMs without a specified tag, to a new Recovery Services vault. For VMs without an exclusion tag, it creates a vault in the VM's location or resource group and enables the default policy. Existing VMs need a remediation task. VMs with the exclusion tag are skipped. “One vault per RG” is the definition's behavior, and it may not match your centralized backup design.

Diagnostic commands
az policy assignment show -n Deploy-VM-Backup --scope /providers/Microsoft.Management/managementGroups/landingzones --query "{def:policyDefinitionId,p:parameters}"
az backup protection check-vm --vm <vmId>
Fix
  • If you accept this behavior, run the remediation task. If you need a centralized vault, switch to a “backup to a specified vault” definition and override it through policy_assignments_to_modify, or set DoNotEnforce and manage backup yourself.

See Hour 5 Module 5 Update Manager and backup.

#45 Platform pipeline: Error: Error acquiring the state lock (state blob is already locked)
Error: Error acquiring the state lock
Error message: state blob is already locked
Lock Info:
  ID:        6f0c…
  Path:      tfstate/alz-platform.tfstate
  Operation: OperationTypeApply
  Who:       runner@fv-az123
  Created:   2026-11-18 02:13:07 UTC

Root cause: The previous apply was cancelled or timed out, and the blob lease was never released. Alternatively, two pipelines (plan and apply, or two branches) are accessing the same state at the same time.

Diagnostic commands
az storage blob show --account-name <sa> -c tfstate -n alz-platform.tfstate --auth-mode login --query "properties.lease"
Fix
# After confirming that no job is still running
terraform force-unlock 6f0c…
Prevention and best practices
  • Pipeline concurrency groups (GitHub concurrency / the ADO exclusive lock check) keep access to the same state serialized. The plan identity can only read the state, and the apply identity can write to it (this is the accelerator default).

See Hour 6 Module 4 Platform pipeline · Terraform course, hour 8.

#46 Error: Failed to query available provider packages (Azure/alz) / failed to fetch library platform/alz@2026.11.0
Error: Failed to query available provider packages … provider registry.terraform.io/azure/alz …
Error: … failed to fetch library … platform/alz@2026.11.0 … (git / go-getter)

Root cause: The self-hosted runner cannot reach registry.terraform.io or GitHub (outbound firewall rules do not allow it). The version constraint is wrong: the provider is at 0.x, so lock the minor version; avm-ptn-alz 0.23.0 depends on azure/alz ~> 0.21. The library ref is misspelled, or the .alzlib cache is corrupted.

Diagnostic commands
terraform version; terraform providers
curl -sI https://registry.terraform.io/v1/providers/Azure/alz/versions | head -1
curl -sI https://github.com/Azure/Azure-Landing-Zones-Library | head -1
Fix
  • Allow outbound access (or configure a provider network mirror). Use library_references = [{ path = "platform/alz", ref = "2026.11.0" }]. Delete .alzlib, then run terraform init -upgrade (.alzlib should be in .gitignore).

See Hour 1 Module 6 · Hour 2 Module 6 · Hour 6 Module 2.

#47 Deploy-Accelerator: The term 'Deploy-Accelerator' is not recognized / the Bicep bootstrap is missing roleAssignments/write at “/”
Deploy-Accelerator: The term 'Deploy-Accelerator' is not recognized as a name of a cmdlet, function, script file, or executable program.
… does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write' over scope '/' …

Root cause: Running in Windows PowerShell 5.1 or Cloud Shell, without the ALZ module installed. You need PowerShell 7.4+, Azure CLI 2.55.0+, and Git. Proxies and Cloud Shell are not supported. The Bicep path also requires User Access Administrator at the root “/”.

Diagnostic commands
pwsh -c '$PSVersionTable.PSVersion; Get-InstalledPSResource -Name ALZ'
Fix
pwsh -c 'Install-PSResource -Name ALZ; Update-PSResource -Name ALZ; Deploy-Accelerator'

See Hour 1 Module 6 · Hour 6 Module 1 Accelerator end to end.

#48 After upgrading the ALZ library, terraform plan shows many policy and role assignments as “replace,” or the old policy sets are marked deprecated
Plan: 37 to add, 12 to change, 35 to destroy.
# module.alz.azapi_resource.policy_role_assignments["…"] must be replaced
metadata.deprecated = true, supersededBy = "Enforce-Guardrails-Automation_20260910"

Root cause: The library uses calendar versioning. Policy definitions and policy sets are replaced with new versions (old sets are marked deprecated and point to the new ones). When the definition IDs that assignments reference change, the assignments and their managed identities' role assignments are recreated. Resource keys may also change between major module versions (0.x).

Diagnostic commands
terraform plan -out tfplan && terraform show -json tfplan | jq -r '.resource_changes[] | select(.change.actions|index("delete")) | .address' | sort | head -40
Fix
  • Run the upgrade first in a separate test hierarchy (or against another intermediate root ID). Read the library and module release notes. Use moved blocks to keep resources where needed. Upgrade in batches during a maintenance window, and after recreation, check the remediation tasks and the DINE authorizations.

See Hour 2 Module 6 · Hour 6 Module 7 Version upgrades.

#49 After existing subscriptions are onboarded to corp, the current release pipelines are blocked by Deny, and a DINE remediation deploys thousands of resources in one go
Monday 09:00: 12 subscriptions onboarded
From 09:40: application pipelines fail (RequestDisallowedByPolicy) with Deny-Public-Endpoints / Deny-MgmtPorts-Internet …
The remediation task deployed diagnostic settings and zone groups for 1,800 resources all at once → partial failures, and logging costs spike

Root cause: Deny also applies to updates of existing resources, because the whole resource is re-evaluated on PUT. A DINE remediation that runs across an entire MG at once gets out of control on concurrency, quota, and cost. No gap assessment was done before onboarding.

Diagnostic commands
az graph query -q "policyresources | where type=='microsoft.policyinsights/policystates' and properties.complianceState=='NonCompliant' | summarize n=count() by a=tostring(properties.policyAssignmentName), s=subscriptionId | order by n desc" --management-groups corp
Fix
  • Immediately: create exemptions with an expiry date for the affected subscriptions. Before onboarding, you can pre-exempt them with assignmentScopeValidation: DoNotValidate. Batch the remediation tasks per subscription (resourceCount, parallelDeployments, failureThreshold).
  • Afterwards: fix the items on the gap list one by one, then revoke the exemptions.
Prevention and best practices
  • Before onboarding, evaluate in Audit mode (or copy the assignments as DoNotEnforce to the legacy hierarchy). Take inventory with Resource Graph. Onboard in batches, and have a rollback plan.

See Hour 7 Module 1 Brownfield assessment · Hour 7 Module 2 · Hour 2 Module 5 Exemptions.

#50 (RateLimiting) Client application has been throttled and should not attempt to repeat the request until an amount of time has elapsed.
(RateLimiting) Client application has been throttled and should not attempt to repeat the request until an amount of time has elapsed.

Root cause: The inventory and compliance script calls Resource Graph in a loop for each subscription. ARG has a per-user quota (for example, 15 calls every 5 seconds, with the response headers x-ms-user-quota-remaining and x-ms-user-quota-resets-after). Each call returns at most 1,000 rows, so results must be paged.

Diagnostic commands
az graph query -q "resources | summarize count()" --management-groups alz --debug 2>&1 | grep -i "x-ms-user-quota"
Fix
  • Run one query across the whole MG (--management-groups alz) instead of looping per subscription. Page with skipToken. Back off based on the response headers. Cache results in storage so reports can reuse them.

See Hour 2 Module 7 Compliance and Resource Graph.

A platform pipeline change, from PR to compliance OIDC sign-in#22 #23 init#46 library / provider State lock#45 plan + approval#48 mass replacement apply#15 #40 #13 Remediation and compliance#39 #42 #44 “Deployment succeeded” does not mean “the platform is usable.” After apply, also check: ① Every assignment with an identity has been authorized (including cross-subscription) ② Remediation tasks have run against existing resources ③ Parameters contain no placeholder values (workspace, DCR, DNS zone subscription) ④ DINE and Modify effects that incur costs (Defender, backup, DDoS, and so on) match the budget ⑤ The compliance evaluation has finished (about 30 minutes) before the subscription is handed over
Figure 4-1: The six pipeline steps and the five checks after apply

Platform pipeline failure simulator

Choose a scenario and click “Run” to see the step where a platform change fails, and the state it leaves behind. The flow is simplified from the plan/apply split pipeline that the IaC Accelerator generates.

$ Waiting to run…
Environment and cost Sandbox tenant; resource group rg-lab8-m4; one storage account (for the state lab, almost free). Requires Subscription Contributor and Resource Policy Contributor (Lab 4-A also needs User Access Administrator).

Lab 4-A: A Modify assignment without authorization → remediation fails → succeeds after authorization (#39, #15)

az group create -n rg-lab8-m4 -l canadacentral --tags env=lab owner=me costCenter=CC-LAB workload=lab8
az group update -n rg-lab8-m4 --set tags.workload=lab8
# Inherit a tag from the resource group if missing (Modify, requires Contributor)
az policy assignment create --name lab8-inherit --policy ea3f2387-9b95-492a-a190-fcdc54f7b070 \
  --scope /subscriptions/$SUB_LZ/resourceGroups/rg-lab8-m4 --params '{"tagName":{"value":"workload"}}' \
  --mi-system-assigned --location canadacentral
az storage account create -g rg-lab8-m4 -n stlab8m4$RANDOM --sku Standard_LRS --public-network-access Disabled --tags env=lab owner=me costCenter=CC-LAB
A new assignment takes effect about 5 minutes later. A storage account created right after it will not get its tag added at request time, so it becomes an “existing non-compliant” resource. The CLI does not grant the identity any role unless you pass --role or --identity-scope. After about 15 minutes (or run az policy state trigger-scan -g rg-lab8-m4), create the remediation task:
az policy remediation create -n lab8-rem --policy-assignment lab8-inherit -g rg-lab8-m4
az policy remediation show -n lab8-rem -g rg-lab8-m4 --query "{state:provisioningState,fail:deploymentStatus.failedDeployments}"
{ "state": "Failed", "fail": 1 }
Authorize and retry:
PID=$(az policy assignment show -n lab8-inherit -g rg-lab8-m4 --query identity.principalId -o tsv)
az role assignment create --assignee-object-id $PID --assignee-principal-type ServicePrincipal --role Contributor --scope /subscriptions/$SUB_LZ/resourceGroups/rg-lab8-m4
az policy remediation create -n lab8-rem2 --policy-assignment lab8-inherit -g rg-lab8-m4

A role you just granted may take a few minutes to take effect (#13).

Lab 4-B: State lock (#45, requires Terraform)

Using a minimal configuration (containing only azurerm_resource_group), configure the azurerm backend to point to a storage container in rg-lab8-m4. In terminal A, run terraform apply and stop at the confirmation prompt. In terminal B, run terraform plan.
Error: Error acquiring the state lock
Error message: state blob is already locked
Cancel in terminal A (Ctrl+C usually releases the lock). If the lock remains: terraform force-unlock <ID>.

Lab 4-C: Dry run before onboarding (#49)

Copy the key corp Deny assignments to the subscriptions to be onboarded, at their current location, as DoNotEnforce, and observe which resources would become non-compliant:
az policy assignment create --name lab8-preview-pe --policy-set-definition Deny-PublicPaaSEndpoints \
  --scope /subscriptions/<subscription-to-onboard> --enforcement-mode DoNotEnforce
az policy state trigger-scan --subscription <subscription-to-onboard> --no-wait

The policy set must be in a visible scope (the definition is at alz, and the subscription must sit under it). If the subscription is not under alz, use the matching built-in definition instead. After about 30 minutes, review the non-compliant list and use it as the onboarding remediation plan.

Cleanup: az policy assignment delete --name lab8-preview-pe --scope /subscriptions/<sub>; az policy assignment delete --name lab8-inherit -g rg-lab8-m4; az group delete -n rg-lab8-m4 --yes.

Teaching videos

▶
Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules
English · AVM team on platform subscription design (covers the subscription boundaries in #43 and #49) · oEmbed already verified
▶
Azure Policy Remediation Deep Dive — John Savill's Technical Training
English · Managed identities and remediation tasks (covers #39 and #35)
▶
Azure Resource Graph Deep Dive — John Savill's Technical Training
English · Inventory, paging and throttling (covers #49 and #50)

No verified video was found that covers AMBA notifications or ALZ platform pipeline troubleshooting specifically.

Storyboard (3 minutes) Shot 1: Create a new VM. After ten minutes, the compliance page shows the AMA policy as NonCompliant. Shot 2: Open the remediation task. It shows a red Failed status. Expand the deployment error to see AuthorizationFailed and the action name. Shot 3: Check the role assignments of the assignment's identity, and find that the authorization for the management subscription is missing. Shot 4: Grant the missing authorization and recreate the remediation task. The VM extensions list shows AzureMonitorLinuxAgent, and the DCR association appears.

Official documentation

or score ≥ 70% on the quiz

Module 5 · Part B: Architecture and design areas (interview questions 1–13)

30:00 – 37:00 · Definitions and value, design areas and principles, management group hierarchy, corp/online, sandbox and decommissioned, subscription policies, deployment options, architecture definition, multi-region, responsibility boundaries
7 minCAF Ready · design areas · hierarchy13 questions
Learning objectives
  • Explain ALZ in one sentence: a policy-driven platform baseline built on CAF design areas and principles (a management group hierarchy, platform subscriptions, policies and roles, and networking and management services), which lets application teams get a compliant environment on a self-service basis, one subscription at a time.
  • Be able to draw the 12 default management groups on a whiteboard, and explain why each level exists and why it is not split by environment or region.
  • Be able to explain the 2026 deployment options: the IaC Accelerator (Terraform / Bicep AVM) is recommended, the portal accelerator is the alternative, caf-enterprise-scale has been archived, and the classic ALZ-Bicep will be archived on 2027-02-16.

Scan the questions and their focus areas first, and mark the ones you are not sure about. Click a row to jump to its detailed answer.

Q1. What is an Azure Landing Zone? What is the difference between a platform landing zone and an application (workload) landing zone? Beginner
30-second answer

An Azure Landing Zone is an artifact of the CAF Ready phase: a scalable Azure environment baseline built on design areas. A platform landing zone is a set of shared service subscriptions that are operated centrally (management, connectivity, identity, security) and owned by the platform team. An application / workload landing zone is a subscription placed under landingzones (corp or online). It is handed to application teams and inherits the platform's policies, networking, and monitoring.

In-depth answer
  • Value: consistent governance (policies and RBAC inherited from the MG), self-service at the subscription level (subscription democratization and vending), and reuse of shared services (hub networking, logging, identity).
  • ALZ is a “conceptual architecture plus reference implementation.” The design areas and principles are the content, and the IaC Accelerator, avm-ptn-alz, and Bicep AVM are the ways to implement them.
  • Microsoft documentation now calls application landing zones “workload landing zones.”
Common follow-up
  • Do you still need one for just a single application? Yes, in a version scaled to the need. You can start with at least two platform subscriptions (Management and Connectivity) (Q10).
Bonus points

Say that “a landing zone is delivered per subscription,” and state clearly where the responsibilities of the platform team and the application team split (Q13).

Common wrong answers

“A landing zone is just a hub-spoke network / a single Terraform module.” Networking is only one of the eight design areas.

See Hour 1 Module 1 · Module 3.

Q2. What are the eight ALZ design areas? How are they grouped? Beginner
30-second answer

Environment-related: Azure billing and the Entra tenant, identity and access management, resource organization, and network topology and connectivity. Compliance-related: security, management, governance, and platform automation and DevOps. The environment-related areas decide how the foundation is built. The compliance-related areas decide how it stays secure, operable, and auditable once it is built.

In-depth answer
  • Each design area has design considerations and recommendations that end up in concrete implementations: resource organization → management groups and subscriptions; governance → Azure Policy; management → Log Analytics, AMA, and AMBA; platform automation → IaC and pipelines.
  • When you review a design, use the design areas to classify each decision. This avoids arguments about “who owns this decision” (the troubleshooting case in hour 1 Module 2).
Common follow-up
  • Which design area is the hardest to change? Billing and tenants, and network address planning. If you get them wrong, you have to migrate subscriptions or rebuild VNets.
Bonus points

Give an example of a decision that spans several areas: “no public access for PaaS” belongs to security, networking, and governance at the same time.

Common wrong answers

Treating the CAF stages (Strategy, Plan, Ready…) as design areas.

See Hour 1 Module 2.

Q3. What are the five ALZ design principles? Which one is violated most often? Intermediate
30-second answer

Subscription democratization, policy-driven governance, single control and management plane, application-centric service model, and alignment with Azure-native design and the roadmap. The principles most often violated are policy-driven governance and subscription democratization: manual approvals replace policy guardrails, or all applications are crammed into one large subscription.

In-depth answer
  • Policy-driven means using Deny, Modify, and DINE to keep compliance automatic, rather than relying on tickets. Approvals are only for exceptions (exemptions).
  • Single control plane means managing through Azure-native tooling wherever possible (Policy, Monitor, Defender). It avoids parallel third-party control planes that create two sources of truth.
Common follow-up
  • How do you put “alignment with the roadmap” into practice? Follow the ALZ library's calendar-version upgrades, and migrate retired services promptly (MMA, non-AZ gateways, caf-enterprise-scale).
Bonus points

Point out the tension between principles: subscription democratization (freedom) is balanced by policy-driven governance (guardrails).

Common wrong answers

“The principles are hub-spoke, zero trust, multi-region…” Those are design choices, not ALZ principles.

See Hour 1 Module 2.

Q4. Draw the default ALZ management group hierarchy, and explain why there are no management groups for dev / test / prod. Beginner
30-second answer

Tenant root → intermediate root alz → platform (security, management, connectivity, identity), landingzones (corp, online, local), sandbox, and decommissioned: 12 in total. Apart from the intermediate root, the IDs have no prefix. Management groups are split by differences in governance needs (different policies and access). Environment differences usually do not need different “security baselines.” Express environments with subscriptions, and express differences with parameterized assignments.

In-depth answer
  • Purpose of the intermediate root: policies are not placed directly on the tenant root, which leaves room for rollback and for running a parallel second hierarchy (for example, to test one).
  • Consequences of splitting MGs by environment: policy drift between dev and prod for the same application, moving subscriptions during migrations, and a deeper hierarchy (the 6-level limit, #6).
  • CAF recommends 3–4 levels.
Common follow-up
  • What are security and local for? security holds the Sentinel / SIEM subscriptions. local holds Azure Local hybrid workloads. Both were added recently.
Bonus points

Mention the default management groups, and the hierarchy setting that requires authorization (#3).

Common wrong answers

“Split MGs by region so regional policies are easier to manage.” Regions are expressed with the Allowed locations parameter instead.

See Hour 1 Module 4.

Q5. What is the difference between corp and online? Where should an application go if it must serve HTTPS to the public and also access an on-premises database? Intermediate
30-second answer

corp is for workloads that need to communicate with on-premises or internal networks and are not directly exposed to the internet. It has 5 additional assignments (Deny-Public-Endpoints, Deny-Public-IP-On-NIC, Deny-HybridNetworking, Deploy-Private-DNS-Zones, Audit-PeDnsZones), and gets hybrid connectivity through hub peering. online is for workloads that are directly internet-facing. ALZ's default is 0 additional assignments. For a public app that also needs on-premises access, usually put it in corp, and publish it to the public through a centralized platform entry point (Front Door Premium with a Private Link origin, or an App Gateway WAF in the hub), with the back end kept private.

In-depth answer
  • The cost of putting it in online is that you either lose hybrid connectivity, or you break the isolation assumption that online does not connect to the internal network.
  • The difference is the policy, not the network topology itself. Both can be spokes.
Common follow-up
  • Can PaaS in online use private endpoints? Yes, but it is not enforced.
Bonus points

Point out that corp's private DNS depends on the centralized zones in connectivity and on DINE (#35).

Common wrong answers

“online = no security policies at all.” Dozens of assignments from the intermediate root and landingzones still apply to it.

See Hour 4 Module 7 · Hour 1 Module 5.

Q6. What is the purpose of the sandbox and decommissioned management groups? Beginner
30-second answer

sandbox is for experiments and learning. The Enforce-ALZ-Sandbox policy denies some resource types and blocks VNet peering, which keeps the experimental environment isolated from the enterprise network. decommissioned holds subscriptions waiting to be cancelled. Enforce-ALZ-Decomm denies creating new resources and shuts down VMs. The subscription is cancelled after the retention period ends.

In-depth answer
  • Sandbox subscriptions can have budgets and automatic cleanup. Pointing the default MG at sandbox is a common practice (#3).
  • Decommissioning process: move to decommissioned → observation period → export audit evidence → cancel the subscription. Resources protected by denyAction must be handled beforehand (#12).
Common follow-up
  • Should people in the sandbox be able to access company data? No. There is no peering and no hybrid connectivity, and data access goes through the normal approval process.
Bonus points

Describe decommissioned as “a deletion that can be reversed.”

Common wrong answers

“Sandbox is just the dev environment.” Dev is a subscription in an application landing zone, and it must be governed the same way as prod.

See Hour 1 Module 4.

Q7. Why is the subscription called the “unit of scale”? How many subscriptions does the platform need? Intermediate
30-second answer

A subscription is the boundary for management, billing, and scale. Quotas and limits (for example, 980 resource groups and 5,000 role assignments), RBAC and policy scope, and cost attribution all work per subscription. ALZ recommends 4 dedicated platform subscriptions: management, security, connectivity, and identity (do not merge them). Small and mid-sized businesses should start with at least two: Management and Connectivity. Applications are delivered through vending automation, one subscription per application per environment.

In-depth answer
  • Subscriptions are not tied to a region, and Quota Groups can share quota across subscriptions.
  • Having many subscriptions costs almost nothing. The management overhead is handled by automation (vending and policy inheritance).
Common follow-up
  • Is one large subscription with many resource groups not acceptable? It makes it hard to differentiate RBAC and policy, quotas and throttling affect each other, and cost attribution depends on tagging discipline.
Bonus points

Mention setting “subscription leaves/enters directory” to Permit no one.

Common wrong answers

“Fewer subscriptions are easier to manage.”

See Hour 2 Module 1.

Q8. What options are there for deploying ALZ in 2026? Which would you recommend? Intermediate
30-second answer

I recommend the Azure Landing Zones IaC Accelerator (the Deploy-Accelerator command in the ALZ PowerShell module). It has four stages: Planning → Prerequisites → Bootstrap → Run. It generates AVM-based Terraform or Bicep code, the repositories (GitHub, Azure DevOps, or local), identities, and pipelines. The alternative is the portal accelerator (a wizard that is less flexible and harder to update). Legacy implementations: the Terraform caf-enterprise-scale was archived on 2026-09-15, and the classic ALZ-Bicep will be archived on 2027-02-16.

In-depth answer
  • Terraform path: Azure/avm-ptn-alz/azurerm 0.23.0 + the Azure/alz provider (which reads the ALZ library). Bicep path: AVM modules + deployment stacks.
  • Basis for the choice: the team's existing IaC skills and state management preferences, not feature differences.
Common follow-up
  • What if you already deployed with the portal accelerator? Import it into IaC management, or rebuild in parallel under a new intermediate root and then migrate the subscriptions.
Bonus points

Emphasize upgradability. The IaC approach can follow library version upgrades (#48, Q43).

Common wrong answers

Recommending that new 2026 projects keep using the caf-enterprise-scale module.

See Hour 1 Module 6 · Hour 6 Module 1.

Q9. Where does ALZ sit in CAF? What should happen before and after Ready? Beginner
30-second answer

The CAF Azure adoption stages are Strategy, Plan, Ready, Adopt, Govern, Secure, and Manage. ALZ is the core deliverable of Ready. Before it, you need a strategy and an adoption plan (business motivation, workload inventory, skills plan). After it, you migrate or create workloads in Adopt, and keep operating and improving the platform through Govern, Secure, and Manage.

Common follow-up
  • Is the landing zone finished once it is built? No. It is a product that keeps evolving (Q45).
Bonus points

Describe the readiness review as the gate to entering Adopt: are identity, networking, policy, and monitoring in place?

Common wrong answers

“Migrate first, and add the landing zone later.” This leads to large-scale brownfield remediation (#49).

See Hour 1, Module 1.

Q10. Does a 50-person company with only 3 applications need a full ALZ? Intermediate
30-second answer

You need the principles and skeleton of ALZ, but sized to fit: keep the intermediate root and the default hierarchy (almost zero cost), the default policies (Audit first, then Deny), and at least two platform subscriptions (Management and Connectivity). Connectivity can start small: Azure Firewall Basic, or no firewall yet, and no ExpressRoute (ER). Generate the IaC with the accelerator, so you won't have to tear anything down when you grow.

Deeper answer
  • Cost saving: enable hourly-billed components (firewalls, gateways, Bastion Standard, DDoS Network Protection) only when you need them. Adjust the DDoS Modify assignment to match (#38).
  • Don't cut these: the identity baseline (PIM, or at least no standing Owner and emergency access accounts), logging, and budgets.
Common follow-ups
  • The CTO says "wait until we have 30 subscriptions"? The later you add the hierarchy and policies, the more expensive it is to fix existing resources.
Bonus points

Present a right-sized, phased roadmap with a cost estimate.

Common wrong answers

"Small companies don't need management groups."

See Hour 1, Module 3 · Module 8.

Q11. What are the archetype and architecture definition in the ALZ library? How do you customize them? Advanced
30-second answer

An archetype is a named set of policy definitions, policy sets, assignments, and role definitions (for example root, platform, landing_zones, corp). An architecture definition describes the management group tree and binds an archetype to each MG (the default alz architecture). The alz provider reads the library (library_references, for example platform/alz 2026.11.0) and merges your custom library (custom_url). avm-ptn-alz then deploys the result.

Deeper answer
provider "alz" {
  library_references = [
    { path = "platform/alz", ref = "2026.11.0" },
    { custom_url = "${path.root}/lib" }      # Overrides: archetype_override, custom architecture, extra assignments
  ]
}
  • Common customizations: change MG IDs or display names, add or remove assignments (policy_assignments_to_modify, archetype overrides), and set default parameter values (policy_default_values).
  • The library also includes platform/amba and platform/slz (sovereign Landing Zone).
Common follow-ups
  • Why not copy the library files and edit them directly? You can't merge upstream changes when you upgrade.
Bonus points

Mention that the provider is pre-1.0 (0.x), so pin the minor version, and add .alzlib to .gitignore.

Common wrong answers

"An archetype is just a Terraform module."

See Hour 2, Module 6 · Hour 6, Module 2.

Q12. How does ALZ support multiple regions? What do you need to do when a second region goes live? Advanced
30-second answer

Management groups and policies are global, so you don't copy them per region. What you deploy per region is connectivity (one hub or vWAN hub per region, plus firewall, gateways, and Resolver), the private DNS design (privatelink zones are global, but regional services still need a region parameter), and parameters such as Allowed locations. To bring up a second region, add a hub (with a non-overlapping address pool, for example pool-ce 10.16.0.0/12), connect the hubs and set up routing between them, update DNS forwarding, and update the policy parameters and AMBA alert scope.

Deeper answer
  • Logging: usually keep one workspace, or split by region to meet data residency requirements (hour 5).
  • vWAN routing intent: cross-hub inspection requires every hub to have it enabled.
Common follow-ups
  • Should you create MGs per region? No (Q4).
Bonus points

Mention the IPAM root pool and regional child pool design (the convention from hour 4).

Common wrong answers

"Copy the whole ALZ setup to the second region."

See Hour 4, Module 1 · Module 2 · Hour 7, Module 6.

Q13. In ALZ, what does the platform team own, and what does the application team own? Intermediate
30-second answer

Platform team: management groups and policies, platform subscriptions (hub networking, DNS, logging, identity services), subscription vending, platform IaC and upgrades, and the shared security baseline and operations (alerts, Defender, the cost framework). Application team: resources in their own subscriptions, application architecture, configuration within the guardrails, application-level monitoring and backup, and cost optimization. The boundary is enforced with subscriptions + roles + policy. Application teams get Application-Owners-style roles within their subscriptions, but they can't change VNets, routes, or policies.

Deeper answer
  • Use a RACI to settle the gray areas, such as firewall rule changes, new DNS zones, exemption approvals, and quota requests.
  • Treat the platform as a product: self-service templates, documentation, and SLAs (Q45).
Common follow-ups
  • What if the application team asks for Owner? Give them a constrained role such as Subscription-Owner or Application-Owners, or delegate with a conditional RBAC Administrator role.
Bonus points

Point out that the NotActions in the ALZ library's custom roles are what enforce this boundary.

Common wrong answers

"The platform team approves every resource." That goes against subscription democratization.

See Hour 3, Module 2 · Hour 7, Module 6.

Interview whiteboard diagram: the 12 default management groups and key assignments (Q4–Q6) Tenant root group alz (17 assignments) platform (40) landingzones (53) sandbox (1) decommissioned (1) security · managementconnectivity (1) · identity (4) corp (5) · online (0) · local (1) The numbers in parentheses are the policy assignments made directly on that MG in library 2026.11.0. Child MGs inherit all assignments from their parent.
Figure 5-1: draw the hierarchy first, then explain why each layer exists.

Scenario 5-1: The data team wants a separate management group for each of dev, test, and prod.

Their reason is that prod needs stricter policies. How do you respond, and what alternative do you propose?

Reference answer key points
  • Split MGs by governance requirements, not by environment. Dev and prod should share the same security baseline. Otherwise, a deployment that passes in dev can still fail in prod.
  • Alternative: one subscription per application per environment, all under corp/online. Express the extra prod requirements with subscription-level assignments, resourceSelectors, or parameters (for example, a stricter SKU allow list or a backup policy).
  • Keep the hierarchy at 3–4 levels to avoid the 6-level limit (#6) and the migration cost.

Scenario 5-2: A company deployed ALZ with the portal accelerator and now wants it to be auditable and upgradable.

The team has Terraform experience. Describe a migration path to IaC.

Reference answer key points
  • Inventory: use Azure Resource Graph to export the existing MGs, assignments, exemptions, roles, and platform resources.
  • Two options: (1) build the hierarchy in parallel on a new intermediate root using the accelerator and avm-ptn-alz, then move subscriptions in batches (run Audit first to compare differences); or (2) write import blocks for the existing resources and bring them under management step by step (more work, and prone to drift).
  • Introduce a pipeline that separates plan and apply, use OIDC identities, and pin the library version. After that, upgrade by the library's calendar versions.
or score 70% or higher on the quiz

Module 6 · Part B: Governance and Identity (interview questions 14–25)

37:00 – 44:00 · Policy effects and evaluation order, DINE and remediation, exemptions and exclusions, safe rollout, policy as code, RBAC responsibilities, PIM and emergency accounts, workload identity, managed identities, Lighthouse, tags and cost
7 minPolicy · RBAC · Entra12 questions
Learning objectives
  • Be able to recite the official evaluation order and explain why it is designed that way (modify before deny, denyAction last, AINE/DINE after the resource provider succeeds).
  • Be able to design a safe rollout flow of Audit → DoNotEnforce/Enroll → Deny, and to govern exemptions.
  • Be able to explain the ALZ identity model: people use Entra + PIM + Conditional Access (CA), machines use federated credentials or managed identities, and cross-tenant access goes through Lighthouse.

Scan the questions and focus areas first. Click a row to jump to the detailed answer.

Q14. What are the Azure Policy effects? What is the evaluation order for a create request? Intermediate
30-second answer

There are 11 effects: addToNetworkGroup, append, audit, auditIfNotExists, deny, denyAction, deployIfNotExists, disabled, manual, modify, and mutate. The official order for create and update requests is: disabled → append and modify → deny → audit → manual → auditIfNotExists → denyAction. After the resource provider returns success, auditIfNotExists and deployIfNotExists are evaluated. When several assignments overlap, their effects accumulate and the strictest result applies.

Deeper answer
  • modify before deny: after modify fills in missing properties, the request may already be compliant. This is the basis for combining a Deny on the resource group with Modify on the resource.
  • deny before audit: a single request should not be both denied and audited.
  • A PATCH that only changes tags evaluates only the policies with tag conditions.
Common follow-ups
  • What if Modify conflicts? conflictEffect defaults to deny. You can set it to audit or disabled.
Bonus points

Mention the Resource Manager mode and the resource provider mode (for example, mutate in Microsoft.Kubernetes.Data).

Common wrong answers

"Effects run in the order the assignments were created."

See Hour 2, Module 4.

Q15. When should you use Deny, Audit, Modify, or DINE? Why does ALZ mix them? Intermediate
30-second answer

Deny: rules where a violation is unacceptable and the application team can fix it itself (public management ports, HTTP-only storage). Audit/AINE: rules to observe first, or rules that can't be enforced. Modify: properties that can be safely filled in automatically (tag inheritance, DDoS association). DINE: rules that need a companion resource (diagnostic settings, AMA, private DNS zone groups, backup). ALZ mixes them to balance guardrails and automation: it doesn't deny what it can fix automatically, and it denies only what must be denied.

Deeper answer
  • DINE and Modify need a managed identity and remediation tasks. Deny needs a clear non-compliance message and an exemption process.
  • DenyAction protects critical resources from deletion (DenyAction-DeleteUAMIAMA).
Common follow-ups
  • Why not Deny everything? That turns the platform into a ticketing system, which goes against subscription democratization.
Bonus points

Give examples of DoNotEnforce assignments in ALZ (Enforce-Subnet-Private, Enforce-GR-Network0) to illustrate the observe-first approach.

Common wrong answers

"DINE fixes all existing resources immediately."

See Hour 1, Module 5 · Hour 2, Module 4.

Q16. How does DINE work? Why do remediation tasks often fail? Advanced
30-second answer

After a resource is created or updated successfully, DINE waits for the evaluationDelay (default PT10M) and then evaluates the existenceCondition. If the condition is not met, it deploys the ARM template from the policy definition using the assignment's managed identity. The existence check uses the caller's identity, and the deployment uses the assignment's identity. Existing resources are only marked non-compliant and need a remediation task. Common causes of failure: the identity is missing a role (especially across subscriptions, #35/#39), unresolved parameter placeholders (#40), the target resource is blocked by a Deny, and concurrency and quota limits.

Deeper answer
  • An assignment can have only one identity (system-assigned or user-assigned). A system-assigned identity requires a location.
  • Remediation tasks: resourceCount defaults to 500 with a maximum of 50,000, parallelDeployments ranges from 1 to 30 and defaults to 10, plus failureThreshold. A policy set assignment requires policyDefinitionReferenceId.
  • The portal grants the role automatically. The CLI and IaC don't (#15).
Common follow-ups
  • What are the benefits of a user-assigned identity? You can grant access in advance, reuse it across several assignments, and avoid the cycle of “recreate assignment → new identity → grant access again”.
Bonus points

Describe monitoring: an alert for remediation failures, plus a trend of non-compliant resources.

Common wrong answers

"DINE runs with the deployer's permissions."

See Hour 2, Module 5 · Hour 7, Module 3.

Q17. What is the difference between an exemption and an exclusion (notScopes)? How do you govern exemptions? Intermediate
30-second answer

notScopes means the scope is not evaluated at all and doesn't appear in compliance reporting. An exemption makes a resource show as Exempt, but it still counts in compliance reporting. You can set a category (Waiver or Mitigated), an expiration date, and exempt only some policies in a policy set (policyDefinitionReferenceIds). Governance: every exemption needs an expiration date, an owner, and a justification. Approve exemptions through a PR, and regularly report exemptions that are about to expire or have no expiration date.

Deeper answer
  • After an exemption expires, the exempted object stays, but the exemption no longer applies. Changes to exemptions trigger an evaluation.
  • To exempt resources before they migrate in: assignmentScopeValidation: DoNotValidate (preview).
  • Limit: 1,000 exemptions per scope.
Common follow-ups
  • What permissions do you need to create an exemption? policyExemptions/write, plus exempt/Action on the target assignment.
Bonus points

Use Mitigated when the requirement is already met by other means (for example, a third-party WAF). Use Waiver when you accept the risk.

Common wrong answers

"Exclusions are safer than exemptions." Exclusions make the risk disappear from the reports.

See Hour 2, Module 5 · Module 8.

Q18. How do you safely roll out a new Deny policy without disrupting production? Advanced
30-second answer

Four steps: (1) Run Audit (or a Deny definition with enforcementMode: DoNotEnforce) for 1–2 weeks. Use compliance data and the activity log to find deployments that would be blocked. (2) Work with application teams to fix them, or grant bulk exemptions. (3) Enable the policy gradually by scope: start with sandbox or non-production subscriptions, or roll out in batches using resourceSelectors or Enroll mode. (4) Switch to Deny, monitor the number of RequestDisallowedByPolicy results, and prepare a rollback plan (change the overrides back to Audit).

Deeper answer
  • overrides (kind policyEffect) can change an assignment's effect without changing the definition. Up to 10 per assignment.
  • Write the non-compliance message so it clearly states the reason and where to request an exemption.
Common follow-ups
  • What's the difference between DoNotEnforce and Disabled? DoNotEnforce still evaluates and reports compliance but doesn't enforce the effect. Disabled doesn't evaluate at all.
Bonus points

Run what-if in CI to catch Deny violations earlier, at the PR stage.

Common wrong answers

"Assign Deny at the root on Friday afternoon."

See Hour 2, Module 3 · Hour 7, Module 3.

Q19. What is policy as code? How do EPAC and avm-ptn-alz differ in managing policy? Advanced
30-second answer

Policy as code means definitions, policy sets, assignments, and exemptions are stored in Git. They go through PR review, are tested in non-production tiers, are deployed by a pipeline, and are checked for drift. avm-ptn-alz uses the ALZ library as its source and manages the “ALZ baseline plus a small set of customizations”. Enterprise Policy as Code (EPAC) is a PowerShell solution. It excels at managing large numbers of custom policies and exemptions, uses separate plan and deploy stages, and handles deduplication and drift (it can take over existing assignments). The two can coexist, but you need clear ownership so the same assignment isn't managed by both tools.

Deeper answer
  • EPAC's plan stage generates a diff file, and the deploy stage applies it (policies and role assignments are deployed separately).
  • Testing: deploy the same code to a separate intermediate root (for example, epac-dev).
Common follow-ups
  • Do exemptions go in Git too? Yes, with expiration dates and approval records.
Bonus points

Describe an “ownership map”: which MG, and which object types, are managed by which tool.

Common wrong answers

"Change it in the portal, then export it to Git."

See Hour 6, Module 6 (Policy as code).

Q20. At which level should roles be assigned in ALZ? Which roles do the platform and application teams use? Intermediate
30-second answer

Put policies on management groups, but put roles on subscriptions or resource groups wherever possible. On MGs, only the platform team (eligible through PIM) and the deployment identities go here: the apply UAMI is Owner of the intermediate root, and the plan UAMI is Reader. Application teams use constrained roles on their subscriptions (the ALZ library's Subscription-Owner and Application-Owners, whose NotActions exclude authorization writes and core network writes). The network team uses Network-Management, and the security team uses Security-Operations.

Deeper answer
  • Limit: 5,000 role assignments per subscription. Assign roles to groups, not individuals.
  • If application teams need to grant access to managed identities themselves: RBAC Administrator with a condition (it can only grant specified roles).
Common follow-ups
  • Why not put roles on the MG? The inheritance scope is too broad, it violates least privilege, and moving a subscription would then change its permissions.
Bonus points

Mention placing custom role definitions on the intermediate root (#17).

Common wrong answers

"Give the application team Owner on the subscription. It's convenient."

See Hour 3, Module 2 · Module 3.

Q21. How do you design privileged access in ALZ? How do PIM, emergency access accounts, and Conditional Access work together? Advanced
30-second answer

No standing privileges. Platform admins' Owner and Contributor roles on the intermediate root or subscriptions are all PIM-eligible. Activation lasts 1–24 hours and requires MFA, a justification, and approval for critical roles. Use at least two cloud-only emergency access accounts with FIDO2 keys, a permanently active Global Administrator role, exclusion from blocking CA policies, sign-in alerts, and a drill every 90 days. CA requires admins to use phishing-resistant MFA and compliant devices. Licensing: PIM requires P2 or ID Governance, and CA requires P1.

Deeper answer
  • PIM settings are configured per role and per resource. They are not inherited and have no default approvers, so configure them consistently with IaC or scripts.
  • Run access reviews regularly to remove eligible assignments that are no longer needed.
  • Enforced MFA doesn't affect managed identities or service principals. Don't use user accounts for automation (#20).
Common follow-ups
  • What happens when a license expires? Eligibility is removed, and time-limited activations become permanent (#19).
Bonus points

Send emergency account sign-in alerts to the SOC, and keep drill records as audit evidence.

Common wrong answers

"Emergency accounts should also require MFA and compliant devices, for consistency." That would lock you out if CA fails.

See Hour 3, Module 4 · Module 5.

Q22. How does a platform pipeline access Azure without secrets? Why are the plan and apply identities separate? Intermediate
30-second answer

Use workload identity federation. GitHub or Azure DevOps issues an OIDC token, and Entra matches the issuer, subject, and audience against the federated credential on the UAMI and exchanges the token for an access token. No long-lived secret is involved. The plan identity has only Reader and state-read permissions, so it can run on PRs. The apply identity is Owner of the intermediate root and trusts only a protected environment (with approval). That way, malicious code in a PR can't get write access.

Deeper answer
  • Limit: 20 federated credentials per UAMI, and no wildcards. New credentials take time to propagate (AADSTS70021).
  • The identity used for Bicep What-If needs extra whatIf / validate actions (in a custom role).
Common follow-ups
  • What goes in the subject? For a GitHub environment: repo:org/repo:environment:prod. For a branch: …:ref:refs/heads/main.
Bonus points

Connect this design to the MFA enforcement that started in 2025-10.

Common wrong answers

"Store the service principal's client secret in GitHub Secrets."

See Hour 3, Module 6 · Hour 6, Module 4.

Q23. How do you choose between system-assigned and user-assigned managed identities? Where does ALZ use UAMIs? Beginner
30-second answer

System-assigned: the lifecycle follows the resource, which suits a single resource that needs to access other services. User-assigned: an independent resource. You can grant access in advance, share it across resources, and keep its permissions when a resource is rebuilt. In ALZ, AMA uses a central UAMI (protected by DenyAction-DeleteUAMIAMA), and the accelerator's plan and apply deployment identities are also UAMIs. DINE assignments mostly use system-assigned identities.

Common follow-ups
  • What should you watch for when granting managed identities access through groups? Token caching can last several hours (#13).
Bonus points

Point out that managed identities aren't affected by enforced MFA, so they are the preferred replacement for user-type service accounts.

Common wrong answers

"UAMIs have passwords that need rotating."

See Hour 3, Module 7.

Q24. For multi-tenant scenarios, when do you use Lighthouse, B2B, or a new tenant? Advanced
30-second answer

The default is a single tenant, and Landing Zone isolation comes from subscriptions and MGs. Create a new tenant only for a real identity isolation need, such as regulatory requirements, a transition after an acquisition, or free experimentation for developers. Lighthouse lets a managing tenant manage a customer's subscriptions across tenants (built-in roles only, Owner is not supported, and eligible authorizations are allowed). B2B lets external users into your tenant, which suits a small number of collaborators.

Deeper answer
  • The cost of multi-tenancy: two sets of CA, PIM, policies, and logs, which doubles platform operations. ALZ can be deployed in each tenant, and you can use Lighthouse to operate them centrally.
  • Eligible authorizations in Lighthouse require ID Governance in the managing tenant. A few services, such as Resolver, aren't compatible with Lighthouse.
Common follow-ups
  • Is a separate tenant for prod safer? Usually not. You can get the same isolation with MGs, PIM, and CA, and multiple tenants add configuration drift.
Bonus points

For an acquisition: first bring governance in through Lighthouse, then decide whether to move the subscriptions. Subscription transfers delete role assignments (#24).

Common wrong answers

"One tenant per environment."

See Hour 3, Module 1 · Module 7 · Hour 7, Module 6.

Q25. How do you use policy to enforce tags and cost allocation? Intermediate
30-second answer

Define required tags (such as env, owner, costCenter, and workload). Use Deny on resource groups (Require a tag on resource groups), and use Modify on resources to inherit tags from the resource group (Inherit a tag from the resource group if missing). Fill in existing resources with remediation tasks. When you vend a subscription, set subscription-level tags and budgets at that time. Cost analysis groups by tag and subscription, and showback and chargeback are handled by FinOps.

Deeper answer
  • Limit: 50 tags per resource. Exclude resource groups that the platform creates on behalf of others (#11).
  • Tag policies in Indexed mode don't evaluate resource groups (#9).
Common follow-ups
  • Why not Deny on all resources? Many resources are created by services on your behalf or through APIs that don't set tags. Deny would block them by mistake.
Bonus points

The subscription is the strongest cost boundary. Tags are a supplement.

Common wrong answers

"Roll out Deny on all resources today."

See Hour 2, Module 2 · Hour 5, Module 6.

Interview whiteboard diagram: policy evaluation for a single PUT (Q14–Q16) disabled appendmodify (rewrite) deny → 403 audit manual · AINE denyAction (delete) After resource provider successAINE · DINE (+ delay) modify before deny: a request filled in by modify can pass deny (Deny on the resource group + Modify on the resource) DINE deploys using the assignment's managed identity. Existing resources are only marked non-compliant and need a remediation task. enforcementMode=DoNotEnforce: still evaluated and reported, but the effect is not enforced (safe rollout)
Figure 6-1: explain the official evaluation order, then finish with a tag example.

Scenario 6-1: Finance wants to enforce a required costCenter tag with Deny today.

The platform team is worried about breaking production. Propose a phased plan and key points for communication.

Reference answer key points
  • Day 1: assign Audit (or DoNotEnforce), plus Modify inheritance at the resource group level. Show Finance the gaps in a report.
  • Within one week: use remediation tasks to fill in existing resources. Exclude platform-created resource groups. Write subscription and resource group tags into the vending process.
  • After two weeks: enable Deny on resource groups in batches by subscription, and monitor RequestDisallowedByPolicy. Keep the overrides rollback path.

Scenario 6-2: All 6 platform team members are standing Owners on the intermediate root.

An audit finds this, and the pipeline uses a service principal with a client secret. How would you fix it?

Reference answer key points
  • People: convert to PIM eligibility (activation requires MFA and a justification, and Owner requires approval). Keep 2 emergency access accounts. Run an access review.
  • Pipeline: split into plan and apply UAMIs with federated credentials. The apply identity trusts only a protected environment. Delete the secret.
  • Evidence: export the activity log and PIM audit data to a central workspace, and alert on “Owner assignments that are not made through PIM”.
or score 70% or higher on the quiz

Module 7 · Part B: Networking and Operations (interview questions 26–38)

44:00 – 52:00 · Topology choices, IP planning, firewalls, Private Link DNS, Private Resolver, hybrid connectivity, inbound protection, Log Analytics workspaces, AMA, AMBA, Defender, updates and backup, cost
8 minconnectivity · management13 questions
Learning objectives
  • Be able to compare hub-spoke with Virtual WAN, and answer using scale, routing complexity, NVA requirements, and operating model.
  • Be able to explain the full private endpoint DNS chain in ALZ: central private zones + DINE zone groups + Resolver + conditional forwarding.
  • Be able to present the management design area as: centralized logging + policy-driven agents + baseline alerts + security posture + patching and backup + cost.

Scan the questions and focus areas first. Click a row to jump to the detailed answer.

Q26. How do you choose between hub-spoke and Virtual WAN? Intermediate
30-second answer

Hub-spoke (a hub VNet you manage): full control over routing and NVAs, predictable cost, and suited to a small number of regions and medium scale. Virtual WAN: Microsoft-managed hub routing, many branches (VPN/SD-WAN), full-mesh connectivity across multiple regions, and centralized routing-intent inspection. The trade-off is lower flexibility: custom route tables and routing intent are mutually exclusive, and some services are limited in a vHub. ALZ supports both.

Deeper answer
  • Routing intent: each hub can have at most one Internet policy and one Private policy. Cross-hub inspection requires all hubs to have it enabled, and you can't have custom route tables before you enable it.
  • DDoS IP/Network Protection doesn't support public IPs in Virtual WAN (check the SKU comparison docs for the current state).
Common follow-ups
  • When should you move from hub-spoke to vWAN? When growth in branches and regions makes UDR and peering management a bottleneck. The biggest risk is the routing cutover during migration.
Bonus points

Mention that AVNM can reduce the peering and routing management burden of hub-spoke.

Common wrong answers

"vWAN is always better" or "vWAN costs more, so don't use it."

See Hour 4, Module 1.

Q27. How do you plan IP addresses for 150 landing zones? What does AVNM IPAM do? Advanced
30-second answer

First avoid on-premises and partner ranges. Split the root pool by region (the course convention: pool-azure 10.0.0.0/11 → pool-cc 10.0.0.0/12 and pool-ce 10.16.0.0/12). Allocate hubs and spokes from child pools, and use standard sizes for spokes (such as /22 or /24). AVNM IPAM provides pools, allocations, and usage tracking (up to 7 levels of pools). When you vend a subscription, az network vnet create --ipam-allocations picks the address automatically. Delegate with the IPAM Pool User role.

Deeper answer
  • Save space with approaches that don't consume VNet addresses, such as AKS Overlay. Reserve space for Private Endpoint subnets.
  • AVNM instances are billed per VNet. Connectivity, security admin, and routing configurations take effect only after they are deployed to a region.
Common follow-ups
  • What if ranges overlap? Peering isn't possible (#26), so you can only rebuild or use a NAT approach.
Bonus points

Treat IPAM as a step in subscription vending, not as a spreadsheet.

Common wrong answers

"Each team picks its own 10.x range."

See Hour 4, Module 2.

Q28. How do you choose between Azure Firewall Basic, Standard, and Premium? How do you design forced tunneling? Intermediate
30-second answer

Basic: small environments (≤ 250 Mbps). No DNS proxy, threat intelligence is alert-only, and it requires a management NIC. Standard: common for production (30 Gbps, DNS proxy, FQDN network rules, threat intelligence deny mode). Premium: needed for TLS inspection, IDPS, and URL filtering (100 Gbps). Forced tunneling: all three support it. Use AzureFirewallManagementSubnet for management traffic, and point 0.0.0.0/0 for data traffic to on-premises or to a next-hop NVA.

Deeper answer
  • Rule processing: parent policy first; then DNAT → network → application. Processing stops at the first match. If nothing matches, the default is deny (#29).
  • Spoke UDR 0.0.0.0/0 → firewall. Use a UDR on GatewaySubnet to avoid asymmetric routing (#30).
Common follow-ups
  • Why use a firewall policy hierarchy? The parent policy holds the global baseline (owned by the platform team), and child policies hold region or landing zone rules.
Bonus points

Explain the practical impact of Basic network rules not supporting FQDNs.

Common wrong answers

"The rule priority number decides the order of DNAT, network, and application rules."

See Hour 4, Module 3.

Q29. Explain the end-to-end design of private endpoint DNS in ALZ. Advanced
30-second answer

The privatelink Private DNS zones are centralized in the connectivity subscription (rg-alz-dns-cc) and linked to the hub VNet. Spoke DNS points to the Private Resolver inbound endpoint in the hub (or to the firewall DNS proxy). Deploy-Private-DNS-Zones on corp (59 DINE policies) writes zone groups automatically after a private endpoint is created, which requires the managed identity to have Network Contributor on the DNS zone resource group. On-premises DNS conditionally forwards privatelink zones to the Resolver's inbound IP.

Deeper answer
  • Why not let each spoke build its own zones? Multiple copies of the same zone split name resolution, and a VNet can't link to two zones with the same name.
  • Exception: services that the policy set doesn't cover (for example, privatelink.database.windows.net for Azure SQL Database) need the application template to write its own zone group.
  • Audit-PeDnsZones audits for privatelink zones that should not exist in spokes.
Common follow-ups
  • What about vWAN? A vHub can't link to private zones, so you need a shared DNS services VNet to host the Resolver and the zone links.
Bonus points

Give a troubleshooting order: who is resolving → which DNS is used → whether the zone is linked → whether the A record exists (#34, #35).

Common wrong answers

"DNS just works once the private endpoint is created."

See Hour 4, Module 5.

Q30. What problem does DNS Private Resolver solve? What are its limits? Intermediate
30-second answer

It exposes Azure DNS (including private zones) to on-premises as a managed service through an inbound endpoint. It also forwards Azure queries to on-premises DNS based on forwarding rulesets (outbound endpoint plus forwarding ruleset), replacing self-managed DNS forwarder VMs. Limits: the inbound and outbound endpoints each need their own subnet (/28 to /24, delegated only to dnsResolvers). About 10,000 QPS per endpoint. 15 Resolvers per subscription. A ruleset holds 1,000 rules and can link to 500 VNets. IPv6 subnets are not supported, and cross-tenant ruleset links are not supported.

Common follow-ups
  • Which VNets should the ruleset link to? Link it to the VNets that send the queries. If spokes point to the inbound endpoint, linking the hub is enough (#36).
Bonus points

Mention the lesser-known limitation that it isn't compatible with Azure Lighthouse.

Common wrong answers

"The Resolver is a private DNS zone."

See Hour 4, Module 5.

Q31. How do you design hybrid connectivity with 99.95%+ availability? What SKU changes should you watch in 2026? Advanced
30-second answer

Two ExpressRoute circuits at different peering locations (or ER plus a site-to-site VPN as backup). Use AZ SKUs for ER gateways (ErGw1Az+ or ErGwScale), and for VPN gateways use VpnGw1AZ+ with active-active and BGP. GatewaySubnet must be /27 or larger, with no NSG and no 0.0.0.0/0 UDR. 2026 changes: the non-AZ VpnGw1–5 SKUs were retired on 2026-09-30, Basic public IPs were retired on 2025-09-30, and the Basic VPN SKU is not retired, but it doesn't support BGP or active-active.

Deeper answer
  • An ER gateway advertises up to 1,000 routes (summarize where possible). For a non-AZ to AZ move, use the gateway migration experience.
  • Building your own gateways in corp is blocked (Deny-HybridNetworking). Hybrid connectivity is centralized in connectivity.
Common follow-ups
  • Which ER gateway for 3 Gbps of daily traffic? ErGw3Az (10 Gbps), or ErGwScale with enough scale units.
Bonus points

Mention BFD, route weights, and AS-path prepending to control primary and backup paths.

Common wrong answers

"One ER circuit has an SLA, so you don't need redundancy."

See Hour 4, Module 4.

Q32. How do you protect inbound traffic? Where do App Gateway WAF, Front Door, and DDoS fit? Intermediate
30-second answer

For global or multi-region web entry points, use Front Door. WAF managed rule sets, bot protection, and Private Link origins all require Premium. For regional L7, use Application Gateway v2 with WAF (v1 was retired on 2026-04-28). For VNets with public IPs, use DDoS Network Protection (or IP Protection per IP). In ALZ, online workloads can bring their own entry points. Corp workloads are published through the platform's centralized entry point, and their origins stay private.

Common follow-ups
  • What about Front Door classic? New deployments stopped on 2025-03-31, and it retires on 2027-03-31.
Bonus points

The Audit-AppGW-WAF assignment on landingzones audits Application Gateways that don't have WAF.

Common wrong answers

"If you have WAF, you don't need DDoS protection."

See Hour 4, Module 6.

Q33. Should Log Analytics workspaces be centralized or distributed? How do you control access and cost? Intermediate
30-second answer

ALZ recommends a single workspace in the management subscription (or a small number if data residency or billing requires it), so correlation and Sentinel analysis are easier. For access, use resource-context mode so application teams see only logs for their own resources, and add table-level RBAC when needed. For cost: choose a plan per table (Analytics, Basic, Auxiliary, and so on; check the current docs), set retention and archiving, avoid duplicate diagnostic settings (#41), and use commitment tiers.

Common follow-ups
  • When should you split workspaces? For data residency, separate billing owners, or performance isolation at very large scale.
Bonus points

Point out that the workspace ID is a parameter in many ALZ assignments (#40). Changing workspaces means updating assignments and remediation.

Common wrong answers

"One workspace per application gives the best isolation." But cross-workspace correlation and cost management both get harder.

See Hour 5, Module 1.

Q34. How do you deploy monitoring agents consistently to VMs across hundreds of subscriptions? Intermediate
30-second answer

Use Azure Monitor Agent (AMA) and data collection rules (DCRs), deployed automatically through ALZ DINE assignments. Use a central UAMI as the AMA identity and central DCRs for VM Insights, change tracking, Defender, and so on. New VMs automatically install the extension and associate with the DCR. Existing VMs are handled with remediation tasks. The legacy Log Analytics agent (MMA) was retired on 2024-08-31.

Common follow-ups
  • Why a UAMI instead of a system-assigned identity? At scale, you avoid one identity per VM, and you can grant access in advance. The UAMI is protected by DenyAction (#12).
Bonus points

Arc-enabled servers are managed through policy in the same way.

Common wrong answers

"Pre-install MMA in the image."

See Hour 5, Module 2.

Q35. What are Azure Monitor Baseline Alerts (AMBA)? How do you avoid alert storms? Intermediate
30-second answer

AMBA is a set of recommended alerts maintained by Microsoft (for platform services, Landing Zone resources, and Service Health). It uses policy (the ALZ library's platform/amba) to deploy alert rules, Action Groups, and alert processing rules at scale. To avoid alert storms: enable alerts in batches by management group or subscription, tune threshold parameters, use alert processing rules to suppress alerts during maintenance windows, and route alerts to the right Action Group (platform or application).

Common follow-ups
  • The alerts exist, but nobody receives them? See #42.
Bonus points

Handle Service Health alerts (Deploy-SvcHealth-BuiltIn on the intermediate root) separately from resource alerts.

Common wrong answers

"Enable all default alerts and send them to one mailbox."

See Hour 5, Module 3.

Q36. How do you enable Defender for Cloud in ALZ? How do you use the secure score? Intermediate
30-second answer

DINE assignments on the intermediate root (such as Deploy-MDFC-Config-H224) configure Defender plans, security contacts, and exports for each subscription. Audit-type MCSB assignments (Deploy-ASC-Monitoring and Deploy-MCSB2-Monitoring) provide a compliance view. Use the secure score to set priorities and track trends, but don't treat it as the only KPI. Align plan enablement with cost (#43).

Common follow-ups
  • Should sandbox also enable Defender? At least the foundational CSPM capabilities. Paid plans depend on risk, and you control them through parameters.
Bonus points

The Security subscription (security MG) hosts Sentinel, separate from management.

Common wrong answers

"Turning on Defender means you're compliant."

See Hour 5, Module 4.

Q37. How do you scale patching and backup in ALZ? Beginner
30-second answer

Patching: Azure Update Manager. Enable-AUM-CheckUpdates on platform turns on periodic assessment. Maintenance configurations (maintenance windows) are scoped dynamically by subscription or tag to schedule installs. Backup: Deploy-VM-Backup on landingzones and identity automatically configures backup for VMs that don't have the exclusion tag (see #44). Critical data also has service-level backup policies.

Common follow-ups
  • Who is responsible for patching application VMs? The platform provides the mechanism and reporting. The application team owns the maintenance windows and validation (RACI).
Bonus points

Restore drills matter more than backup success rates.

Common wrong answers

"If automatic updates are on, you don't need to do anything."

See Hour 5, Module 5.

Q38. How does the ALZ platform support FinOps? Intermediate
30-second answer

Subscriptions are the cost boundary (cost centers and budgets are set at vending time), tag policy (Q25), budgets and anomaly alerts, allocation rules for shared platform costs (hub, firewall, logging), lifecycle management for hourly-billed components, and centralized purchasing of reservations and savings plans. The FinOps function owns reporting and the optimization rhythm, and the platform team provides the data and guardrails.

Common follow-ups
  • How do you split shared hub costs? By traffic, by number of spokes, or by a fixed ratio. The rules should be transparent and written into the platform SLA.
Bonus points

Audit-UnusedResources (on the intermediate root) finds idle resources.

Common wrong answers

"Cost is Finance's job."

See Hour 5, Module 6.

Interview whiteboard diagram: how the platform takes over a new VM (Q34–Q37) VM createdsub-lz-corp-myapp DINE: AMA + DCR (UAMI) DINE: backup · update assessment DINE: Defender plan (subscription level) law-alz-mgmt-ccCentralized logs · resource-context accessDiagnostic settings (allLogs)Sentinel in the security subscription AMBA alertsAlert rules → processing rules→ Action GroupPlatform / application routing Each step depends on parameters (workspace, DCR, and UAMI IDs), managed identity permissions, and remediation tasks for existing resources
Figure 7-1: The management design area = policy-driven "automatic takeover"

Scenario 7-1: A VM in corp times out when it accesses a blob in a storage account, but access to the ubuntu image mirror works.

Describe your troubleshooting steps and the three most likely root causes.

Reference answer key points
  • Run nslookup on the VM. If it resolves to a public IP, it's a DNS problem (the zone isn't linked, or custom DNS isn't forwarding, #34). If it resolves to a private IP but times out, check routing, NSGs, or the firewall (effective routes, NSG diagnostics, firewall logs).
  • Check whether the private endpoint exists and whether it has a zone group (#35). Check whether public access is disabled on the storage account (corp denies public access by default).
  • Top 3 root causes: the private zone isn't linked to the hub or has no A record; a UDR sends private endpoint subnet traffic to the firewall with no rule for it; or the storage firewall denies the request.

Scenario 7-2: Over the next 2 years, expand to 3 regions and 40 branch offices, with branches needing to reach each other.

Choose a network topology and explain your reasoning.

Reference answer key points
  • Lean toward Virtual WAN: many VPN/SD-WAN branches, full-mesh connectivity between regional hubs, and centralized routing-intent inspection.
  • Addressing: regional child pools and reserved hub space. DNS: a Resolver in each region, plus a shared DNS services VNet.
  • Migration: move spoke connections from the existing hub-spoke design in phases. Validate the routing intent prerequisites first (no custom route tables).

Scenario 7-3: Logging costs have doubled in three months.

Costs for the platform log workspace have spiked, and management wants a plan within one week.

Reference answer key points
  • Find the sources of growth by table and resource (Usage table). Check for duplicate diagnostic settings (#41), verbose log levels, and newly enabled DCRs.
  • Actions: right-size table plans, reduce collection granularity, use DCR transformation filters, set retention and archiving, and use commitment tiers.
  • Process: route logging changes through a PR with a cost estimate, and hold a monthly cost review.
or score 70% or higher on the quiz

Module 8 · Part B: Platform Engineering and Scenario Design (interview questions 39–50)

52:00 – 60:00 · Accelerator, Terraform and Bicep, platform pipelines, subscription vending, version upgrades, migrating existing estates, platform as a product, sovereignty, acquisitions, large enterprise design, incident reviews, migrating legacy implementations
8 minIaC · Vending · Operating model12 questions
Learning objectives
  • Be able to explain the full ALZ IaC delivery chain in this order: identity → repository → state → pipeline → deployment → validation.
  • For design questions, answer in this order: requirements and constraints → hierarchy and subscriptions → identity → networking → management and security → automation and operations → risks and validation.
  • Be able to walk through a realistic incident review (timeline, impact, root cause, and improvements).

Scan the questions and focus areas first. Click a row to jump to the detailed answer.

Q39. Describe the four phases of the ALZ IaC Accelerator and what it generates. Intermediate
30-second answer

Phase 0 Planning (decide the IaC tool, VCS, subscriptions, network topology, and MG naming) → Phase 1 Prerequisites (PowerShell 7.4+, Azure CLI 2.55.0+, Git; a platform subscription; Owner on the parent MG and the platform subscription; Bicep also needs User Access Administrator (UAA) on the root "/") → Phase 2 Bootstrap (Deploy-Accelerator creates the repository, state storage, plan and apply UAMIs with federated credentials, pipelines, and environment approvals) → Phase 3 Run (deploy the platform Landing Zone through the pipeline).

Deeper answer
  • VCS: GitHub, Azure DevOps, or a local file system. IaC: Terraform (avm-ptn-alz) or Bicep (AVM).
  • Proxies and Cloud Shell are not supported (#47).
Common follow-ups
  • After bootstrap, do people still need Owner? No. Standing access isn't needed: routine changes go through the pipeline, and emergencies go through PIM.
Bonus points

Stress that bootstrap is also code, so it can be replayed (disaster recovery for the platform itself).

Common wrong answers

"The accelerator is just a deployment wizard in the portal."

See Hour 6, Module 1 · Hour 1, Module 6.

Q40. How do you choose between Terraform (avm-ptn-alz + alz provider) and Bicep (AVM + deployment stacks)? Intermediate
30-second answer

Both cover the ALZ platform fully, so the choice depends on team skills and operating preferences. Terraform: has a state file and plan, a modular ecosystem, and is familiar to multi-cloud teams. avm-ptn-alz is built on AzAPI, reads the library through the alz provider, and doesn't support depends_on (use *_dependencies instead). Bicep: no state file, native ARM, and deployment stacks provide a managed resource set with deny settings that prevent unauthorized changes.

module "alz" {
  source             = "Azure/avm-ptn-alz/azurerm"
  version            = "0.23.0"
  architecture_name  = "alz"
  parent_resource_id = data.azapi_client_config.current.tenant_id
  location           = "canadacentral"
}
Common follow-ups
  • In Terraform, azurerm or azapi? avm-ptn-alz depends on azapi, not azurerm. Other platform resource modules may use azurerm.
Bonus points

Mention that deployment stack deny settings can replace some DenyAction and lock scenarios.

Common wrong answers

"Bicep can only be used for a single resource group."

See Hour 6, Module 2 · Module 3.

Q41. Design the ALZ platform pipeline: how do you make it secure, auditable, and reversible? Advanced
30-second answer

A PR triggers plan (using the Reader identity, and the plan output is posted back to the PR). After merge, the apply job runs in a protected environment (approvers, main branch only). The apply identity (Owner on the intermediate root) executes the same plan. After deployment, validate role assignments, remediation tasks, and run a compliance smoke test. State storage is private, with versioning and soft delete enabled. A concurrency group serializes runs (#45). All identities use OIDC federation.

Deeper answer
  • Rollback: Git revert and re-apply. For policy changes, use overrides or DoNotEnforce for a fast downgrade first.
  • Drift detection: run plan on a schedule, and open an issue if there are differences.
Common follow-ups
  • Who can approve? Two-person rule on the platform team. High-risk changes (root or intermediate root policies) also require the security team.
Bonus points

Save the plan file as an artifact, so that what was approved is exactly what gets applied.

Common wrong answers

"Developers run terraform apply locally against production."

See Hour 6, Module 4 · GitHub course, hour 3.

Q42. Design subscription vending. Advanced
30-second answer

The input is a request (YAML/JSON with the application name, environment, corp/online, address size, budget, and owner group). After PR approval, the pipeline uses avm-ptn-alz-sub-vending (or the Bicep version) to create a subscription alias (billing role, #2), places it in the target MG, and waits for inheritance and evaluation (#5). It then allocates an address from IPAM, creates the spoke, peers it with the hub, and associates a route table. Finally it creates the budget, role assignments (groups plus PIM eligibility), an optional deployment identity with federated credentials, and sends a delivery notification.

Deeper answer
  • Keep the vending identity separate from the platform identity, with least privilege.
  • Pre-register resource providers and set subscription tags.
  • Make failures retryable: every step is idempotent, so you can rerun after a failure.
Common follow-ups
  • Who can submit a request? Application team leads who have been onboarded to the platform, submitting through a form in the IDP portal (Q45).
Bonus points

Measure the median time from request to ready (target: hours).

Common wrong answers

"Vending just means creating a subscription."

See Hour 6, Module 5 · Hour 1, Module 3.

Q43. How do you upgrade ALZ library and module versions safely? Advanced
30-second answer

The library uses calendar versions (for example 2026.10.0 → 2026.11.0), while the modules and the provider use 0.x semantic versions. The process: read the release notes (added and deprecated definitions, parameter changes) → run plan and apply in a test tier (a separate intermediate root) → review deletions and replacements in the plan (#48) → roll out in batches during a production window → validate authorization, remediation, and compliance. Deprecated policy sets are marked deprecated and show supersededBy.

Common follow-ups
  • How often should you upgrade? Review changes every quarter, and apply security-related changes as soon as possible.
Bonus points

Use Dependabot or Renovate to open PRs that bump version numbers, with the plan posted to the PR automatically.

Common wrong answers

"Use latest and don't pin the version."

See Hour 6, Module 7 · Hour 2, Module 6.

Q44. A company already has 80 subscriptions and no management groups. How do you move it into ALZ? Advanced
30-second answer

Assess → build the platform in parallel → migrate in batches → clean up the remaining gaps. Assess: use Resource Graph to inventory subscriptions, networking, roles, and public exposure. Then assign ALZ policies in Audit or DoNotEnforce mode on the existing subscriptions to produce a gap list. Build the platform in parallel: a new intermediate root, platform subscriptions, and the hub. Migrate in batches: start with low-risk subscriptions, pre-exempt them before the move (DoNotValidate), remediate in batches after the move (#49), and schedule networking changes (peering to the new hub, DNS cutover) separately. Clean up: remove exemptions one by one, and turn off the old networking.

Common follow-ups
  • What are the biggest risks? Deny breaking existing releases, a DINE remediation storm, changes to RBAC inheritance, and overlapping address ranges.
Bonus points

Define exit criteria and a rollback for each batch (for example, moving a subscription back to where it was).

Common wrong answers

"Drag all 80 subscriptions into corp over the weekend."

See Hour 7, Module 1 · Module 2.

Q45. What is "platform as a product"? How do you measure whether a Landing Zone platform is successful? Intermediate
30-second answer

Treat the Landing Zone as a product with users (application teams), a roadmap, documentation, and an SLA. Provide a golden path (standard subscription, spoke, and pipeline templates), a self-service entry point (a vending form), and clear support and exception processes. Metrics: subscription delivery time, self-service rate, policy denial rate and exemption count trends, platform change failure rate, application team satisfaction, and compliance and cost trends.

Common follow-ups
  • How is this different from "the platform team approves everything"? A product approach turns approvals into automated guardrails, and people get involved only for exceptions.
Bonus points

Link to the platform engineering capability model (platform engineering skills).

Common wrong answers

"Platform success = deployment complete."

See Hour 7, Module 7.

Q46. What changes for a Landing Zone in regulated industries or under sovereignty requirements? Advanced
30-second answer

Add these on top of ALZ: data residency (the Allowed locations policy and paired resource group assignments, plus the region of the log workspace); encryption and key management (customer-managed keys (CMK), managed HSM, and the platform already has assignments such as Enforce-Encrypt-CMK0); confidential computing; strict controls on public access and cross-border data flows; and exporting audit evidence. Microsoft provides the Sovereign Landing Zone (platform/slz in the library) as a reference. Check the official docs for the exact policy sets.

Common follow-ups
  • How do you prove compliance? Policy compliance reports, the Defender regulatory compliance dashboard, and long-term retention of the activity log.
Bonus points

Distinguish data residency from data sovereignty (who can access the data, including the cloud operator).

Common wrong answers

"Choosing the right region is enough to meet sovereignty requirements."

See Hour 7, Module 5.

Q47. Scenario: Your group acquires a company that has its own tenant and 20 subscriptions. How do you bring it under governance? Advanced
30-second answer

In the short term, don't migrate the tenant. Use Azure Lighthouse to delegate the acquired company's subscriptions to the group's platform team and SOC (built-in roles, with eligible authorizations allowed). Deploy the same ALZ in their tenant (same IaC, same library version), and send logs to a workspace the group can access. In the medium term, evaluate whether to merge the tenants. Subscription transfers delete role assignments and managed identity bindings (#24), and migrating identities (users and apps) is the biggest effort.

Common follow-ups
  • What can't Lighthouse do? It can't grant Owner, and you can't use roles that include DataActions (#25).
Bonus points

Align the policy baseline before you connect the networks (check for overlapping address ranges).

Common wrong answers

"Move the subscriptions into the group tenant in the first week."

See Hour 3, Module 7 · Hour 7, Module 6.

Q48. Design question: Design a Landing Zone for an enterprise with 200 applications across 3 regions. Advanced
30-second answer

Hierarchy: the default ALZ, adding one layer under corp if needed for different governance requirements (such as regulated workloads). Subscriptions: one per application per environment, with automated vending. Identity: single tenant, PIM, and OIDC deployment identities. Networking: hubs in 3 regions (or vWAN), IPAM regional child pools, centralized privatelink zones, and a Resolver in each region. Management: a central workspace (split by data residency requirements), with AMA, AMBA, and Defender enabled through policy. Automation: IaC generated by the accelerator, plus EPAC to manage custom policies. Operations: platform as a product, RACI, and quarterly library upgrades.

Common follow-ups
  • How big should the platform team be? Organize by capability: networking, identity and governance, observability, and developer experience, starting with 2–4 people in each.
Bonus points

Give a phased roadmap and a risk list (address planning, policy rollout, migration).

Common wrong answers

"Draw three separate Landing Zones up front."

See Hour 7, Module 6 · Hour 4, Module 2.

Q49. Tell an incident story: a new Deny policy caused all production releases to fail. Advanced
30-second answer

STAR format, with a timeline: On Tuesday at 10:00, the platform pipeline switched a custom tag policy on landingzones from Audit to Deny. At 10:20, several application pipelines reported RequestDisallowedByPolicy (the resource groups created by services don't have tags, #11). At 10:35, the team stopped the bleeding by changing the effect back to Audit with overrides. That day, they identified the system resource group pattern and added an exclusion. A week later, they re-enabled the policy in batches by subscription. Improvements: any new Deny must go through a DoNotEnforce observation period with activity log analysis, add what-if to CI, and alert on the denial rate.

Common follow-ups
  • Why not just delete the assignment? Deleting it also loses the compliance data and the other effects. Overrides and DoNotEnforce give you more control.
Bonus points

Quantify the impact (number of failed releases, duration) and include it in the blameless postmortem.

Common wrong answers

"Only talk about the technical fix, without covering detection, communication, and process improvements."

See Hour 2, Module 8 · Hour 7, Module 3.

Q50. When you migrate from caf-enterprise-scale (Terraform) or the classic ALZ-Bicep, what are the key points? Advanced
30-second answer

Both are being retired or have been retired. The caf-enterprise-scale repository was archived on 2026-09-15 (see the migration guide at aka.ms/alz/tf/migrate), and classic ALZ-Bicep will be archived on 2027-02-16. Key migration points: don't move the resources; change the code that manages them. Map the existing MGs, definitions, assignments, and roles to the resource addresses in avm-ptn-alz or Bicep AVM (in Terraform, use import or moved). Align the MG IDs and assignment names first. Switch the pipeline only after the plan shows no destructive changes.

Common follow-ups
  • Can you upgrade to the new library version during the migration? First do an equivalent migration, then upgrade separately, so the two kinds of changes don't overlap.
Bonus points

Freeze platform changes during the migration, and keep the old state files so you can roll back.

Common wrong answers

"Destroy the old setup, then apply the new one." That would delete all assignments and roles and leave a governance gap.

See Hour 6, Module 7 · Hour 1, Module 6.

Interview whiteboard diagram: subscription vending from request to ready (Q42) Request PRYAML · approval Subscription aliasBilling role (#2) Place in MGWait for evaluation (#5) IPAM + spokePeering · UDR Identity and budgetGroups · PIM · OIDC Delivery + validationCompliance smoke test Every step is idempotent and can be rerun. On failure, stop at the current step and notify the requester. The vending identity is not the platform apply identity. The vending identity only needs the billing role, permission to place subscriptions in the target MG, and permission on the network resource group. Metrics: median time from request to ready, failure rate, and number of manual interventions.
Figure 8-1: Vending is the "front door" of platform as a product.

Scenario 8-1: A 50-person company with no IaC experience needs an auditable, upgradable setup within three months.

Reference answer key points
  • Month 1: the accelerator (GitHub with Terraform or Bicep, whichever is easier for the team to pick up), starting with 2 platform subscriptions. Observe high-risk Deny policies in Audit mode first.
  • Month 2: minimal subscription vending (templates + PR), and the identity baseline (PIM, emergency accounts, OIDC).
  • Month 3: roll out Deny in batches, set up AMBA and budgets, run a first library upgrade drill, and provide training and documentation.

Scenario 8-2: Application teams complain that requesting a subscription takes two weeks.

Reference answer key points
  • Measure how long each step takes: approval, billing role, network address, and manual steps.
  • Automate: IPAM, the vending pipeline, and pre-approved approval rules (standard requests are approved automatically).
  • Goal: standard requests delivered in hours; non-standard requests go through architecture review.

Scenario 8-3: The security team requires "no public entry points at all," but the business has external APIs.

Reference answer key points
  • Rewrite the requirement as: "only entry points that are managed by the platform and protected by WAF and DDoS are allowed."
  • corp: Front Door Premium with Private Link origins, or Application Gateway WAF in the hub. online: allow teams to bring their own entry point, but enforce WAF (Audit-AppGW-WAF → Deny).
  • Express this with policies: Deny-Public-Endpoints (corp), Deny-Public-IP-On-NIC, and WAF auditing. Handle exceptions through exemptions.

Teaching videos (titles and channels verified via YouTube oEmbed)

▶
Azure Landing Zones - How many subscriptions should I use in Azure? — Azure Verified Modules
English · AVM team on the subscription and vending approach (covers Q42)
▶
Azure Lighthouse: A unified control plane for managing Azure at scale | Azure Friday — Microsoft Azure
English · Covers Q47
▶
Subscription Vending — John Savill's Technical Training
English · Covers Q42
▶
Deployment Stacks Deep Dive — John Savill's Technical Training
English · Covers Q40

No verified video dedicated to hands-on use of the ALZ IaC Accelerator was found.

Storyboard (2 minutes) Shot 1: An application team submits a vending YAML in a PR. Shot 2: The plan output is posted back to the PR, and a platform engineer approves it. Shot 3: The apply job creates the subscription, places it in corp, allocates the address, and sets up peering, in that order. Shot 4: The smoke test shows that the inherited assignments and private DNS work, and the notification is sent.
or score 70% or higher on the quiz

Problem cheat sheet + interview flashcards

50 “error → first diagnostic command → common fix” entries · 50 one-line key point cards · printable
After class

A · Quick reference for 50 production problems

Filter by keyword (for example, Authorization, disallowed, AADSTS, DNS, DINE). Click a number to jump to the detailed explanation in the relevant module.

B · Flashcards for 50 interview questions

Read the question and try to answer it yourself first, then expand the card to compare with the one-line key point. For details, go back to the "Interview question details" in the relevant module.

General command card

Hierarchy and subscriptions

az account management-group show -n MG -e -r
az account management-group subscription add --name MG --subscription SUB
az account management-group hierarchy-settings list --name TENANT
az graph query -q "resourcecontainers | where type=='microsoft.resources/subscriptions' | project name, mg=properties.managementGroupAncestorsChain[0].name"
az rest --method post --url "/providers/Microsoft.Authorization/elevateAccess?api-version=2016-07-01"

Policy

az policy assignment list --scope SCOPE --disable-scope-strict-match -o table
az policy state list --resource ID --filter "complianceState eq 'NonCompliant'"
az policy state trigger-scan [--resource-group RG] --no-wait
az policy remediation create -n N --policy-assignment ID [--definition-reference-id REF]
az policy exemption create -n N --policy-assignment ID --exemption-category Waiver --expires-on DATE

Identity

az role assignment list --assignee OID --all --include-inherited -o table
az role assignment create --assignee-object-id OID --assignee-principal-type ServicePrincipal --role R --scope S
az identity federated-credential list -g RG --identity-name ID -o table
az account show --query "{user:user,tenant:tenantId}"
az logout && az login --tenant TENANT

Networking and DNS

az network vnet peering list -g RG --vnet-name VNET -o table
az network nic show-effective-route-table -g RG -n NIC -o table
az network watcher show-next-hop -g RG --vm VM --source-ip S --dest-ip D
az network private-dns link vnet list -g RG -z ZONE -o table
nslookup NAME 10.0.2.4

Capstone lab + mock interview

8 mixed-fault scenarios (look at the symptoms, make your own diagnosis, then expand the answer) · a full mock interview with 10 questions drawn at random from 50 · final quiz
After class ≈ 40 min

Part 1: Capstone fault drills

Each scenario combines several questions from Part A. Write down your first diagnostic command and your judgment before you expand the answer.

Scenario 1: In a newly vended subscription, an application team successfully created a public storage account
Subscription vending pipeline log: placement corp ✔ (09:02); role assignment ✔ (09:03); delivery notification (09:04)
09:10 app team creates stshop01 (publicNetworkAccess=Enabled) → Succeeded
10:00 same kind of resource created again → (RequestDisallowedByPolicy) … Deny-Public-Endpoints

Answer: The 30-minute window of the hierarchy cache and subscription-level evaluation (#5). Fix: remediate the resources that slipped through; change the pipeline to “placement → wait and verify inherited assignments → then grant access and notify” (Q42).

Scenario 2: Starting Monday, all nightly Terraform runs fail; they worked fine on Friday
(RequestDisallowedByPolicy) … Users must use MFA for Create/Update operations
az account show → "user": { "name": "svc-terraform@contoso.com", "type": "user" }

Answer: Phase 2 of forced MFA now applies to write operations by user accounts (#20). Migrate to UAMI + federated credentials (#22, Q22); also check for other user-type service accounts.

Scenario 3: A new private endpoint in corp resolves to a public IP
nslookup stmyapp.blob.core.windows.net → 20.60.x.x
az network private-endpoint dns-zone-group list … → []
Deploy-Private-DNS-Zones remediation: AuthorizationFailed … privateDnsZoneGroups/write

Answer: The DINE identity lacks Network Contributor on the DNS zone resource group in connectivity (#35, #15), so the zone group was never written and the A record is missing (#34). After granting the role, run a remediation task on the existing private endpoints.

Scenario 4: The platform team's attempt to move a subscription from sandbox to corp fails
The operator is Owner on sandbox (inherited) and Contributor on landingzones
Another subscription fails with: move is not allowed … breaks … custom role definition at 'sandbox'

Answer: First: an inherited Owner moved to an MG where the operator has only Contributor loses ownership (#4). Second: the custom role definition is at sandbox (#17); move the definition to alz. Long term: hand placement to the pipeline identity.

Scenario 5: A VM in a spoke accesses an on-premises database; the connection drops after a few seconds
spoke route table: 0.0.0.0/0, 10.0.0.0/12 → 10.0.0.4; gateway route propagation: on
GatewaySubnet: no route table
Firewall log: return traffic from 192.168.10.20 denied (no session)

Answer: Asymmetric routing (#30). Outbound traffic goes straight to the gateway, while return traffic goes through the firewall (or the reverse). Add a UDR on GatewaySubnet that sends the spoke prefix to the firewall, and turn off gateway route propagation on the spoke route table.

Scenario 6: After upgrading the ALZ library, the plan wants to delete 35 resources
Plan: 37 to add, 12 to change, 35 to destroy.
Most are policy_role_assignments and several Enforce-GR-* assignments; library release notes: versioned replacement of the policy set

Answer: #48. Run it first on a test intermediate root; confirm the replacements are caused by the policy set version change; in the production window, apply, then check the remediation tasks and grants; if needed, use moved to keep the keys (Q43).

Scenario 7: One week after deploying ALZ, the cost report shows two anomalies
Each subscription: Microsoft Defender for Cloud (Servers, Storage …)
Each new VNet: DDoS Network Protection associated; some VNet creations fail: ddos plan … not found

Answer: The Deploy-MDFC-Config-H224 parameter enables plans by default (#43). The Enable-DDoS-VNET (Modify) parameter is a placeholder or a real plan (#38). Set the parameters explicitly in IaC or use DoNotEnforce, and confirm with Finance.

Scenario 8: After migrating 12 existing subscriptions in, publishing fails and log costs spike
App pipeline: (RequestDisallowedByPolicy) Deny-MgmtPorts-Internet / Deny-Public-Endpoints
Remediation tasks: 1,800 resources at once; Log Analytics daily ingestion triples
Diagnostic settings on multiple resources: 2, all pointing to the same workspace

Answer: #49 + #41. Stop the bleeding: exemptions with an expiry date; pause or batch the remediation; clean up duplicate diagnostic settings. Then remediate by the gap list and migrate in batches (Q44).

II. Full mock interview (10 questions drawn at random from 50)

2-minute countdown per question: answer aloud first (you can write key points in the text box), then expand the reference answer and self-rate as “Answered / Partial / Missed”. At the end, the round score is shown, along with the cumulative mastery rate by module. Self-ratings are saved in this browser.

III. Open-ended self-check (6 questions)

  1. Draw the ARM write-request pipeline, and mark where #1, #8, #9, #12, #20 and #35 each occur.
  2. Why is there a “risk window” after a subscription moves into an MG? How does subscription vending eliminate it?
  3. Give one example for each of the four root-cause categories of DINE remediation failure, and state the first diagnostic command.
  4. Compare #22 and #23: how do you confirm the subject and audience without printing the token?
  5. Write a private endpoint DNS troubleshooting checklist with four steps: who is resolving, which DNS is used, whether the zone is linked, and whether records exist.
  6. Write a one-page “ALZ platform change go-live checklist” for your organization (at least 12 items, covering identity, policy, networking, management, cost and rollback).

IV. Final quiz (12 questions)

Sources and versions

Verified on: 2026-11-18 · Baseline: ALZ library platform/alz/2026.11.0 · avm-ptn-alz 0.23.0 · alz provider 0.22.1

Official documentation sources

TopicConclusions used in this hourSource (accessed 2026-11-18)
Policy troubleshootingDeny errors include the assignment and definition IDs, which can be found in the activity log; evaluation latency (new assignment about 5 minutes, resources about 15 minutes, standard cycle 24 hours); Indexed mode is used for tags and locations; when enforcementMode is not enabled, there are no activity log entriesTroubleshoot common errors (page updated 2026-06-12)
Management groups10,000 MGs, depth of 6 levels; permissions needed to move a subscription (including roleAssignments/write, register/action); move restrictions for inherited Owner; move errors when the custom role definition path is broken; ARM hierarchy cache up to 30 minutes; root MG cannot be moved or deletedManagement groups overview
Effects and remediation11 policy effects and their evaluation order; denyAction only supports delete, and cascade defaults to deny; remediation task parameters; DINE evaluationDelay defaults to PT10MEffect basics · denyAction · Remediate
Subscriptions and billingCreating a subscription under MCA requires the Azure subscription creator invoice section role, or the Owner/Contributor role on the billing account, billing profile or invoice sectionCreate an MCA subscription request
ALZ library2026.11.0; default number of 12 MGs and assignments; library directories platform/alz, platform/amba, platform/slzAzure-Landing-Zones-Library
IdentityForced MFA phases and deferral deadlines; PIM licensing; RBAC limits; federated credential limits; Lighthouse role limitsMandatory MFA · RBAC limits · WIF considerations
NetworkingFirewall SKUs and rule processing; default outbound access (API versions after 2026-03-31); VPN gateway SKU retirement; Private Resolver limits; DDoS / Front Door / App Gateway v1Firewall SKUs · Default outbound · VPN Gateway what's new
AutomationIaC Accelerator prerequisites and phases; avm-ptn-alz 0.23.0, alz provider 0.22.1; caf-enterprise-scale archived; ALZ-Bicep deprecation timelineAccelerator · avm-ptn-alz · ALZ-Bicep
Shared factsAll other versions, IDs, limits and dates follow the entries verified in Hours 1–4 and recorded in the course shared-facts table (verified 2026-11-18)See the sources pages for Hour 1 to Hour 4

Video verification note

All videos were verified on 2026-11-18 through the YouTube oEmbed endpoint (https://www.youtube.com/oembed?url=…&format=json) for title and channel. oEmbed does not return duration or publish date, so these are not listed. Verified: John Savill's Technical Training “Azure Landing Zones Overview” (mluS8ovuBKg), “Azure Role-Based Access Control Deep Dive” (qFoHDTxkQII), “Azure AD Privileged Identity Management (PIM) - AZ-500, SC-300 Deep Dive Topic” (gccgIkR8_a0), “Microsoft Azure Managed Identity Deep Dive” (rC1TV0_sIrM), “Azure Firewall Deep Dive” (JiUerkqyW0g), “Private Endpoint DNS Exploration” (rXbamGNz-xQ), “Azure DNS Private Resolver Deep Dive” (V8ChsYAyxTc), “Azure Virtual WAN Overview” (f-GyAURZWzg); Azure Verified Modules “Azure Landing Zones - How many subscriptions should I use in Azure?” (R-5oeguxFpo); Microsoft Azure “Azure Lighthouse: A unified control plane for managing Azure at scale | Azure Friday” (x-Db_AFKCzM); John Savill's Technical Training “Anatomy of Azure Policy” (4wGns611G4w), “Azure Policy Remediation Deep Dive” (fhIn_kHz4hk), “Azure Resource Graph Deep Dive” (gkOh4MjhxIs), “Subscription Vending” (aIbtnk2F8Xo), “Deployment Stacks Deep Dive” (d1AE8qLwBYw). No verified video was found that specifically covers Azure Policy error troubleshooting, AMBA, hands-on IaC Accelerator work, or ALZ interview questions; the related pages provide storyboard scripts or notes instead.

Voice notes

The “Voice” tab uses the Web Speech API built into the browser and does not upload any data. An English voice pack (en-US) must be installed on the system; without one, you can read the script directly.

Known limitations

  • The original error text in the Part A headings: ARM generic format (AuthorizationFailed, RequestDisallowedByPolicy, LinkedAuthorizationFailed), Entra error codes (AADSTS700213 / 700212 / 70021 / 53003), the forced-MFA CLI prompt, and the Terraform state lock and Resource Graph throttling messages come from Microsoft Learn, tool output, or entries verified in earlier hours of this course. The message wording for #2, #4, #6, #7, #10, #12, #14, #16, #17, #19, #23, #25, #26, #29, #32, #35, #36, #38, #39, #40, #41 and #46 could not be verified word for word; these are marked “verify against your actual output”, and names and IDs are examples.
  • All “expected output” examples are illustrative. The reproduction labs were written against 2026-11 documentation and have not been run in a real tenant. Costs are sample estimates; refer to the Azure pricing calculator.
  • Points handled conservatively (not hard-coded; defer to the docs): the exclusion parameter for special subnets in Deny-Subnet-Without-Nsg; the specific built-in definition and vault naming for Deploy-VM-Backup; AMBA Action Group parameter names and the test-notifications command; Log Analytics table plans and retention limits; the inline NSG syntax for azurerm subnets; the specific policy set for Sovereign Landing Zone; the content of the hour 5–7 anchors is provided by courseware written in parallel, and this hour only links to them by their sidebar module titles.
  • Mock-interview self-ratings are stored only in this browser's localStorage. Clearing site data will erase them.