Azure / Azure/azure-cli

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

Open
#29,743 2 comments 2 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team customer-reported potential-pruning question
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

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

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.