Skip to main content

Utility to switch Azure subscriptions

Project description

Switch Azure subscriptions

Upload Python Package

Problem: Switching subscriptions using the Azure CLI involves too much typing.

# Type a lot...
az account list --output table

# Use mouse to select the subscription-id in the console
# Use ctrl-c to copy the text, this might be optional 

# Type a lot...
az account set --subscription-id <paste subscription-id>

Solution: I simplified this task with the command-line utility az-switch! The active subscription is bold and green and selected as default argument. Just select the subscription you want to activate.

Install

pip install az-account-switcher

Usage

Usage: az-switch [OPTIONS]

  Show all Azure Subscriptions in current profile using the `az` command-
  line utility. Ask user input for switching to another subscription.

Options:
  -n INTEGER          Switch to this subscription number directly.
  --help              Show this message and exit.

Example

example_gif

CHANGELOG

v0.0.6 (25-03-2021):

Add support for disabled subscriptions.

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

az-account-switcher-0.0.6.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

az_account_switcher-0.0.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file az-account-switcher-0.0.6.tar.gz.

File metadata

  • Download URL: az-account-switcher-0.0.6.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for az-account-switcher-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b0701dc7a9ae04f082232c2272c453b5916b3808efed8dc1e7c7ac08bfcd670e
MD5 59f6657bf4e6b1ebe4b3becfb3310884
BLAKE2b-256 cdc3fbcabff52a229a19b54a078929bc5b4d35931f418857d3f1fd241da4e229

See more details on using hashes here.

File details

Details for the file az_account_switcher-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: az_account_switcher-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for az_account_switcher-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 6592acbb0920c4ecf4f39252c8da49ed057dedb7df7ab0e1dfe93736571d654d
MD5 6fd0b4bc5aec84807e12330c5a4afd4b
BLAKE2b-256 75d3b0a658f11ffbcceef53aba5f5ffc703bbb5e27772dfc95fc88b9fb0f0a21

See more details on using hashes here.

Supported by

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