avd-opsDeploy quietly
Community research project. Use at your own risk. No warranty.Use at your own risk
  • Built on my own time for research and learning. Not affiliated with, endorsed by or supported by my employer or Microsoft.
  • Don't run any of it in production or against tenants that matter. Test in a dedicated lab subscription and tenant first.
  • Provided "as is", without warranty of any kind, under each repo's license. You use it at your own risk and own the Azure charges it incurs.
  • Contributions and forks are welcome and encouraged. See Contribute.

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-hcl off avd-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-zone and avd-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-ops see a first-class Terraform + Packer path with clear selection criteria.
  • Good, because existing Bicep templates, CI guards, and Cloud Shell workflows in avd-landing-zone and avd-azure remain untouched.
  • Bad, because two IaC implementations (avd-azure in Bicep and avd-hcl in Terraform) must stay aligned on the same avd-assess standards and topology contracts.

More Information

Cross-references to the family knowledge base and avd-hcl decision log:

Linked from 7 pages