# az

> For the complete documentation index, see [llms.txt](https://docs-stg.ringleader.dev/llms.txt).


> The Azure CLI, from Microsoft's official apt repository.


Installs the Azure CLI (`az`).

```yaml
devtools:
  - name: az
```

The `version` field is not used by this recipe.

<div class="callout callout-warning">
  <p class="callout-title">Debian and Ubuntu only</p>
  <div class="callout-body">
    On Alpine this devtool fails with an explicit message.
  </div>
</div>


## Updates

The Azure CLI comes from Microsoft's package repository, so it moves with the
[operating system updates](https://docs-stg.ringleader.dev/reference/tools/devtools/#operating-system-updates) the workstation applies.

## Purpose

Declares Microsoft's `azure-cli` apt repository and its signing key, then installs the
`azure-cli` package through the normal repository and package phases.

Microsoft's repository lags new Debian releases. When your workstation runs a Debian
release Microsoft does not publish for, Ringleader points the repository at the most
recent supported one, whose package runs on the newer release. Without that, the
repository would return 404 and break `apt-get update` for the whole workstation. Ubuntu
releases are served directly.

## Example

Install the CLI and relay its device-code login page to your computer's browser:
```yaml
devtools:
  - name: az
  - name: passthrough-www-browser   # relays the device-code login URL to your browser
defaultLocalBinding:
  enabled: true
  urlForward:
    enabled: true
```

## Notes

- Logging in to `az` is something you do inside the workstation; Ringleader does not
  inject cloud credentials into a workstation.

