{"id":25410029,"url":"https://github.com/xeroxinteractive/azure-cli-orb","last_synced_at":"2026-01-23T02:19:34.688Z","repository":{"id":213293973,"uuid":"733095859","full_name":"xeroxinteractive/azure-cli-orb","owner":"xeroxinteractive","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-19T13:41:24.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-09-29T13:58:40.925Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/xeroxinteractive.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":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-18T14:54:51.000Z","updated_at":"2023-12-18T16:55:50.000Z","dependencies_parsed_at":"2023-12-19T16:20:22.228Z","dependency_job_id":"b1d4bca0-4a08-47b3-8255-63469047d1c1","html_url":"https://github.com/xeroxinteractive/azure-cli-orb","commit_stats":null,"previous_names":["xeroxinteractive/azure-cli-orb"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/xeroxinteractive/azure-cli-orb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeroxinteractive%2Fazure-cli-orb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeroxinteractive%2Fazure-cli-orb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeroxinteractive%2Fazure-cli-orb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeroxinteractive%2Fazure-cli-orb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xeroxinteractive","download_url":"https://codeload.github.com/xeroxinteractive/azure-cli-orb/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xeroxinteractive%2Fazure-cli-orb/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28678002,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T01:00:35.747Z","status":"online","status_checked_at":"2026-01-23T02:00:08.296Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-02-16T09:29:53.649Z","updated_at":"2026-01-23T02:19:34.674Z","avatar_url":"https://github.com/xeroxinteractive.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure CLI Orb  [![CircleCI status](https://circleci.com/gh/CircleCI-Public/azure-cli-orb.svg \"CircleCI status\")](https://circleci.com/gh/CircleCI-Public/azure-cli-orb) [![CircleCI Orb Version](https://badges.circleci.com/orbs/circleci/azure-cli.svg)](https://circleci.com/orbs/registry/orb/circleci/azure-cli) [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/CircleCI-Public/azure-cli-orb/master/LICENSE) [![CircleCI Community](https://img.shields.io/badge/community-CircleCI%20Discuss-343434.svg)](https://discuss.circleci.com/c/ecosystem/orbs)\n\nA CircleCI Orb to install and log into the Azure CLI\n\n## Features\nThis orb offers the ability to login via an Azure user both on its default tenant and an alternative tenant.\nIt also offers the ability to login via an Azure Service Principal.\n\n### Executors\n\n#### `default`\nDebian-based [`circleci/python` Docker image](https://hub.docker.com/r/circleci/python) to use\n\n##### Parameters\n\n| Parameter | type | default |\n|-----------|------|---------|\n| `python-version` | `string` | `2.7` |\n| `debian-release` | `string` | `stretch` |\n\n#### `azure-docker`\nMicrosoft's [Azure CLI Docker image](https://hub.docker.com/r/microsoft/azure-cli):\n\n```yaml\ndocker:\n  - image: mcr.microsoft.com/azure-cli\n```\n\n### Commands\nYou may use the following commands provided by this orb directly from your own job.\n\n- [**install**](#install) - Installs the Azure CLI on Debian based systems\n\n- [**login-with-user**](#login-with-user) - Allows you to login to the Azure CLI with an Azure user.\n\n- [**login-with-service-principal**](#login-with-service-principal) - Allows you to login to the Azure CLI with a Service Principal\n\n- [**login-with-user-or-service-principal**](#login-with-user-or-service-principal) - Allows you to login to the Azure CLI, where the login type (user/Service Principal) is determined based on detection of the relevant environment variables.\n\n#### `install`\n\n##### Example\n\n```yaml\nversion: 2.1\n\norbs:\n  azure-cli: circleci/azure-cli@1.0.0\n\njobs:\n  verify-install:\n    executor: azure-cli/default\n    steps:\n      - azure-cli/install\n\n      - run:\n          name: Verify Azure CLI is installed\n          command: az -v\n\nworkflows:\n  example-workflow:\n    jobs:\n      - verify-install\n```\n\n#### `login-with-user`\n\n##### Parameters\n\n| Parameter | type | default | description |\n|-----------|------|---------|-------------|\n| `azure-username` | `env_var_name` | `AZURE_USERNAME` | Environment variable storing your Azure username |\n| `azure-password` | `env_var_name` | `AZURE_PASSWORD` | Environment variable storing your Azure password |\n| `alternate-tenant` | `boolean` | `false` | Set to True to use the `--tenant az` login option |\n| `azure-tenant` | `env_var_name` | `AZURE_TENANT` | Environment variable storing your Azure tenant, necessary if `alternate-tenant` is set to true |\n\n##### Example\n\n```yaml\nversion: 2.1\n\norbs:\n  azure-cli: circleci/azure-cli@1.0.0\n\njobs:\n  login-to-azure:\n    executor: azure-cli/default\n    steps:\n      - azure-cli/install\n\n      - azure-cli/login-with-user:\n          alternate-tenant: true\n\n      - run:\n          name: List resources of tenant stored as `AZURE_TENANT` env var\n          command: az resource list\n\nworkflows:\n  example-workflow:\n    jobs:\n      - login-to-azure\n```\n\n#### `login-with-service-principal`\n\n##### Parameters\n\n| Parameter | type | default | description |\n|-----------|------|---------|-------------|\n| `azure-sp` | `env_var_name` | `AZURE_SP` | Name of environment variable storing the full name of the Service Principal, in the form `http://app-url` |\n| `azure-sp-password` | `env_var_name` | `AZURE_SP_PASSWORD` | Name of environment variable storing the password for the Service Principal |\n| `azure-sp-tenant` | `env_var_name` |  `AZURE_SP_TENANT` | Name of environment variable storing the tenant ID for the Service Principal |\n\n##### Example\n\n```yaml\nversion: 2.1\n\norbs:\n  azure-cli: circleci/azure-cli@1.0.0\n\njobs:\n  login-to-azure:\n    executor: azure-cli/azure-docker\n    steps:\n      - azure-cli/login-with-service-principal\n\n      - run:\n          name: List resources of tenant stored as `AZURE_SP_TENANT` env var\n          command: az resource list\n\nworkflows:\n  example-workflow:\n    jobs:\n      - login-to-azure\n```\n\n#### `login-with-user-or-service-principal`\n\n##### Parameters\n\n| Parameter | type | default | description |\n|-----------|------|---------|-------------|\n| `azure-username` | `env_var_name` | `AZURE_USERNAME` | Environment variable storing your Azure username. Only applicable for user logins. |\n| `azure-password` | `env_var_name` | `AZURE_PASSWORD` | Environment variable storing your Azure password. Only applicable for user logins. |\n| `alternate-tenant` | `boolean` | `false` | Set to True to use the `--tenant az` login option. Only applicable for user logins. |\n| `azure-tenant` | `env_var_name` | `AZURE_TENANT` | Environment variable storing your Azure tenant, necessary if `alternate-tenant` is set to true. Only applicable for user logins. |\n| `azure-sp` | `env_var_name` | `AZURE_SP` | Name of environment variable storing the full name of the Service Principal, in the form `http://app-url`. Only applicable for Service Principal logins. |\n| `azure-sp-password` | `env_var_name` | `AZURE_SP_PASSWORD` | Name of environment variable storing the password for the Service Principal. Only applicable for Service Principal logins. |\n| `azure-sp-tenant` | `env_var_name` |  `AZURE_SP_TENANT` | Name of environment variable storing the tenant ID for the Service Principal. Only applicable for Service Principal logins. |\n\n##### Example\n\n```yaml\ndescription: \u003e\n  Log into Azure with the login type determined based on\n  environment variable detection.\n\nusage:\n  version: 2.1\n\n  orbs:\n    azure-cli: circleci/azure-cli@1.0.0\n\n  jobs:\n    login-to-azure:\n      executor: azure-cli/azure-docker\n      steps:\n        - azure-cli/login-with-user-or-service-principal\n\n        - run:\n            name: List resources of tenant stored as `AZURE_SP_TENANT` env var\n            command: az resource list\n\n  workflows:\n    example-workflow:\n      jobs:\n        - login-to-azure\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeroxinteractive%2Fazure-cli-orb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxeroxinteractive%2Fazure-cli-orb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxeroxinteractive%2Fazure-cli-orb/lists"}