Terraform Azure Backend Bootstrap
Remote state has a chicken-and-egg problem: Terraform needs somewhere to store state, but the storage account and container may also be managed by Terraform. The clean approach is to treat backend bootstrapping as a short, explicit phase. Create the state storage resources first, migrate state intentionally, then use the remote backend for the rest of the infrastructure. Target Shape For Azure Blob Storage, the backend needs: a resource group. a storage account. a private blob container. a stable state key per root module or environment. Example backend shape: ...