-
Notifications
You must be signed in to change notification settings - Fork 63
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
Failed to create Azure authorizer in a specific agent pool in Azure Devops #104
Comments
I have the same issue.
|
Also experiencing this issue |
I see a similar but probably related issue. I'm running a GitHub workflow using Azure Workload Identity to authenticate with Azure. The Azure Login step succeeds earlier in the workflow. This fails while it succeeded with version
|
Is this still an issue? I actually doubt it is related here, but would be good to understand if it is still seen. |
I was using the az login before my apply work around - I can try removing it and run one of my pipelines to see if it still occurs once and get back to you |
Tried commenting my az login out before my TF plan step in my pipeline script and still get errors although the error seems a bit more verbose now |
I thought about this a bit last night wondering if this is because terraform is using the $ARM_* env vars and this is probably looking for the $AZURE_* envs for tennant,client, etc. |
Hello,
I have a very strange error using sops provider in my terraform pipelines.
While the terraform itself can retrieve the values the Key needed for work with the file, the SOPS provider can't, giving me the following error
It is important to note that adding this in my terraform file:
it works properly, retrieving the key id.
If I put terraform in DEBUG I only can see the following line:
2023-04-24T10:29:04.931Z [DEBUG] provider.terraform-provider-sops_v0.7.2: [AZKV] time="2023-04-24T10:29:04Z" level=error msg="Failed to create Azure authorizer" error="Invoking Azure CLI failed with the following error: ERROR: Please run 'az login' to setup account.\n"
But the loging using the service principal has been done, if not, the terraform output would not work. Im using the following versions:
Terraform version: 1.4.5
SOPS: 0.7.2
Azurerm: v3.53.0
Obviously the process in my local machine works with any problem. So there is something (configuration...) that SOPS needs in the agent pool to work properly.
Important to say that I pass the needed env variables to the script, I don't do
az login
explicitly.Any idea?
The text was updated successfully, but these errors were encountered: