Skip to main content
Version: Next

Infrastructure Standards

Canonical reference: Infrastructure Standards (full)
Applies to: All AzureLocal repositories
Last Updated: 2026-03-17


Overview

Standards for Infrastructure as Code (IaC), Terraform state management, and deployment processes for AzureLocal solutions.


Infrastructure Pipeline

flowchart LR
A[Generate Variables] --> B[Validate Config]
B --> C[Plan Infrastructure]
C --> D[Review Changes]
D --> E[Apply Changes]
E --> F[Update State]

State Management

PrincipleRule
Remote stateStore Terraform state in Azure Storage Account
State lockingEnable locking during all operations
BackupRegular state file backups before destructive operations
Naming<solution>-<env>.tfstate (e.g., platform-prod.tfstate)

IaC Tool Parity

All tools must produce identical infrastructure when given the same configuration values:

ToolPrimary FormatState Management
Terraform.tf / .tfvarsRemote state in Azure Storage
Bicep.bicep / .bicepparamARM deployment history
ARM.jsonARM deployment history
PowerShell.ps1Config-driven, logged
Ansible.ymlInventory-based

Deployment Phases

PhaseScopeTools
Phase 1: Azure FoundationResource groups, networking, Key Vault, storageTerraform, Bicep, ARM
Phase 2: Compute & WorkloadVMs, clusters, workload deploymentTerraform, PowerShell
Phase 3: ConfigurationGuest config, monitoring, policiesPowerShell, Ansible