Scenarios¶
The template ships the foundation wired and everything under platform/ and
landingzones/ as README-only placeholders. A scenario is one way of filling a
placeholder in: a connectivity hub, a landing zone, a second environment, a
workload unit. Each scenario page explains the shape, the modules, the apply
order and the settings people get wrong, and links to a copyable tree in the
template's examples/ folder.
Pick a scenario¶
Connectivity¶
One hub per region, in the connectivity subscription. Pick by what the workloads need, not by what sounds complete: every optional resource bills whether it carries traffic or not.
| Scenario | When | Idle cost |
|---|---|---|
| Minimal hub and spoke | Private endpoints and spoke-to-spoke reachability through the hub, no inspection, no on-premises | Near zero |
| Hub and spoke with Azure Firewall | Egress inspection and a central rule set, on a classic hub you can extend with gateways | Firewall only |
| Virtual WAN with Azure Firewall | The same, plus branch sites, SD-WAN or a second region without re-plumbing. The SMB default of the ALZ accelerator | Hub plus firewall |
| Management only | No connectivity subscription yet. Governance and monitoring first, network later | Zero |
Landing zones¶
A landing zone is one subscription under corp or online, as two units: the
placement unit and the spoke network. Corp versus online is one line.
| Scenario | When |
|---|---|
| Existing subscription | The subscription already exists: created in the portal, by a partner, or inherited |
| New subscription | The platform creates the subscription from a billing scope |
Options¶
| Option | What it adds |
|---|---|
| Several environments in one subscription | Per-environment folders with their own env.hcl and spoke |
| Add a region | A second hub and the spokes that follow it |
| Add a workload unit | A storage account, key vault or similar next to the spoke, in its own state |
| Platform subscriptions | Identity, security, and workloads in the management subscription |
Modules the examples use¶
Every example pins its modules. The links point at the pinned version, so the
inputs and outputs match what the example sets. Each module repository ships
examples/ that its own CI applies on every release; they are the reference
for input combinations the scenarios do not show.
| Module | Version | Docs |
|---|---|---|
Azure/avm-ptn-alz-connectivity-hub-and-spoke-vnet/azurerm |
0.18.1 |
inputs, outputs, source, examples |
Azure/avm-ptn-alz-connectivity-virtual-wan/azurerm |
0.18.0 |
inputs, outputs, source, examples |
Azure/avm-ptn-alz-sub-vending/azure |
0.3.4 |
inputs, outputs, source, examples |
Azure/avm-res-storage-storageaccount/azurerm |
0.10.0 |
inputs, outputs, source, examples |
Azure/avm-res-resources-resourcegroup/azurerm |
0.4.0 |
inputs, outputs, source, examples |
Azure/naming/azurerm |
0.4.4 |
inputs, outputs, source, examples |
How the examples work¶
Every scenario has a folder under examples/ in the customer template. The
folder is the exact live/ subtree you add, at the paths discovery expects,
with each tenant-specific value set to an all-zero placeholder and a comment
naming what goes there.
- Copy the subtree over your repository's
live/. - Replace the placeholders and rename the subscription folder and the
purposelocal to the customer's values. - Read every comment that says "replace", "literal" or "change both together". Those mark a value another unit also derives.
- Open a pull request. Discovery plans the new units and posts the result.
Nothing under examples/ is a unit. Discovery is scoped to live/, and the
merge gate ignores the folder. The examples are validated against the module
schemas and planned on NRIT's sandbox tenant before publication; they are not
applied there, so read your own plan.
The tree, in brief¶
A folder with no terragrunt.hcl is not a unit. Discovery walks past it, so a
README-only folder costs nothing at plan time and documents where things will
go. Every management group in the hierarchy has a folder from day one; when a
subscription arrives, you add files to a folder that is already in the right
place, and the state key follows the path.
| Folder | Management group | What it becomes |
|---|---|---|
platform/connectivity/ |
connectivity |
The hub network, per region |
platform/identity/ |
identity |
Identity services, when a subscription exists |
platform/management/ |
management |
Workloads in the management subscription, for example a backup vault |
platform/security/ |
security |
Security tooling, when a subscription exists |
landingzones/corp/ |
corp |
Corp-connected workloads, no public ingress by default |
landingzones/online/ |
online |
Internet-facing workloads |
landingzones/local/ |
local |
Azure Local landing zones. Rare; the management group exists because the ALZ architecture is complete |
sandbox/ |
sandbox |
Loosely governed experimentation |
decommissioned/ |
decommissioned |
Subscriptions being retired |
The tenant foundation (hierarchy, policy, Log Analytics, data collection rules,
the AMA identity) is not under platform/management/. It lives in
live/_foundation/, deployed once at the top, because the landing-zones policy
assignments reference the management resources by id. See
Foundation units.
The flattening rule¶
A platform management group with exactly one subscription puts
subscription.hcl and env.hcl directly in the management group folder. There
is no named subscription level, because there is nothing to name it apart from.
live/platform/connectivity/
├── subscription.hcl # the connectivity subscription
├── env.hcl # environment = "prod"
└── westeurope/
├── region.hcl
└── caf-connectivity-hub/
A landing zone uses a named subscription folder, because a management group
holds many of them. The folder is named after the subscription,
<archetype>-<purpose>-<environment>.
live/landingzones/corp/
└── corp-app-prod/
├── subscription.hcl
├── env.hcl # environment = "prod"
├── _global/
│ ├── region.hcl
│ └── lz-vending/
└── westeurope/
├── region.hcl
└── network/
Apply order¶
Dependencies are ordering only; no unit reads another's state. The order is the same in every scenario:
_foundation/management-resources
-> _foundation/landing-zones
-> _foundation/amba
-> platform/connectivity/<region>/<hub>
-> landingzones/<mg>/<subscription>/_global/lz-vending
-> landingzones/<mg>/<subscription>/<region>/network
-> landingzones/<mg>/<subscription>/<region>/<workload units>
The engine applies in this order on tfpr apply, from the dependencies blocks.
A failed unit skips its dependents.