Skip to content

drewstinnett/azurectx-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'