docs/src/data/experiments/azure-backend.mdx
import Since from '@components/Since.astro'; import Before from '@components/Before.astro';
Experimental support for the Azure Storage (azurerm) remote state backend.
azure-backend - What it doesIn its current form (initial registration) the experiment only:
azure-backend experiment name.azurerm backend slot in Terragrunt's remote state layer.The flag itself currently has no behavioral effect: there is no Azure SDK code, authentication logic, or storage account management yet, and the backend is not gated on the flag. Functional behavior will land in subsequent releases. </Before>
<Since version="1.1.2"> Enabling this experiment turns on Terragrunt-managed lifecycle operations for the Azure Storage (`azurerm`) remote state backend, matching what Terragrunt already does for S3 buckets and GCS buckets:Authentication supports six methods, resolved in the following order:
use_azuread_auth or the default credential chain, which honors az login)ARM_* and AZURE_* environment variable fallbacks are applied, and public, US
Government, and China clouds are supported via the environment key.
Without the experiment enabled, these lifecycle operations return an error naming
the experiment; reading and writing the state itself is always handled by the
native OpenTofu/Terraform azurerm backend. Direct state file reads for
dependency-fetch-output-from-state
are not implemented yet.
See the Azure Storage backend documentation for configuration keys and known limitations. </Since>
azure-backend - How to enable it# Via CLI flag
terragrunt --experiment azure-backend run -- plan
# Via environment variable
export TG_EXPERIMENT=azure-backend
terragrunt run -- plan
azure-backend - How to provide feedbackTrack and discuss this experiment in gruntwork-io/terragrunt#4307. When reporting issues or providing feedback, please include:
init, plan, or backend bootstrap.azure-backend - Criteria for stabilizationTo transition the azure-backend feature to a stable release, the following must be addressed, at a minimum:
internal/azurehelper package wrapping the Azure SDK with a builder pattern matching awshelper/gcphelper.use_azuread_auth during bootstrap (the data-plane role must currently be granted manually).--dependency-fetch-output-from-state.azure build tag.