You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# The default provider configurationprovider"azurerm" {
subscription_id="MySubscriptionId"
}
Crash Output
Error: Error building AzureRM Client: Error populating Client ID from the Azure CLI: No Authorization Tokens were found - please ensure the Azure CLI is installed and then log-in with `az login`.
Expected Behavior
Terraform should support the AZURE_CONFIG_DIR env var (which is supported by Azure CLI).
Actual Behavior
Terraform complains that I'm not logged in, even though I am.
Steps to Reproduce
Configure your env with the AZURE_CONFIG_DIR set to something other than "$HOME/.azure".
Do az login and confirm that the AZURE_CONFIG_DIR is populated with the Azure CLI session files.
Run terraform and it will complain that you need to login.
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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 1, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Crash Output
Expected Behavior
Terraform should support the AZURE_CONFIG_DIR env var (which is supported by Azure CLI).
Actual Behavior
Terraform complains that I'm not logged in, even though I am.
Steps to Reproduce
Configure your env with the AZURE_CONFIG_DIR set to something other than "$HOME/.azure".
Do
az login
and confirm that the AZURE_CONFIG_DIR is populated with the Azure CLI session files.Run terraform and it will complain that you need to login.
Additional Context
Azure CLI reference:
https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration?view=azure-cli-latest#cli-configuration-file
The text was updated successfully, but these errors were encountered: