Azure Subscription Switcher
Problem: Switching between azure subscriptions via Azure CLI involves multiple commands.
What is azure-subscription-switcher?
azsub is a CLI tool to interactively select Azure subscriptions using fzf fuzzy search. Inspired by az-account-switcher and kubectx
📦 Installation
pip install azure-subscription-switcher
# Or using Poetry
poetry add azure-subscription-switcher
🚀 Usage
azsub
-OR-
azsub -s <subscription_id>
🗒️ Example
🛠 Requirements
- Azure CLI (
az) must be installed and logged in. fzf(fuzzy finder) is required:- Mac:
brew install fzf - Linux:
sudo apt install fzf - Windows: Install via Git Bash or Chocolatey (
choco install fzf).
- Mac:
🧰 Features
✅ Fetches available Azure subscriptions
✅ Interactive fuzzy search for selection
✅ Automatically switches to the selected subscription
✅ Switches to the subscription passed with -s,--subscription
🛠 Development & Contribution
- Clone the repository:
git clone https://github.com/LahiruSenevirathne/azure-subscription-switcher.git cd azure-subscription-switcher
- Install dependencies using Poetry:
poetry install - Run the CLI locally:
poetry run azsub
🤝 Contributing
Pull requests are welcome! If you'd like to make improvements, please fork the repository and open a PR
📄 License
This project is licensed under the MIT License. See the LICENSE file for details.
Metadata
Release files for azure-subscription-switcher 0.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| azure_subscription_switcher-0.3.2.tar.gz | 3.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| azure_subscription_switcher-0.3.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.3 kB
Release files / azure_subscription_switcher-0.3.2.tar.gz
| Download URL | azure_subscription_switcher-0.3.2.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
be8662370c0cbc05982e3cf437f34ce0d055d28987da529effcfafa2e5fc30ac
|
|
BLAKE2b-256 checksum How to use checksums |
eee6a93994068cee2e66eed9040ba3433612d9fbd80daa46fe06ca797df6eb2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Release files / azure_subscription_switcher-0.3.2-py3-none-any.whl
| Download URL | azure_subscription_switcher-0.3.2-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d7ee20249be078d5befc8d8e95a4a1c5d9b27d65b091f0ead92ca98a0b314922
|
|
BLAKE2b-256 checksum How to use checksums |
091e3b99a6ed9ce208d33c9a1235182208dd9b58d777bedb94def974becab29c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure
|
Security for azure-subscription-switcher 0.3.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.