Azure / Azure/azure-cli

Az account does not support switching between accounts

Open
#20,222 3 comments 0 reactions 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad customer-reported feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Is your feature request related to a problem? Please describe.**
I have a couple of accounts in my tenant. `az account set` only allows for the current account to switch between subscriptions.

**Describe the solution you'd like**
I would like to be able to see all available contexts and switch between them. Refer to Az PowerShell's `Get-AzContext -ListAvailable` and `Set-AzContext`.

If you run `az account list` you will only see the "unique" subscriptions, not the full list available accounts.

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.