Azure / azure-cli

Azure Command-Line Interface
MIT License
4.03k stars 3.01k forks source link

Login window opens in background and doesn't remember last used accounts #29743

Open rubenaster opened 3 months ago

rubenaster commented 3 months ago

Describe the bug

Using az login with the new CLI now opens only a small login window, fair enough. But this window opens somewhere in the backgorund and I don't see it in the tab browser, which means I always have to search it.

In addition, it doesn't remember last logged in accounts, which means that I always have to re-enter my email adresses (I have multiple customers).

I'm calling the az login command from Visual Studio Code PowerShell terminal.

Related command

az login

Errors

See description

Issue script & Debug output

See description

Expected behavior

Window always opens in foreground, is visible using Alt+Tab and remembers last logged in accounts so I can quickly select them.

Environment Summary

azure-cli 2.63.0

core 2.63.0 telemetry 1.1.0

Extensions: azure-devops 0.26.0

Dependencies: msal 1.30.0 azure-mgmt-resource 23.1.1

Python location 'C:\Program Files\Microsoft SDKs\Azure\CLI2\python.exe' Extensions directory 'C:\Users\USERNAME.azure\cliextensions'

Python (Windows) 3.11.8 (tags/v3.11.8:db85d51, Feb 6 2024, 22:03:32) [MSC v.1937 64 bit (AMD64)]

Additional context

No response

yonzhan commented 3 months ago

Thank you for opening this issue, we will look into it.