Created
April 24, 2019 11:12
-
-
Save rmetzler/0241998ece8edad455c0a974e8ec7878 to your computer and use it in GitHub Desktop.
use fzf to switch between azure accounts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function faz() { | |
az account set --subscription $(az account list -o table | fzf | cut -c '62-98') | |
az account show | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Above doesn't work anymore. It's quite brittle to use exact indexes like the 62-98.
The following is more future-proof I think.