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.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.| # | Time | Module | Core content | Animations · interactions | Lab |
|---|---|---|---|---|---|
| 0 | Before class | Instructions and fault lab environment | Sandbox tenant, alz hierarchy, sub-lz-corp-myapp; single-subscription fallback; costs and cleanup | Environment self-check | Variables, elevated access, diagnostic tools |
| 1 | 00–08 | A · Management groups, subscriptions and policy | Problems 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, DenyAction | ARM pipeline simulator for one request | Reading Deny · resource group location · assignment name 24 characters · DenyAction |
| 2 | 08–16 | A · Identity and access | Problems 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 tree | Federated credentials · authorization without directory lookup · custom roles |
| 3 | 16–24 | A · Networking and DNS | Problems 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 tree | Peering overlap · effective routes · private DNS |
| 4 | 24–30 | A · Management, automation and migration | Problems 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 throttling | Platform pipeline failure simulator | Remediation tasks · state locks · dry run before migration |
| 5 | 30–37 | B · Architecture and design areas | Interview 1–13 | Mock interview | 2 scenario questions |
| 6 | 37–44 | B · Governance and identity | Interview 14–25 | Mock interview | 2 scenario questions |
| 7 | 44–52 | B · Networking and operations | Interview 26–38 | Mock interview | 3 scenario questions |
| 8 | 52–60 | B · Platform engineering and scenario design | Interview 39–50 | Mock interview | 3 scenario questions |
| — | After class | Quick reference · Capstone lab | 50 entries of "error → first command → fix"; 50 flashcards; 8 mixed faults; full mock interview | Full mock interview | Final quiz, 12 questions |
| Topic | m1 | m2 | m3 | m4 | m5 | m6 | m7 | m8 |
|---|---|---|---|---|---|---|---|---|
| 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 | ● | — | — | ● | ● | — | — | ● |
alz provider, avm-ptn-alz, and platform pipeline problems that appear specifically on ALZ.RequestDisallowedByPolicy, Linked, AADSTS, Overlap, state lock) into the filter box.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.
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.
| Course | Most-referenced content in this hour |
|---|---|
| Hour 1: Concepts and hierarchy | Design areas and principles, platform / application landing zones, default management group hierarchy, default policies, deployment options and accelerators |
| Hour 2: Subscriptions and governance | Subscription 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 access | Tenant design, RBAC and ALZ custom roles, PIM, emergency accounts and CA, enforced MFA, workload identity federation, managed identities and Lighthouse |
| Hour 4: Networking | Hub-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 monitoring | Log Analytics workspaces, AMA + DCR deployed through policy, AMBA, Defender for Cloud, Update Manager and backup, cost, activity log |
| Hour 6: Automation | IaC 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 troubleshooting | Brownfield assessment and migration, deep policy troubleshooting, deep networking and DNS troubleshooting, sovereign landing zones, large-scale organizations, platform as a product |
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.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).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.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).resource-graph extension, PowerShell 7.4+ (for accelerator-related steps), Terraform ≥ 1.12 (optional for module 4), and jq.alz), obtained temporarily through "elevate access"; Owner on the subscription.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.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 …
# 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.
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)"
| Resource | Estimated cost (sample estimate; check the Azure pricing calculator) | When to delete |
|---|---|---|
| Policy assignments, exemptions, role assignments, management groups | Free | At the end of each lab |
| UAMI, VNets, peering, private DNS zones | Basically 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 hour | Delete immediately after the lab |
| Azure Firewall Basic (only if you built it in hour 4) | Billed by the hour, noticeably more expensive | Delete 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 "/"
rg-lab8-*, policy assignments lab8-* (assignment names at management group scope must be ≤ 24 characters).RequestDisallowedByPolicy, and decide whether to "fix the request, request an exemption, or fix the policy".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".
(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).
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
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
alz and hand it to the deployment identity (the accelerator's apply UAMI). People get PIM eligibility instead.See Hour 1 module 1 · Hour 1 module 4 management group hierarchy · Hour 3 module 2 RBAC.
(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.
az billing account list --query "[].{name:name,type:agreementType}" -o table
az account alias show --name sub-lz-corp-myapp2 2>&1 | head -5
/providers/Microsoft.Billing/billingAccounts/<ea>/enrollmentAccounts/<id>. MCA: /providers/Microsoft.Billing/billingAccounts/<acc>/billingProfiles/<bp>/invoiceSections/<is>.corp), to avoid landing at the tenant root (#3).See Hour 1 module 3 subscription democratization · Hour 6 module 5 subscription vending.
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.
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
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.
See Hour 1 module 3 · Hour 2 module 1 subscription placement.
(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.
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
alz perform the move (recommended: placement is written in IaC as subscription_placement). Or temporarily grant Owner directly on the subscription, then move it.See Hour 1 module 4 · Hour 7 module 2 subscription migration into the hierarchy.
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.
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
az policy state trigger-scan.(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.
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
sub-lz-corp-myapp-prod / -dev), and express differences with subscription-level assignments or resourceSelectors.alz → landingzones → corp (3 levels), which leaves room to grow.See Hour 1 module 4.
(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.
az account management-group show -n landingzones -e -r --query "children[].{name:name,type:type}" -o table
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
decommissioned first.See Hour 1 module 7.
(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.
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
publicNetworkAccess=Disabled + private endpoint).policyDefinitionReferenceIds to exempt only one policy in the initiative), or move the workload to online.nonComplianceMessages on custom assignments (explain the reason and link to the exemption request).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.
$ 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.
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" }
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"]}}'
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.
(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.
az graph query -q "policyresources | where type=='microsoft.authorization/policyassignments' | summarize n=count() by scope=tostring(properties.scope) | order by n desc" --first 5
name plus a descriptive displayName (≤128).overrides. For differences between scopes, use inheritance rather than copies.(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.
az monitor activity-log list --offset 6h --status Failed --query "[?contains(properties.statusMessage,'96670d01')].{who:caller,rg:resourceGroupName}" -o table
notIn / notLike conditions, or an exemption). On resources, use Modify with inheritance from the resource group to add the tag.(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.
az policy state list --resource-group <rg> --filter "complianceState eq 'Protected'" --query "[].resourceId" -o tsv
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.
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.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",…grep -o '"policyAssignment":{"name":"[^"]*","id":"[^"]*"' /tmp/deny.txt--public-network-access Disabled. Cleanup: az storage account delete -g rg-lab8-m1 -n <name> --yes.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 tableLocation Name ---------- ---------- eastus rg-lab8-us ← resource group created successfully
az group delete -n rg-lab8-us --yes az policy assignment delete --name lab8-loc --scope /subscriptions/$SUB_LZ
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 …
--name lab8-sbx-loc --display-name "Lab8 sandbox allowed locations" and it succeeds. Then delete that assignment.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-…
rg-lab8-m1 with a custom assignment that has denyAction (scope limited to that resource group), then delete the assignment after verifying.No verified video specifically on troubleshooting Azure Policy errors was found.
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.Filter by keywords (such as AADSTS, Linked, PrincipalNotFound, MFA, PIM, Lighthouse). Click a row to jump to its details.
(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).
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
az logout && az login (or sign in again in the portal). Pipelines: re-run the job to get a new token.See Hour 3 module 2 RBAC.
(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).
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
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).
(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).
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
avm-ptn-alz handles this based on library metadata; custom assignments you must write yourself).See Hour 1 module 8 · Hour 2 module 5 remediation and managed identities.
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.
az role definition list --custom-role-only true --query "[].{n:roleName,scopes:assignableScopes,data:permissions[0].dataActions}" -o json
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.
az role assignment list --scope /subscriptions/<sub> --query "[].{role:roleDefinitionName,id:roleDefinitionId}" -o table
az role definition list --name "<role name>" --query "[].assignableScopes"
alz); or create a new role in the new branch.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.
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.
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"
See Hour 3 module 4 PIM.
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.
az rest --url "https://graph.microsoft.com/v1.0/subscribedSkus?\$select=skuPartNumber,capabilityStatus" --query "value[]" -o table
See Hour 3 module 4.
(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.
az account show --query user # if type is user, this is the root cause
See Hour 3 module 5 enforced MFA · Hour 3 module 6 deployment identity.
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.
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
See Hour 3 module 5 emergency accounts and conditional access.
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.
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
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
See Hour 3 module 6 workload identity federation · Hour 6 module 4 platform pipelines.
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.
# 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}'
See Hour 3 Module 6.
$ 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.
az account show -s <sub> --query "{tenant:tenantId,home:homeTenantId}"
… 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.
az managedservices definition list --query "[].properties.authorizations[].{role:roleDefinitionId,principal:principalIdDisplayName}" -o table
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.
Step through the symptoms to reach the most likely problem number and the first command.
rg-lab8-m2; one UAMI. All free. Requires Owner on the resource group (or User Access Administrator + Managed Identity Contributor).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
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'.
environment:prod credential, wait 1–2 minutes, then rerun and confirm success (rerunning immediately may hit the 70021 error from #23).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
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.jsonYou cannot add data action permissions when you have a management group as an assignable scope
/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.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.Type a keyword (such as Overlap, Initiated, No rule matched, privatelink, Nsg, or VpnGw) to filter. Click a row to jump to its details.
(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).
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"
az network vnet create --ipam-allocations), migrate the workloads, then delete the old VNet.pool-cc 10.0.0.0/12). Do not let application teams enter CIDRs themselves.$ 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).
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
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
See Hour 4 Module 1.
$ 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.
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
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.
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.
AZFWNetworkRule | union AZFWApplicationRule | where TimeGenerated > ago(30m) and SourceIp == "10.1.1.4" | project TimeGenerated, Action, DestinationIp, DestinationPort, Fqdn, Policy, RuleCollection
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.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.
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
$ 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.
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
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.
(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.
az network vnet-gateway list -g rg-alz-conn-cc --query "[].{n:name,sku:sku.name,type:gatewayType}" -o table
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.
(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.
az policy assignment show -n Deny-HybridNetworking --scope /providers/Microsoft.Management/managementGroups/corp --query parameters
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.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.
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
See Hour 4 Module 5 Private Link and private DNS · Hour 7 Module 4.
$ 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).
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
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
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.
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
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.
(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).
az policy assignment show -n Deny-Subnet-Without-Nsg --scope /providers/Microsoft.Management/managementGroups/landingzones --query "parameters"
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.
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.
az policy assignment show -n Enable-DDoS-VNET --scope /providers/Microsoft.Management/managementGroups/landingzones --query "{mode:enforcementMode,plan:parameters.ddosPlan.value}"
policy_assignments_to_modify).See Hour 4 Module 6 DDoS · Hour 6 Module 2 Overriding policy defaults.
Start from the symptom to reach the most likely problem and its first command.
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.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.
az group delete -n rg-lab8-m3 --yes (this also deletes the half-created peering).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/16rt-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).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).
Type a keyword (such as AMA, workspace, lock, library, Deploy-Accelerator, or throttled) to filter. Click a row to jump to its details.
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.
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
--definition-reference-id).See Hour 5 Module 2 AMA and DCR · Hour 2 Module 5 Remediation tasks · Hour 7 Module 3.
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.
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
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.
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.
az monitor diagnostic-settings list --resource <resourceId> --query "[].{n:name,ws:workspaceId}" -o table
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.
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
az monitor action-group test-notifications (check the CLI version for the exact syntax).See Hour 5 Module 3 AMBA.
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.
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")))'
See Hour 5 Module 4 Defender for Cloud · Hour 5 Module 6 Cost.
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.
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>
policy_assignments_to_modify, or set DoNotEnforce and manage backup yourself.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.
az storage blob show --account-name <sa> -c tfstate -n alz-platform.tfstate --auth-mode login --query "properties.lease"
# After confirming that no job is still running terraform force-unlock 6f0c…
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.
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.
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
library_references = [{ path = "platform/alz", ref = "2026.11.0" }]. Delete .alzlib, then run terraform init -upgrade (.alzlib should be in .gitignore).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 “/”.
pwsh -c '$PSVersionTable.PSVersion; Get-InstalledPSResource -Name ALZ'
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.
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).
terraform plan -out tfplan && terraform show -json tfplan | jq -r '.resource_changes[] | select(.change.actions|index("delete")) | .address' | sort | head -40
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.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.
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
assignmentScopeValidation: DoNotValidate. Batch the remediation tasks per subscription (resourceCount, parallelDeployments, failureThreshold).See Hour 7 Module 1 Brownfield assessment · Hour 7 Module 2 · Hour 2 Module 5 Exemptions.
(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.
az graph query -q "resources | summarize count()" --management-groups alz --debug 2>&1 | grep -i "x-ms-user-quota"
--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.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.
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).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--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 }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).
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
terraform force-unlock <ID>.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.
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.No verified video was found that covers AMBA notifications or ALZ platform pipeline troubleshooting specifically.
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.
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.
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).
“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.
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.
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.
Treating the CAF stages (Strategy, Plan, Ready…) as design areas.
See Hour 1 Module 2.
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.
Point out the tension between principles: subscription democratization (freedom) is balanced by policy-driven governance (guardrails).
“The principles are hub-spoke, zero trust, multi-region…” Those are design choices, not ALZ principles.
See Hour 1 Module 2.
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.
Mention the default management groups, and the hierarchy setting that requires authorization (#3).
“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.
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.
Point out that corp's private DNS depends on the centralized zones in connectivity and on DINE (#35).
“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.
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.
Describe decommissioned as “a deletion that can be reversed.”
“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.
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.
Mention setting “subscription leaves/enters directory” to Permit no one.
“Fewer subscriptions are easier to manage.”
See Hour 2 Module 1.
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.
Azure/avm-ptn-alz/azurerm 0.23.0 + the Azure/alz provider (which reads the ALZ library). Bicep path: AVM modules + deployment stacks.Emphasize upgradability. The IaC approach can follow library version upgrades (#48, Q43).
Recommending that new 2026 projects keep using the caf-enterprise-scale module.
See Hour 1 Module 6 · Hour 6 Module 1.
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.
Describe the readiness review as the gate to entering Adopt: are identity, networking, policy, and monitoring in place?
“Migrate first, and add the landing zone later.” This leads to large-scale brownfield remediation (#49).
See Hour 1, Module 1.
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.
Present a right-sized, phased roadmap with a cost estimate.
"Small companies don't need management groups."
See Hour 1, Module 3 · Module 8.
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.
provider "alz" {
library_references = [
{ path = "platform/alz", ref = "2026.11.0" },
{ custom_url = "${path.root}/lib" } # Overrides: archetype_override, custom architecture, extra assignments
]
}
policy_assignments_to_modify, archetype overrides), and set default parameter values (policy_default_values).platform/amba and platform/slz (sovereign Landing Zone).Mention that the provider is pre-1.0 (0.x), so pin the minor version, and add .alzlib to .gitignore.
"An archetype is just a Terraform module."
See Hour 2, Module 6 · Hour 6, Module 2.
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.
Mention the IPAM root pool and regional child pool design (the convention from hour 4).
"Copy the whole ALZ setup to the second region."
See Hour 4, Module 1 · Module 2 · Hour 7, Module 6.
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.
Point out that the NotActions in the ALZ library's custom roles are what enforce this boundary.
"The platform team approves every resource." That goes against subscription democratization.
See Hour 3, Module 2 · Hour 7, Module 6.
Their reason is that prod needs stricter policies. How do you respond, and what alternative do you propose?
resourceSelectors, or parameters (for example, a stricter SKU allow list or a backup policy).The team has Terraform experience. Describe a migration path to IaC.
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).No verified video dedicated to ALZ interview questions was found. Instead, replay a recorded mock interview.
Scan the questions and focus areas first. Click a row to jump to the detailed 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.
conflictEffect defaults to deny. You can set it to audit or disabled.Mention the Resource Manager mode and the resource provider mode (for example, mutate in Microsoft.Kubernetes.Data).
"Effects run in the order the assignments were created."
See Hour 2, Module 4.
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.
Give examples of DoNotEnforce assignments in ALZ (Enforce-Subnet-Private, Enforce-GR-Network0) to illustrate the observe-first approach.
"DINE fixes all existing resources immediately."
See Hour 1, Module 5 · Hour 2, Module 4.
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.
policyDefinitionReferenceId.Describe monitoring: an alert for remediation failures, plus a trend of non-compliant resources.
"DINE runs with the deployer's permissions."
See Hour 2, Module 5 · Hour 7, Module 3.
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.
assignmentScopeValidation: DoNotValidate (preview).policyExemptions/write, plus exempt/Action on the target assignment.Use Mitigated when the requirement is already met by other means (for example, a third-party WAF). Use Waiver when you accept the risk.
"Exclusions are safer than exemptions." Exclusions make the risk disappear from the reports.
See Hour 2, Module 5 · Module 8.
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).
overrides (kind policyEffect) can change an assignment's effect without changing the definition. Up to 10 per assignment.Run what-if in CI to catch Deny violations earlier, at the PR stage.
"Assign Deny at the root on Friday afternoon."
See Hour 2, Module 3 · Hour 7, Module 3.
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.
epac-dev).Describe an “ownership map”: which MG, and which object types, are managed by which tool.
"Change it in the portal, then export it to Git."
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.
Mention placing custom role definitions on the intermediate root (#17).
"Give the application team Owner on the subscription. It's convenient."
See Hour 3, Module 2 · Module 3.
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.
Send emergency account sign-in alerts to the SOC, and keep drill records as audit evidence.
"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.
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.
repo:org/repo:environment:prod. For a branch: …:ref:refs/heads/main.Connect this design to the MFA enforcement that started in 2025-10.
"Store the service principal's client secret in GitHub Secrets."
See Hour 3, Module 6 · Hour 6, Module 4.
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.
Point out that managed identities aren't affected by enforced MFA, so they are the preferred replacement for user-type service accounts.
"UAMIs have passwords that need rotating."
See Hour 3, Module 7.
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.
For an acquisition: first bring governance in through Lighthouse, then decide whether to move the subscriptions. Subscription transfers delete role assignments (#24).
"One tenant per environment."
See Hour 3, Module 1 · Module 7 · Hour 7, Module 6.
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.
The subscription is the strongest cost boundary. Tags are a supplement.
"Roll out Deny on all resources today."
See Hour 2, Module 2 · Hour 5, Module 6.
The platform team is worried about breaking production. Propose a phased plan and key points for communication.
An audit finds this, and the pipeline uses a service principal with a client secret. How would you fix it?
Scan the questions and focus areas first. Click a row to jump to the detailed 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.
Mention that AVNM can reduce the peering and routing management burden of hub-spoke.
"vWAN is always better" or "vWAN costs more, so don't use it."
See Hour 4, Module 1.
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.
Treat IPAM as a step in subscription vending, not as a spreadsheet.
"Each team picks its own 10.x range."
See Hour 4, Module 2.
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.
Explain the practical impact of Basic network rules not supporting FQDNs.
"The rule priority number decides the order of DNAT, network, and application rules."
See Hour 4, Module 3.
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.
privatelink.database.windows.net for Azure SQL Database) need the application template to write its own zone group.Give a troubleshooting order: who is resolving → which DNS is used → whether the zone is linked → whether the A record exists (#34, #35).
"DNS just works once the private endpoint is created."
See Hour 4, Module 5.
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.
Mention the lesser-known limitation that it isn't compatible with Azure Lighthouse.
"The Resolver is a private DNS zone."
See Hour 4, Module 5.
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.
Mention BFD, route weights, and AS-path prepending to control primary and backup paths.
"One ER circuit has an SLA, so you don't need redundancy."
See Hour 4, Module 4.
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.
The Audit-AppGW-WAF assignment on landingzones audits Application Gateways that don't have WAF.
"If you have WAF, you don't need DDoS protection."
See Hour 4, Module 6.
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.
Point out that the workspace ID is a parameter in many ALZ assignments (#40). Changing workspaces means updating assignments and remediation.
"One workspace per application gives the best isolation." But cross-workspace correlation and cost management both get harder.
See Hour 5, Module 1.
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.
Arc-enabled servers are managed through policy in the same way.
"Pre-install MMA in the image."
See Hour 5, Module 2.
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).
Handle Service Health alerts (Deploy-SvcHealth-BuiltIn on the intermediate root) separately from resource alerts.
"Enable all default alerts and send them to one mailbox."
See Hour 5, Module 3.
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).
The Security subscription (security MG) hosts Sentinel, separate from management.
"Turning on Defender means you're compliant."
See Hour 5, Module 4.
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.
Restore drills matter more than backup success rates.
"If automatic updates are on, you don't need to do anything."
See Hour 5, Module 5.
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.
Audit-UnusedResources (on the intermediate root) finds idle resources.
"Cost is Finance's job."
See Hour 5, Module 6.
Describe your troubleshooting steps and the three most likely root causes.
Choose a network topology and explain your reasoning.
Costs for the platform log workspace have spiked, and management wants a plan within one week.
No verified video dedicated to AMBA or Log Analytics workspace design (Q33–Q38) was found.
Scan the questions and focus areas first. Click a row to jump to the detailed 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).
Stress that bootstrap is also code, so it can be replayed (disaster recovery for the platform itself).
"The accelerator is just a deployment wizard in the portal."
See Hour 6, Module 1 · Hour 1, Module 6.
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"
}
Mention that deployment stack deny settings can replace some DenyAction and lock scenarios.
"Bicep can only be used for a single resource group."
See Hour 6, Module 2 · Module 3.
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.
Save the plan file as an artifact, so that what was approved is exactly what gets applied.
"Developers run terraform apply locally against production."
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.
Measure the median time from request to ready (target: hours).
"Vending just means creating a subscription."
See Hour 6, Module 5 · Hour 1, Module 3.
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.
Use Dependabot or Renovate to open PRs that bump version numbers, with the plan posted to the PR automatically.
"Use latest and don't pin the version."
See Hour 6, Module 7 · Hour 2, Module 6.
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.
Define exit criteria and a rollback for each batch (for example, moving a subscription back to where it was).
"Drag all 80 subscriptions into corp over the weekend."
See Hour 7, Module 1 · Module 2.
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.
Link to the platform engineering capability model (platform engineering skills).
"Platform success = deployment complete."
See Hour 7, Module 7.
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.
Distinguish data residency from data sovereignty (who can access the data, including the cloud operator).
"Choosing the right region is enough to meet sovereignty requirements."
See Hour 7, Module 5.
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.
Align the policy baseline before you connect the networks (check for overlapping address ranges).
"Move the subscriptions into the group tenant in the first week."
See Hour 3, Module 7 · Hour 7, Module 6.
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.
Give a phased roadmap and a risk list (address planning, policy rollout, migration).
"Draw three separate Landing Zones up front."
See Hour 7, Module 6 · Hour 4, Module 2.
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.
Quantify the impact (number of failed releases, duration) and include it in the blameless postmortem.
"Only talk about the technical fix, without covering detection, communication, and process improvements."
See Hour 2, Module 8 · Hour 7, Module 3.
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.
Freeze platform changes during the migration, and keep the old state files so you can roll back.
"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.
No verified video dedicated to hands-on use of the ALZ IaC Accelerator was found.
Filter by keyword (for example, Authorization, disallowed, AADSTS, DNS, DINE). Click a number to jump to the detailed explanation in the relevant module.
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.
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"
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
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 TENANTaz 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
Each scenario combines several questions from Part A. Write down your first diagnostic command and your judgment before you expand the answer.
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).
(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.
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.
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.
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.
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).
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.
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).
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.
| Topic | Conclusions used in this hour | Source (accessed 2026-11-18) |
|---|---|---|
| Policy troubleshooting | Deny 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 entries | Troubleshoot common errors (page updated 2026-06-12) |
| Management groups | 10,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 deleted | Management groups overview |
| Effects and remediation | 11 policy effects and their evaluation order; denyAction only supports delete, and cascade defaults to deny; remediation task parameters; DINE evaluationDelay defaults to PT10M | Effect basics · denyAction · Remediate |
| Subscriptions and billing | Creating 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 section | Create an MCA subscription request |
| ALZ library | 2026.11.0; default number of 12 MGs and assignments; library directories platform/alz, platform/amba, platform/slz | Azure-Landing-Zones-Library |
| Identity | Forced MFA phases and deferral deadlines; PIM licensing; RBAC limits; federated credential limits; Lighthouse role limits | Mandatory MFA · RBAC limits · WIF considerations |
| Networking | Firewall 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 v1 | Firewall SKUs · Default outbound · VPN Gateway what's new |
| Automation | IaC Accelerator prerequisites and phases; avm-ptn-alz 0.23.0, alz provider 0.22.1; caf-enterprise-scale archived; ALZ-Bicep deprecation timeline | Accelerator · avm-ptn-alz · ALZ-Bicep |
| Shared facts | All 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 |
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.
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.
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.