Skip to content

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

  1. Branch from main. One concern per branch.
  2. Open a pull request. Do not push straight to main.
  3. 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.md for a new one.
  4. If the change adds or removes a resource that has a price, update docs/cost-model.md and ADR 005 when the guardrail itself moves.
  5. CI must pass. It compiles and lints every Bicep file and every .bicepparam file. It does not deploy.
  6. When you have Azure credentials, paste az deployment ... what-if output in the pull request for any template you expect to deploy. CI cannot do that for you.
  7. No secrets, no object ids of production identities, no real billing scope paths. replace-me@example.com is 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.sh exits 0.
  • Parameter files still have the expensive flags and confirmExpensiveSpend set 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.