Skip to content
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

az devops AAD flow not working #20529

Open
cveld opened this issue Nov 28, 2021 · 4 comments
Open

az devops AAD flow not working #20529

cveld opened this issue Nov 28, 2021 · 4 comments
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. DevOps Service Attention This issue is responsible by Azure service team.

Comments

@cveld
Copy link

cveld commented Nov 28, 2021

I have authenticated with az login but running az devops project list --organization https://dev.azure.com/myorg on Windows 10 keeps reporting the following error:

Before you can run Azure DevOps commands, you need to run the login command(az login if using AAD/MSA identity else az devops login if using PAT token) to setup credentials. Please see https://aka.ms/azure-devops-cli-auth for more information.

Whereas the following does yield expected results:

az rest --method get --url "https://dev.azure.com/myorg/_apis/projects?api-version=2.2" --resource 499b84ac-1321-427f-aa17-267ca6975798

What am I missing?

During the report of this issue it was still working on wsl2.

But updated az cli to version 2.31 now on both Windows and wsl. Both are now not working. devops extension is on version 0.22.

If I take a look at the output provided with --debug it seems that az is taking the wrong userid from my account list. I have multiple both at the windows side as well as at the wsl2 side. Interestingly at the wsl2 side it was taking the correct one in the earlier version.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@ghost ghost added needs-triage This is a new issue that needs to be triaged to the appropriate team. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that customer-reported Issues that are reported by GitHub users external to the Azure organization. labels Nov 28, 2021
@yonzhan yonzhan added the DevOps label Nov 28, 2021
@ghost ghost removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 28, 2021
@yonzhan yonzhan added Service Attention This issue is responsible by Azure service team. and removed question The issue doesn't require a change to the product in order to be resolved. Most issues start as that labels Nov 28, 2021
@ghost
Copy link

ghost commented Nov 28, 2021

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @narula0781, @ashishonce, @romil07.

Issue Details

I have authenticated with az login but az devops project list --organization https://dev.azure.com/myorg keeps reporting the following error:

Before you can run Azure DevOps commands, you need to run the login command(az login if using AAD/MSA identity else az devops login if using PAT token) to setup credentials. Please see https://aka.ms/azure-devops-cli-auth for more information.

Whereas the following does yield expected results:

az rest --method get --url "https://dev.azure.com/myorg/_apis/projects?api-version=2.2" --resource 499b84ac-1321-427f-aa17-267ca6975798

What am I missing?


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Author: cveld
Assignees: -
Labels:

Service Attention, customer-reported, DevOps

Milestone: -

@yonzhan
Copy link
Collaborator

yonzhan commented Nov 28, 2021

route to service team

@wiruzman
Copy link

wiruzman commented Dec 9, 2021

Azure CLI version 2.29.2 still working. From version 2.30.0 it does not work.

UPDATE:
Azure CLI version 2.30.0+ works with azure-devops extension version 0.22.0.

@cveld cveld changed the title AAD flow not working az devops AAD flow not working Dec 14, 2021
@shortpoet
Copy link

This is broken for me

 az --version
azure-cli 2.48.1

core 2.48.1
telemetry 1.0.8

Extensions:
account 0.2.5
azure-devops 0.26.0

Dependencies:
msal 1.20.0
azure-mgmt-resource 22.0.0

Python location '/opt/homebrew/Cellar/azure-cli/2.48.1/libexec/bin/python'
Extensions directory '/Users/carlos/.azure-litos/cliextensions'

Python (Darwin) 3.10.11 (main, Apr 7 2023, 07:24:53) [Clang 14.0.0 (clang-1400.0.29.202)]

Legal docs and information: aka.ms/AzureCliLegal

Your CLI is up-to-date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. DevOps Service Attention This issue is responsible by Azure service team.
Projects
None yet
Development

No branches or pull requests

4 participants