login: v1 breaks with Error: Login failed

Since 30 min or so, All our pipelines have started breaking which are using azure/login@v1 Since the redirection is happening to v1.5.1. I tried it to revert back to an older version i.e. azure/login@v1.4.7 and it started working again.

Here are the error message i am getting with using v1.

Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details.
Attempting Azure CLI login by using service principal with secret...
Error: The subscription of '2a8db146-fa3e-494d-ad0a-f691ffc46d1f' doesn't exist in cloud 'AzureCloud'.

Error: Login failed with Error: The process '/usr/bin/az' failed with exit code 1. Make sure 'az' is installed on the runner. If 'enable-AzPSSession' is true, make sure 'pwsh' is installed on the runner together with Azure PowerShell module. Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
##[debug]Error: The process '/usr/bin/az' failed with exit code 1

Can you please check what might have caused this?

About this issue

  • Original URL
  • State: closed
  • Created 7 months ago
  • Reactions: 1
  • Comments: 29 (5 by maintainers)

Most upvoted comments

Hi @MoChilia, We are using the specific AKV action along with creds (being stored as GitHub Secrets) across more than 200 github organizations in BCG. Making any such change would be a mammoth effort and thus would request you to help us provide the fix for v1 only.

Hi @kantkrishan, Please remove the subscription-id in creds. In v1.5.1, subscription-id will be set once it is provided.
The subscription-id should not be given in your case, since your service principal doesn’t have access permission to the given subscription.