azure-devops extension does not honor az login on azure-cli version 2.30.0
See original GitHub issueThis 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:
- Created 2 years ago
- Reactions:5
- Comments:8 (2 by maintainers)
Top 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 >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
This should be fixed with #1226
This is indeed working with the latest version of Azure CLI and azure-devops extension.