{"id":14065367,"url":"https://github.com/abij/az-account-switcher","last_synced_at":"2026-01-18T10:23:29.435Z","repository":{"id":43660588,"uuid":"251317246","full_name":"abij/az-account-switcher","owner":"abij","description":"CLI to view and switch Azure subscriptions","archived":false,"fork":false,"pushed_at":"2025-06-05T19:30:50.000Z","size":1738,"stargazers_count":35,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-02T16:56:01.054Z","etag":null,"topics":["azure-cli","subscription-manager","utilities"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abij.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-03-30T13:43:00.000Z","updated_at":"2025-10-06T09:30:57.000Z","dependencies_parsed_at":"2024-01-12T20:56:33.349Z","dependency_job_id":"5273214b-59b8-4c46-8678-b7aff257babc","html_url":"https://github.com/abij/az-account-switcher","commit_stats":{"total_commits":32,"total_committers":6,"mean_commits":5.333333333333333,"dds":0.21875,"last_synced_commit":"e21cc58ced6706c15a3b45b0aff5d1f62f3afb7c"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/abij/az-account-switcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abij%2Faz-account-switcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abij%2Faz-account-switcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abij%2Faz-account-switcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abij%2Faz-account-switcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abij","download_url":"https://codeload.github.com/abij/az-account-switcher/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abij%2Faz-account-switcher/sbom","scorecard":{"id":161090,"data":{"date":"2025-08-11","repo":{"name":"github.com/abij/az-account-switcher","commit":"c0bc1009d2012303abd2cd23c4ea3aceb031bf99"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.9,"checks":[{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":4,"reason":"5 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pythonpublish.yml:1","Warn: no topLevel permission defined: .github/workflows/test.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Pinned-Dependencies","score":2,"reason":"dependency not pinned by hash detected -- score normalized to 2","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/pythonpublish.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pythonpublish.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/pythonpublish.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/test.yml:52: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/test.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/abij/az-account-switcher/test.yml/master?enable=pin","Info:   0 out of   5 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   1 out of   1 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-16T13:27:06.148Z","repository_id":43660588,"created_at":"2025-08-16T13:27:06.148Z","updated_at":"2025-08-16T13:27:06.148Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure-cli","subscription-manager","utilities"],"created_at":"2024-08-13T07:04:27.249Z","updated_at":"2026-01-18T10:23:29.392Z","avatar_url":"https://github.com/abij.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"## Switch Azure subscriptions\n\n\u003e [!WARNING]\n\u003e The new version of the Azure-CLI, since 2.61.0, has build-in support for switching subscriptions, so this package is no longer needed. You can use the command `az login` to switch subscriptions directly. See: https://learn.microsoft.com/en-us/cli/azure/authenticate-azure-cli-interactively?view=azure-cli-latest#subscription-selector.\n\n[![License](https://img.shields.io/pypi/l/az-account-switcher.svg)](\n\n| Type| Badge|\n|---|---|\n| Workflow | [![Test](https://github.com/abij/az-account-switcher/actions/workflows/test.yml/badge.svg)](https://github.com/abij/az-account-switcher/actions/workflows/test.yml) ![!Workflow upload](https://github.com/abij/az-account-switcher/workflows/Upload%20Python%20Package/badge.svg)|\n|Latest|![!PyPI](https://img.shields.io/pypi/v/az-account-switcher.svg)|\n|Activity|![!PyPI](https://img.shields.io/pypi/dm/az-account-switcher)|\n| DeepSource | [![DeepSource](https://deepsource.io/gh/abij/az-account-switcher.svg/?label=active+issues\u0026show_trend=true)](https://deepsource.io/gh/abij/az-account-switcher/?ref=repository-badge) |\n\nProblem: Switching subscriptions using the [Azure CLI](https://docs.microsoft.com/cli/azure/manage-azure-subscriptions-azure-cli) involves too much typing.\n\n```bash\n# Type a lot...\naz account list --output table\n\n# Use mouse to select the subscription-id in the console\n# Use ctrl-c to copy the text, this might be optional\n\n# Type a lot...\naz account set --subscription-id \u003cpaste subscription-id\u003e\n```\n\nSolution: 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.\n\n### Install\n\n`pip install az-account-switcher`\n\n### Usage\n\n```bash\nUsage: az-switch [OPTIONS]\n\n  Show all Azure Subscriptions in current profile using the `az` command-\n  line utility. Ask user input for switching to another subscription.\n\nOptions:\n  -n INTEGER     Switch to this subscription number directly.\n  -v, --verbose  Verbose: echo the azure-cli commands.\n  -h, --help     Show this message and exit.\n```\n\n### Example\n\n![example_gif](https://raw.githubusercontent.com/abij/az-account-switcher/master/az-switch-example.gif)\n\n## CHANGELOG\n\n### v1.5.0 (05-05-2025):\n\n- Display tenant name in the subscription list.\n- Show warning when AzureCLI 2.61.0 or newer is detected, no need for this package anymore.\n- Drop support for Python 3.8 and 3.9 since Click 8.2.0 requires Python 3.10+.\n\n### v1.4.0 (28-12-2023):\n\n- Removed `az.cli` with `azure-cli` dependencies in favor subprocess call to have a small installation. Assuming `az` in on your PATH.\n- Drop Python 3.7 support, due to minimal version supported by (dev) dependency `commitizen`.\n- Switch to [poetry](https://python-poetry.org/) for dependency management.\n\n### v1.3.0 (25-02-2022):\n\n- Fixed: [issue-8](https://github.com/abij/az-account-switcher/issues/8) **NotImplementedError** by removing deprecated `get_azure_cli_credentials` in [PR-6](https://github.com/abij/az-account-switcher/pull/6).\n- **Speed-up switching** by removing the online interaction pulling the Subscriptions through the Azure-CLI. [PR-7](https://github.com/abij/az-account-switcher/pull/7)\n- Add `--verbose` flag as an alias to the `-v` flag.\n\n### v1.2.0 (31-05-2021):\n\n- Support Windows by changing interaction with Azure-CLI using Python package 'az.cli' instead of POpen\n- Drop Python 3.6 support, due to dependent package 'az.cli'\n- Unit tests running on latest versions of Unix, Windows and MacOs\n- Depend on `azure-cli` instead of `azure-cli-core` to auto include `packaging`to fix [issue-3](https://github.com/abij/az-account-switcher/issues/3)\n\n### v1.1.0 (04-05-2021):\n\n- Don't switch when same subscription is selected.\n- Add `-v` verbose flag to print Azure-CLI sub-commands.\n- Add `-h` as alias for `--help`\n\nThanks to @tqorange for contributing.\n\n### v1.0.0 (08-04-2021):\n\n- Include Python 3.6, not only greater than.\n- Add DeepSource code checker and resolve found issue (related to shell=true)\n- Add aliases for command-line next to az-switch: + az-account-switch + az-account-switcher _(the package name)_\n- Dump to v1.0.0, since it's working fine for a while and looks better!\n\n### v0.0.6 (25-03-2021):\n\nAdd support for disabled subscriptions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabij%2Faz-account-switcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabij%2Faz-account-switcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabij%2Faz-account-switcher/lists"}