{"id":15291860,"url":"https://github.com/janik6n/azlogin","last_synced_at":"2026-01-20T05:02:15.773Z","repository":{"id":254711563,"uuid":"847324405","full_name":"janik6n/azlogin","owner":"janik6n","description":"Azure CLI login helper for multi-tenant users","archived":false,"fork":false,"pushed_at":"2025-09-18T18:13:46.000Z","size":38,"stargazers_count":2,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-18T21:08:58.756Z","etag":null,"topics":["azure","cli","golang","helpers"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/janik6n.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-25T13:59:33.000Z","updated_at":"2025-09-18T18:07:54.000Z","dependencies_parsed_at":"2025-04-03T18:39:59.343Z","dependency_job_id":null,"html_url":"https://github.com/janik6n/azlogin","commit_stats":null,"previous_names":["janik6n/azlogin"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/janik6n/azlogin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janik6n%2Fazlogin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janik6n%2Fazlogin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janik6n%2Fazlogin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janik6n%2Fazlogin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/janik6n","download_url":"https://codeload.github.com/janik6n/azlogin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/janik6n%2Fazlogin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28596087,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: 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","golang","helpers"],"created_at":"2024-09-30T16:14:51.086Z","updated_at":"2026-01-20T05:02:15.757Z","avatar_url":"https://github.com/janik6n.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Go](https://shields.io/badge/Go-00ADD8?logo=Go\u0026logoColor=FFF\u0026style=flat-square)\n![Azure](https://shields.io/badge/Azure-0078D4?logo=Azure\u0026logoColor=FFF\u0026style=flat-square)\n\n# Azlogin\n\nAzure CLI login helper. You have multiple tenants to login to, but cannot remember the tenant IDs? Azlogin to the rescue!\n\nFunctionally \u0026 securitywise there is nothing too special; This is just a wrapper for Azure CLI. All the information stored about your tenants is defined [below](#configuration), and all the information is provided by you.\n\nRunning the app with the selected tenant will trigger `az login` flow for the selected tenant, and that's it.\n\nIf you have configured `select_subscription: true`, a Subscription selection will be run after successful login.\n\n\n## Prerequisites\n\n[Azure CLI](https://learn.microsoft.com/en-us/cli/azure/) v2 is expected to be installed and configured.\n\n\n## Configuration\n\nConfiguration is handled in `configuration.yaml`\n\n```yaml\ngeneral:\n  environment: DEV|PROD\n  logging: true|false\n  logging_level: INFO|WARNING|ERROR|FATAL\n  print_config: true|false\nfeatures:\n  azlogin:\n    tenants:\n      - tenant_name: \"Alpha\"\n        tenant_id: \"alpha.onmicrosoft.com\"\n      - tenant_name: \"Bravo\"\n        tenant_id: \"23456-23456\"\n    select_subscription: true|false\n```\nConfiguration file location:\n- If the `environment` is `DEV`: `./configuration.yaml`. You also need to set environment variable `ENVIRONMENT=DEV`.\n- If the `environment` is `PROD`: `$HOME/azlogin/configuration.yaml` in macOS/Linux and `%USERPROFILE%\\azlogin\\configuration.yaml` in Windows.\n\n## Logging\n\nThe app optionally logs to a file `./azlogin.log` for `DEV` and to `$HOME/azlogin/azlogin.log` in macOS/Linux or `%USERPROFILE%\\azlogin/azlogin.log` in Windows for `PROD`.\n\n\n## Run binary release\n\nWith the binary releases all you need is the configuration file described [above](#configuration) and a binary for your platform.\n\n⚠️ The binaries in each release are built with [GoReleaser](https://goreleaser.com/ci/actions/) and GitHub Actions. They are *not signed or notarized*, so warnings may arise when you run the app. Run at your own risk.\n\n\n## How to run in dev\n\nBefore installing:\n\n```bash\nENVIRONMENT=DEV go run cmd/azlogin/main.go\n```\n\n### Build and install\n\nBuild, and installation, must be done where the `main` package is located.\n\n```bash\n# To build\ncd cmd/azlogin\n# For architecture where developed:\ngo build -o \"../../build/azlogin\"\n# For macOS ARM64\nGOARCH=arm64 GOOS=darwin go build -o \"../../build/azlogin\"\n# For Windows AMD64\nGOARCH=amd64 GOOS=windows go build -o \"../../build/azlogin.exe\"\n```\nThere is a little helper script available for installation on macOS \u0026 ZSH. To install, run in project root:\n```bash\n# Runs the build too.\n./install_azlogin.sh\n```\nThe binary will be installed to location defined in `.zshrc`:\n```bash\nexport PATH=\"$HOME/go/bin:$PATH\"\n```\n\n## Automation\n\nNew GitHub Release is created with [GoReleaser](https://goreleaser.com/ci/actions/) and GitHub Actions when a new tag is pushed to the repository.\n\n\n## References\n\n- [Azure CLI](https://learn.microsoft.com/en-us/cli/azure/)\n- [Package index for Azure SDK libraries for Go | Microsoft Learn](https://learn.microsoft.com/en-us/azure/developer/go/azure-sdk-library-package-index)\n\n\n### Packages used\n\n- https://github.com/Azure/azure-sdk-for-go (License: MIT)\n- https://github.com/charmbracelet/huh for terminal UI (License: MIT)\n- https://github.com/charmbracelet/huh/spinner for terminal UI (License: MIT)\n- https://github.com/charmbracelet/lipgloss for terminal UI (License: MIT)\n- https://github.com/go-yaml/yaml for reading and writing YAML files (License: MIT \u0026 Apache 2.0)\n- https://github.com/natefinch/lumberjack for logging (License: MIT)\n\n\n## Changelog\n\n[CHANGELOG](CHANGELOG.md)\n\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanik6n%2Fazlogin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanik6n%2Fazlogin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanik6n%2Fazlogin/lists"}