Skip to main content

No project description provided

Project description

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>

🛠 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).

🧰 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

  1. Clone the repository:
    git clone https://github.com/LahiruSenevirathne/azure-subscription-switcher.git
    cd azure-subscription-switcher
    
  2. Install dependencies using Poetry:
    poetry install
    
  3. 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.


Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

azure_subscription_switcher-0.3.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

azure_subscription_switcher-0.3.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file azure_subscription_switcher-0.3.0.tar.gz.

File metadata

  • Download URL: azure_subscription_switcher-0.3.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.13.2 Linux/6.8.0-1021-azure

File hashes

Hashes for azure_subscription_switcher-0.3.0.tar.gz
Algorithm Hash digest
SHA256 86b785442bf93017250e52bb2d5c7863861e17ced5ee2ea9ccab6f64af36ef3e
MD5 efc6ea17267b067e64c680502e008878
BLAKE2b-256 49c7fadb3279ce7612f4158e006c0cee9cd4a110838a83b2bf9702caa4920e69

See more details on using hashes here.

File details

Details for the file azure_subscription_switcher-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for azure_subscription_switcher-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c0c0733f343bf95fe8f0b1b3e16b9c607285b6edd80dc32293b68032832f854f
MD5 21137867589ec34c652072e5acae16eb
BLAKE2b-256 ff78dd489b5256c570056c4f8782857aea72410a1f8cdd5ba76a91eec29ee09b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page