Azctl is a simple tool designed to streamline the management of Azure subscriptions, allowing users to switch between subscriptions easily and quickly.
- Display a list of Azure subscriptions.
- Select a specific subscription to set it as the active subscription.
This project uses the following Go packages:
- cobra: A commander for modern Go CLI interactions.
-
Clone the repository:
git clone https://github.com/pandudw/azctl.git
-
Change into the project directory:
cd azctl
-
Build binary file azctl and move to /usr/local/bin/:
go build -o azctl main.go sudo mv azctl /usr/local/bin/ export PATH=$PATH:/usr/local/bin source ~/.bashrc
-
Display the list of Azure subscriptions:
azctl list
-
Select a specific subscription:
azctl select [subs_id]
Feel free to contribute to azctl by opening issues or submitting pull requests. Your contributions are highly appreciated!