0016. Position Terraform (avd-hcl) as the enterprise IaC option alongside Bicep
Terraform (avd-hcl) is the recommended enterprise IaC option alongside Bicep (avd-landing-zone and avd-azure), with each repo staying in its own toolchain lane.
Context and Problem Statement
The avd-ops family deploys native Azure Virtual Desktop with Bicep and PowerShell in avd-landing-zone and avd-azure, while avd-hcl implements native AVD with Terraform and Packer.
More
For enterprise platform teams, Terraform is the stronger IaC option: it manages Azure alongside Entra ID, GitHub, DNS, monitoring, and multi-cloud or SaaS providers in one dependency graph; tracks explicit state for deterministic plan diffs, clean resource deletion, and moved refactoring; and standardizes on HCL and mature policy-as-code tooling. How should avd-ops position Terraform relative to Bicep across the front door and family docs?
Considered Options
Three options were weighed:
- Keep Bicep as the only documented IaC path and leave
avd-hcloffavd-ops.dev - Position Terraform (
avd-hcl) as the recommended enterprise IaC option alongside Bicep (avd-landing-zone/avd-azure), keeping each repo in its own toolchain lane - Replace Bicep with Terraform inside
avd-landing-zoneandavd-azure
Decision Outcome
Chosen option: "Position Terraform (avd-hcl) as the recommended enterprise IaC option alongside Bicep (avd-landing-zone / avd-azure), keeping each repo in its own toolchain lane".
More
Why: enterprise estates benefit from Terraform's cross-provider orchestration, explicit state lifecycle, and plan fidelity without breaking the zero-state, Bicep-native avd-landing-zone and avd-current-state pair. Bicep repos stay Bicep/PowerShell-only, while Terraform and Packer live in avd-hcl.
Consequences
- Good, because enterprise teams evaluating
avd-opssee a first-class Terraform + Packer path with clear selection criteria. - Good, because existing Bicep templates, CI guards, and Cloud Shell workflows in
avd-landing-zoneandavd-azureremain untouched. - Bad, because two IaC implementations (
avd-azurein Bicep andavd-hclin Terraform) must stay aligned on the sameavd-assessstandards and topology contracts.
More Information
Cross-references to the family knowledge base and avd-hcl decision log:
- Also recorded in
avd-second-brainas decision 0028. - See avd-hcl decision 0001.
Linked from 7 pages
- First principles
- 0019. Multi-subscription and multi-tenant AVD lab topology
- 0020. Frontend Microsoft AVD LZA via an optional C14-to-bicepparam starter export
- 0034. Consolidate control planes, keep Terraform as the enterprise IaC path, and park premature layers
- Decision records
- Multi-tenant and multi-subscription lab bootstrap
- avd-hcl