Logging in to the Azure CLI does not provide access to `az devops` commands as expected
See original GitHub issueLogging in to the Azure CLI does not provide access to az devops
commands as expected
Command Name
az devops project list
(Extension Name: azure-devops. Version: 0.23.0.)
Errors:
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.
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Log into the Azure cli using
az login
az devops project list
Expected Behavior
A list of projects in my devops organizations should be presented.
Environment Summary
Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI
azure-cli 2.34.1
Extensions:
azure-devops 0.23.0
Dependencies:
msal 1.16.0
azure-mgmt-resource 20.0.0
Additional Context
The link in the error message does not provide further information on using az login
for using AAD/MSA identity.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:6
- Comments:11 (4 by maintainers)
Top Results From Across the Web
Troubleshoot Azure DevOps command line interface
Enter az boards area team add -h for command usage. Error: TF400499. You may encounter the following error when you add, remove, or...
Read more >Troubleshoot access, permission issues - Azure DevOps
Find helpful troubleshooting information for resolving access and permission issues in Azure DevOps.
Read more >How to install and manage Azure CLI extensions
Learn how to find, install, uninstall, and manage extensions with Azure CLI. Use the Azure CLI to load extensions provided and maintained by ......
Read more >Troubleshoot Azure RBAC | Microsoft Learn
Troubleshoot issues with Azure role-based access control (Azure RBAC). ... The client with object id does not have authorization to perform ...
Read more >TF400813: The user '' is not authorized to access this resource
Test the scenario, everything works as expected. The following steps for your reference: az devops login --organization ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@mdekrey, we recently started working on the CLI service and we have checked the code if you have Azure active Directory/Microsoft account (AAD/MSA) you can see the “az devops project list” output by using “az login” otherwise you need to use “az devops login” (provide PAT) to see the “az devops project list”.
Hi @mdekrey, Please find the below analysis for az login and az devops project list