-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Azure AD Provider 0.11.0 fails to find an Azure Subscription using just the tenant ID #294
Comments
in case anyone else stumbles over this: Short term workaround until it is fixed: pin the 0.10 version. provider "azuread" {
version = "= 0.10"
tenant_id = "tenant-id"
} |
Hi @marc-sensenich, thanks for reporting this. I've been able to reproduce - it looks like this only occurs with CLI authentication. Another potential workaround if you want/need to use 0.11 would be to authenticate using an app/service principal and configure credentials using environment variables, e.g. export ARM_CLIENT_ID=00000000-0000-0000-0000-000000000000
export ARM_CLIENT_SECRET=s3cr3t We'll work on fixing this as quickly as we can. |
Note this issue only seems to occur if you omit the subscription ID from your configuration, either by unsetting |
Hi @manicminer, just checked back and actually I hadn't used the azuread provider with |
@rafabu Were you setting the |
I think it should use |
This has been released in version 1.1.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azuread" {
version = "~> 1.1.0"
}
# ... other configuration ... |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
A
terraform plan
with the provided configuration should have workedActual Behavior
A
terraform plan
failed due to the provided errorSteps to Reproduce
terraform init
terraform plan
Workaround
Provide an Azure Subscription ID
References
The text was updated successfully, but these errors were encountered: