Azure / Azure/azure-devops-cli-extension

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

Open
#1,258 13 comments 12 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
682
Forks
278
Avg merge
3d 23h
Merged PRs (30d)
3

Description

## 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.

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.