Loading...
Loading...
### Terraform Version ```shell Terraform v1.9.8 on darwin_arm64 ``` ### Terraform Configuration Files ```terraform # I understand the need for "subscription_id" and "resource_group_name" # in azurerm backend config when using "access keys" based AUTH, example code below : backend "azurerm" { subscription_id = "d4b99e03-5dc4-4874-b951-b6a7ea5f0e6c" # randomly generated GUID to emulate a real "subscription_id" resource_group_name = "resource_group_name" storage_account_name = "storage_account_name" container_name = "container_name" key = "terraform.tfstate" } # Technically speaking, terraform doesn't require "subscription_id" or "resource_group_name" # in azurerm backend config when using "RBAC" based AUTH. # However, currently, you need to pass a placeholder/dummy "subscription_id" # for terraform to configure the azurerm backend as expected, example code below : backend "azurerm" { subscription_id = "00000000-0000-0000-0000-000000000000" # placeholder/dummy "subscription_id" storage_account_name = "storage_account_name" container_name = "container_name" key = "terraform.tfstate" use_azuread_auth = true } ``` ### Debug Output n/a ### Expected Behavior ```terraform # The example code below should be a valid azurerm backend config : backend "azurerm" { storage_account_name = "storage_account_name" container_name = "container_name" key = "terraform.tfstate" use_azuread_auth = true } ``` ### Actual Behavior Got the following error message during `terraform init` stage : - Error building ARM Config: 1 error occurred: - A Subscription ID must be configured when authenticating as a Service Principal using a Client Secret. ### Steps to Reproduce `terraform init` ### Additional Context Environment variables : - ARM_CLIENT_ID - ARM_CLIENT_SECRET - ARM_TENANT_ID ### References Throwing in error code paths that I have looked at : https://github.com/hashicorp/terraform/blob/v1.9.8/internal/backend/remote-state/azure/arm_client.go#L102 https://github.com/hashicorp/go-azure-helpers/blob/v0.43.0/authentication/auth_method_client_secret.go#L88
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.