-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
Related command
az login / az login --use-device-code
Is your feature request related to a problem? Please describe.
In the past I have disabled the subscription selector feature during CLI logins because I have too many available subscriptions, some completely irrelevant to my internal team. I don't believe I have control over access to these subscriptions. In the Azure portal, I can create and use an advanced filter to view certain subscriptions that are relevant.
I like the concept of the subscription selector, but there would be much less friction as a user if the CLI respected the active filter from the portal. Below is a view of my current subscription selector, where none of the subscriptions in view are relevant to my team or organization.
Describe the solution you'd like
The az login command would utilize the active subscription filter that a user has set in the portal, and only display subscriptions matching the filter.
Describe alternatives you've considered
An alternative could be adding a new az configure option alongside core.login_experience_v2. One option could be a boolean core.use_portal_filter or core.advanced_subscription_filter. Another option could be a string core.default_subscriptions or something along those lines that accepts a string of comma-separated subscription IDs.
Additional context