Contributing¶
This repository is the source of truth for the Azure landing zone lab. A change that is only in the portal, or only in a local parameter file that was never committed, is not part of the lab.
Change process¶
- Branch from
main. One concern per branch. - Open a pull request. Do not push straight to
main. - Update the design-area doc that owns the resource in the same pull request. If the change reverses or narrows an ADR, update that ADR too. Use
docs/adr/000-template.mdfor a new one. - If the change adds or removes a resource that has a price, update
docs/cost-model.mdand ADR 005 when the guardrail itself moves. - CI must pass. It compiles and lints every Bicep file and every
.bicepparamfile. It does not deploy. - When you have Azure credentials, paste
az deployment ... what-ifoutput in the pull request for any template you expect to deploy. CI cannot do that for you. - No secrets, no object ids of production identities, no real billing scope paths.
replace-me@example.comis the committed placeholder. Put your address in locally and do not treat a personal mailbox as a secret, but do not commit a mailbox you are not happy to publish in a private repo either. The placeholder is the committed value.
What "done" looks like for a platform change¶
bash scripts/build-and-lint.shexits 0.- Parameter files still have the expensive flags and
confirmExpensiveSpendset to false. Turning one on is an ADR 005 change, not a quiet edit. - The README deploy or teardown steps still match the resource names if you renamed anything.
Review¶
Read the what-if before you care about style. A what-if that creates a public IP, a firewall, a gateway, Bastion, or a DDoS plan in the default parameters is a defect.
Application workloads do not get added to the hub resource group. A new workload uses the subscription vending module and a pull request that shows the address space does not overlap 10.0.0.0/16, 10.1.0.0/16, or 10.2.0.0/16.