Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 802 Bytes

README.md

File metadata and controls

48 lines (34 loc) · 802 Bytes

AzureCTX

Quickly switch between Azure subscriptions, similar to kubectx

Requirements

fzf. Just make sure it's installed and in your $PATH

az. Make sure it's also installed and in your $PATH

Installation

Usage

Launch fzf subscription picker with:

$ azurectx pick
...
# Or just run with no options
$ azurectx
...

List all subscriptions with:

$ azurectx list
Test Subscription 1
Test Subscription 2

List current subscription with:

$ azurectx current
Test Subscription 2

Set a specific subscription non-interactively with:

$ azurectx set "Test Subscription 1"
Switched to 'TestSubscription 1'