Open micro9000 opened 2 months ago
@micro9000 Couple of things:
az cli
are you using? terraform init
before doing a terraform plan
?Also remember that starting since version 4.0 Specifying Subscription ID is now Mandatory
Hi @Chambras
az cli
v2.64.0terraform init
Additional actions I did:
I already tried to use Service Account as user locally using the instructions here https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/guides/service_principal_client_secret
az login --service-principal -u CLIENT_ID -p CLIENT_SECRET --tenant TENANT_ID
az account set --subscription="20000000-0000-0000-0000-000000000000"
Running normal Azure CLI commands are fine, e.g. az group list
it returns all resource groups
But I still encounter the error above
+1
Is there an existing issue for this?
Community Note
Terraform Version
1.9.6
AzureRM Provider Version
4.3.0
Affected Resource(s)/Data Source(s)
azurerm
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
When I run the
terraform plan
, it should be able to use my personal account that I have logged in usingaz login
, not the client I used beforeActual Behaviour
Not able to run the
terraform plan
and I'm getting the error aboveSteps to Reproduce
Important Factoids
No
References
No