-
Notifications
You must be signed in to change notification settings - Fork 3.4k
az devops AAD flow not working #20529
Copy link
Copy link
Closed
Labels
DevOpsService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
Metadata
Metadata
Assignees
Labels
DevOpsService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.act-platform-engineering-squadcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.
I have authenticated with
az loginbut runningaz devops project list --organization https://dev.azure.com/myorgon 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-267ca6975798What 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
--debugit 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.