question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Logging in to the Azure CLI does not provide access to `az devops` commands as expected

See original GitHub issue

Logging 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:open
  • Created 2 years ago
  • Reactions:6
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
v-soujanyacommented, Sep 16, 2022

@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”.

3reactions
v-soujanyacommented, Sep 15, 2022

Hi @mdekrey, Please find the below analysis for az login and az devops project list

  1. az login : it will check for active subscriptions on portal.azure.com for your tenant. if you don’t have the subscriptions / subscriptions expired, you need to provide PAT token to run the az devops commands. (az devops login)
  2. az devops project list : Please provide PAT token then you can see the project list.
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found