azctx
is a command line tool whose aim is to ease the use of the
official az cli. It is heavily inspired
by kubectx.
It provides an easier and more intuitive way to set your current default azure subscription/account and resource group.
Recommended: Install azctx
with brew:
brew tap deviceinsight/packages
brew install azctx
Alternatively directly download the binary from the Releases.
- Run
azctx
- Select a Subscription/Account, (Arrow keys, Search, Enter, Double click)
- Select resource group, or quit (CTRL + C) if you don't want to/clear the default resource group