{"id":44750152,"url":"https://github.com/buildkite-plugins/azure-login-buildkite-plugin","last_synced_at":"2026-02-15T22:35:22.152Z","repository":{"id":334120094,"uuid":"1119279758","full_name":"buildkite-plugins/azure-login-buildkite-plugin","owner":"buildkite-plugins","description":"🔓 Login to Azure","archived":false,"fork":false,"pushed_at":"2026-01-22T22:14:16.000Z","size":20,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-23T15:34:29.652Z","etag":null,"topics":["azure","buildkite","buildkite-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","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/buildkite-plugins.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2025-12-19T03:11:50.000Z","updated_at":"2026-01-22T22:11:25.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/buildkite-plugins/azure-login-buildkite-plugin","commit_stats":null,"previous_names":["buildkite-plugins/azure-login-buildkite-plugin"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/buildkite-plugins/azure-login-buildkite-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite-plugins%2Fazure-login-buildkite-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite-plugins%2Fazure-login-buildkite-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite-plugins%2Fazure-login-buildkite-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite-plugins%2Fazure-login-buildkite-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/buildkite-plugins","download_url":"https://codeload.github.com/buildkite-plugins/azure-login-buildkite-plugin/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/buildkite-plugins%2Fazure-login-buildkite-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29491013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T19:29:10.908Z","status":"ssl_error","status_checked_at":"2026-02-15T19:29:10.419Z","response_time":118,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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","buildkite","buildkite-plugin"],"created_at":"2026-02-15T22:35:21.867Z","updated_at":"2026-02-15T22:35:22.143Z","avatar_url":"https://github.com/buildkite-plugins.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Login Buildkite Plugin\n\nA Buildkite plugin that authenticates to Azure using managed identity or service principal credentials.\n\n## Authentication Methods\n\nThis plugin supports two authentication methods:\n\n1. **Managed Identity** - Uses Azure managed identity (`az login --identity`). Ideal for agents running on Azure VMs or Azure Container Instances with assigned managed identities.\n\n2. **Service Principal** - Uses Azure service principal credentials (`az login --service-principal`). Suitable for any environment where you have service principal credentials available.\n\n## Options\n\n### `hook` (optional, string)\n\nWhich Buildkite hook to run the Azure login in. Valid values are `environment` and `pre-command`.\n\nDefault: `environment`\n\n### `use-identity` (optional, boolean)\n\nWhen set to `true`, authenticates using managed identity (`az login --identity`).\n\nDefault: `false`\n\n### `client-id` (optional, string)\n\nThe Application (client) ID for service principal authentication. When using managed identity with multiple identities assigned, this can be used to specify which identity to use.\n\n### `client-secret` (optional, string)\n\nThe client secret for service principal authentication. This can be either:\n- A direct secret value\n- An environment variable name containing the secret (the plugin will resolve it)\n\nRequired when using service principal authentication.\n\n### `tenant-id` (optional, string)\n\nThe Azure tenant ID. Required when using service principal authentication.\n\n## Examples\n\n### Managed Identity\n\nAuthenticate using the Azure managed identity assigned to the VM or container:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    plugins:\n      - azure-login#v1.0.1:\n          use-identity: true\n```\n\n### Managed Identity with Specific Client ID\n\nWhen multiple managed identities are assigned, specify which one to use:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    plugins:\n      - azure-login#v1.0.1:\n          use-identity: true\n          client-id: \"00000000-0000-0000-0000-000000000000\"\n```\n\n### Service Principal\n\nAuthenticate using service principal credentials:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    plugins:\n      - azure-login#v1.0.1:\n          client-id: \"00000000-0000-0000-0000-000000000000\"\n          client-secret: \"your-client-secret\"\n          tenant-id: \"00000000-0000-0000-0000-000000000000\"\n```\n\n### Service Principal with Environment Variable Secret\n\nUse an environment variable to provide the client secret:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    env:\n      AZURE_CLIENT_SECRET: \"your-client-secret\"\n    plugins:\n      - azure-login#v1.0.1:\n          client-id: \"00000000-0000-0000-0000-000000000000\"\n          client-secret: \"AZURE_CLIENT_SECRET\"\n          tenant-id: \"00000000-0000-0000-0000-000000000000\"\n```\n\n### Using pre-command Hook\n\nRun the Azure login in the pre-command hook instead of the environment hook:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    plugins:\n      - azure-login#v1.0.1:\n          hook: pre-command\n          use-identity: true\n```\n\n### Debug Mode\n\nEnable verbose logging for troubleshooting:\n\n```yaml\nsteps:\n  - label: \":azure: Deploy to Azure\"\n    command: \"az account show\"\n    env:\n      BUILDKITE_PLUGIN_DEBUG: \"true\"\n    plugins:\n      - azure-login#v1.0.1:\n          use-identity: true\n```\n\n## Compatibility\n\n| Elastic Stack | Agent Stack K8s | Hosted (Mac) | Hosted (Linux) | Notes |\n| :-----------: | :-------------: | :----------: | :------------: | :---- |\n|       ⚠️       |        ⚠️        |      ⚠️       |       ⚠️        | Requires Azure CLI (`az`) to be installed and available to the agent |\n\n## Developing\n\nRun all tests:\n\n```bash\ndocker run -it --rm -v \"$PWD:/plugin:ro\" buildkite/plugin-tester\n```\n\nValidate plugin structure:\n\n```bash\ndocker run -it --rm -v \"$PWD:/plugin:ro\" buildkite/plugin-linter --id azure-login --path /plugin\n```\n\nRun shellcheck:\n\n```bash\nshellcheck hooks/* lib/*\n```\n\n## License\n\nMIT License. See [LICENSE](LICENSE) for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite-plugins%2Fazure-login-buildkite-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbuildkite-plugins%2Fazure-login-buildkite-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbuildkite-plugins%2Fazure-login-buildkite-plugin/lists"}