Skip to content

Instantly share code, notes, and snippets.

@aheld
Last active March 25, 2026 19:16
Show Gist options
  • Select an option

  • Save aheld/55fe1ce50668ffb3e453279669fe7546 to your computer and use it in GitHub Desktop.

Select an option

Save aheld/55fe1ce50668ffb3e453279669fe7546 to your computer and use it in GitHub Desktop.
Azure subscription selector using fuzzy finder fzf
azsub() {
az account set --subscription $(az account list --all --query '[].[id, tenantDisplayName,name]' --out tsv | column -t -s $'\t'| fzf | awk '{print $1}')
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment