This is the public documentation site for the Azure landing zone lab. Bicep templates, scripts, and CI remain in a private repository and are referenced here by file path only.
Azure landing zone lab¶
Source of truth for an enterprise-style Azure landing zone used by this lab to learn the Cloud Adoption Framework at enterprise depth, and later as a reference in client conversations.
Anything that exists in the lab subscription is defined here first. A resource created only in the portal is drift.
This is a learning implementation sized for one free-trial subscription. It is not the Azure Landing Zones accelerator. For a client platform, start from that accelerator (Bicep AVM or Terraform) and use this repo to explain the design areas and the deltas. The decisions are in docs/adr.
How the repo is organised¶
| Path | Contents |
|---|---|
docs/design-areas/ |
One doc per Cloud Adoption Framework design area: enterprise practice, what this lab implements, what it simplifies |
docs/adr/ |
Architecture decision records |
docs/cost-model.md |
List prices and the default monthly estimate |
docs/prerequisites.md |
Tenant elevation and free-trial checks before the first deploy |
infra/ |
Bicep. main.bicep is the default subscription deployment |
.github/workflows/bicep-ci.yml |
Build and lint. No Azure login, no secrets |
CONTRIBUTING.md |
Pull requests, docs, and ADRs move together |
The management group diagram and the hub-and-spoke diagram are in the resource organisation and network docs.
Cost¶
Expected cost of the default deployment: about USD 0.50 per month, from one private DNS zone. Virtual networks, policy, and management groups are USD 0 while idle.
Log Analytics is capped at 0.1 GB per day (at most 3.1 GB in a 31-day month). Australia East Analytics Logs are USD 0 for the first 5 GB per billing account per month and USD 3.34 per GB after that, on the retail feed checked 25 November 2026. If this offer does not include the 5 GB allowance and the cap is full every day, ingestion is about USD 10, and the total is about USD 11. That is the ceiling for the default flags.
Azure Firewall, VPN gateway, Bastion, and DDoS Network Protection are modules, and they are off. Standard Firewall alone is about USD 910 per month before data. Details, optional prices, and the budget behaviour are in docs/cost-model.md.
The budget resource alerts at 50 in the subscription billing currency. A New Zealand account is often billed in NZD, so 50 means NZD 50 until you change it. Budgets send email. They do not stop spend.
Quick start¶
Prerequisites, including the free-trial spending limit and the management-group elevation, are in docs/prerequisites.md. The subscription deployment does not need the elevation. The management group deployment does.
az login
az account set --subscription "Azure subscription 1"
az account show --query '{name:name, id:id}' -o table
# Put your own address in infra/main.bicepparam (budgetContactEmail).
# The committed value is replace-me@example.com.
bash scripts/build-and-lint.sh
bash scripts/print-what-if.sh
Deploy¶
What-if first. create is the same command with what-if replaced by create.
az provider register --namespace Microsoft.Network --wait
az provider register --namespace Microsoft.OperationalInsights --wait
az provider register --namespace Microsoft.Insights --wait
az provider register --namespace Microsoft.Consumption --wait
az deployment sub what-if \
--name alz-lab \
--location australiaeast \
--template-file infra/main.bicep \
--parameters infra/main.bicepparam
Read the what-if. You want resource groups, a Log Analytics workspace, three virtual networks, peerings, one private DNS zone, policy assignments, two role definitions, and a budget. You do not want a public IP, a firewall, a gateway, Bastion, or a DDoS plan.
az deployment sub create \
--name alz-lab \
--location australiaeast \
--template-file infra/main.bicep \
--parameters infra/main.bicepparam
Management groups, after the elevation in the prerequisites:
az deployment tenant what-if \
--name alz-management-groups \
--location australiaeast \
--template-file infra/management-groups.bicep \
--parameters infra/management-groups.bicepparam
That command does not move Azure subscription 1. Leave the subscription where it is until you have read ADR 003.
az bicep build --file infra/main.bicep compiles one file the same way CI does. CI installs Bicep 0.49.2 and does not call Azure.
Teardown¶
This deletes lab resource groups, subscription policy, the budget, and the custom roles. It does not delete the subscription, the tenant, or management groups.
Peerings and private DNS links are removed first. A virtual network with a peering or a DNS link still attached will refuse to delete.
The script stops unless the current subscription name is exactly Azure subscription 1. Set REGION_SHORT=ause if you deployed in Australia Southeast. Set DELETE_VENDING_EXAMPLE=true to also delete rg-example-aue-001.
Management groups, children first, and only if you created them and they contain no subscription:
for name in alz-identity alz-management alz-connectivity \
alz-corp alz-online alz-sandbox alz-decommissioned \
alz-platform alz-landingzones alz; do
az account management-group delete --name "$name"
done
If you deployed infra/policies.mg.bicep, delete those assignments before the alz group. They are scoped to the management group, not the subscription, so the script above does not see them.
Changing the lab¶
CONTRIBUTING.md. Pull request, design-area doc, ADR if the decision changed, cost model if the price changed.