Azure / Azure/azure-cli

Not able to run azure cli tasks in ADO jobs

Open
#15,420 8 comments 0 reactions 0 assignees View on GitHub
act-platform-engineering-squad DevOps Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

Hi, Since last 3 hours, I was not able to run any azure-cli tasks using build pipelines. All were failing with the below issue:

C:\windows\system32\cmd.exe /D /S /C ""C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2\wbin\az.cmd" login --identity

##[error]Error Code: [1]
##[error]Error: Azure login failed using Managed Service Identity
##[error]Script failed with error: UnexpectedError: The command failed with an unexpected error. Here is the traceback:

However, I was able to run the same commands directly by logging into the azure cloud shell.

Please let me know any resolution for this issue:

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.