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.

azure-devops extension does not honor az login on azure-cli version 2.30.0

See original GitHub issue

This is autogenerated. Please review and update as needed.

Describe the bug

Starting with version 2.30.0 of Azure CLI, the azure-devops extension produces the below error for all calls.

In versions previous to this, including 2.29.2, running az login was enough to allow authentication to Azure DevOps as an authorized account.

Command Name az devops security group list Extension Name: azure-devops. Version: 0.21.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.

  • run az login and login as an account authorized for Azure DevOps
  • az devops security group list --org {} --project {}

Expected Behavior

az devops commands use authentication information provided from az login command.

Environment Summary

Windows-10-10.0.22000-SP0
Python 3.8.9
Installer: MSI

azure-cli 2.30.0

Extensions:
azure-devops 0.21.0

Additional Context

This occurs for all az devops commands and not just the one listed.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:5
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ericobcommented, Nov 8, 2021

This should be fixed with #1226

0reactions
Cadaciouscommented, Nov 22, 2021

This is indeed working with the latest version of Azure CLI and azure-devops extension.

Read more comments on GitHub >

github_iconTop Results From Across the Web

az devops AAD flow not working · Issue #20529 · Azure/azure-cli
I have authenticated with az login but running az devops project list ... Both are now not working. devops extension is on version...
Read more >
Release notes & updates – Azure CLI - Microsoft Learn
Learn about the latest Azure Command-Line Interface (CLI) release notes and updates for both the current and beta versions of the CLI.
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 >
How to install the Azure CLI - Microsoft Learn
The Azure CLI is available to install in Windows, macOS and Linux ... your installed version and see if you need to update,...
Read more >
az devops extension | Microsoft Learn
This reference is part of the azure-devops extension for the Azure CLI (version 2.30.0 or higher). The extension will automatically install the first...
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