This program let's you pick an Azure subscription interactively with the output of az login
or az account list
commands.
Tip: this program can be replaced with the following commands. Requires jq
, fzf
, awk
and xargs
.
az account login
az account list --query '[].{Name:name, ID:id}' --output json | jq -r '.[] | "\(.Name) \(.ID)"' | fzf | awk '{print $NF}' | xargs -I {} az account set --subscription {}
az login | azctx
az account list | azctx
go install github.com/kimfy/azctx
GNU GPLv3