Automic VaultAutomic Vault

brew

Install azure-cli with Homebrew, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Microsoft Azure CLI 2.0. Version 2.88.0 via Homebrew; verified 2026-07-07.

agent safety

Agent safety answer

azure-cli controls Azure accounts, resources, subscriptions, and deployments.

Credential access

Reads Azure account tokens, config files, cloud credentials, and environment variables.

Remote mutation

Can create, delete, and reconfigure Azure infrastructure.

Publish/artifact risk

Can deploy application artifacts and infrastructure templates.

Recommended control

Gate mutating az commands and credential export or login changes.

Agent-use guidance

Allow account/resource reads in safe subscriptions; require approval for writes and deletes.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install azure-cli

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install azure-cli

MacPorts ports tree · sysutils/azure-cli/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install azure-cli

Debian stable package indexes · azure-cli · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install azure-cli

Fedora Rawhide package metadata · azure-cli · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#azure-cli

nixpkgs package indexes · pkgs/by-name/az/azure-cli/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S azure-cli

Arch Linux sync databases · azure-cli · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install azure-cli

openSUSE Tumbleweed package metadata · azure-cli · source: download.opensuse.org

Windows

Chocolateyverified · 92%
choco install azure-cli

Chocolatey community package catalog · azure-cli · source: community.chocolatey.org

Scoopverified · 92%
scoop install main/azure-cli

Scoop official bucket manifest trees · bucket/azure-cli.json · source: api.github.com

Windows Package Managerverified · 92%
winget install --id Microsoft.AzureCLI -e

Windows Package Manager source index · Microsoft.AzureCLI · source: cdn.winget.microsoft.com

overview

Package summary

Microsoft Azure CLI 2.0

Commands and aliases

  • az

history

Project history and usage

Azure CLI is Microsoft's cross-platform `az` command-line client for managing Azure resources. It is one of the canonical cloud-provider CLIs in package-manager indexes because it turns Azure administration, provisioning, identity, and resource inspection into scriptable shell commands.

Project history

The Azure CLI 2.x line was developed in the open at Azure/azure-cli as a next-generation, multi-platform Azure command-line experience. The repository's earliest GitHub Releases include the 0.1 beta series in 2016, followed by the 2.x release train that became the standard `az` CLI used from local terminals, CI jobs, containers, and Azure Cloud Shell.

The CLI is implemented as a Python package with command modules for Azure service areas. Microsoft Learn positions it as the primary Azure command-line surface, with configuration under the Azure CLI config directory and first-class documentation for authentication, output formatting, querying, and automation patterns.

Adoption history

Azure CLI became package-manager furniture because Azure users need the same `az` command on macOS, Linux, Windows, containers, and hosted CI. The input package facts list broad distribution across Homebrew, Chocolatey, Debian, Fedora/DNF, MacPorts, Nix, Arch/pacman, Scoop, winget, and zypper, which matches its role as a cloud bootstrap tool rather than an optional developer convenience.

Its presence in Azure Cloud Shell further normalized `az` as the default examples language for many Azure docs and snippets. Package users care that Homebrew and Linux packages track a large upstream release train and that shell completion, JSON/table/TSV output, and JMESPath querying make it pleasant in scripts.

How it is used

Typical usage is `az group create`, `az vm create`, `az storage ...`, `az account get-access-token`, or `az rest`, usually combined with `--query` and `--output` for shell pipelines. The official docs emphasize using `az configure`, environment variables, and the INI-style config file to tune defaults.

Credentials and tokens are stored under the Azure CLI config directory; current source code uses `msal_token_cache` and `service_principal_entries` there. Package maintainers and automation users should treat the directory as sensitive state, especially on shared runners.

Why package nerds care

For package nerds, `azure-cli` is a classic heavyweight cloud CLI: fast-moving, Python-based, dependency-rich, and distributed everywhere. It stress-tests package managers on update cadence, Python dependency isolation, shell completion, telemetry defaults, and whether the packaged binary behaves the same as Microsoft's install scripts.

It also demonstrates the difference between a formula that installs a CLI and the hidden state that CLI writes under the user's home directory. Upgrades are routine, but auth caches and config files often outlive package removals.

Timeline

  • 2016: Azure/azure-cli GitHub Releases include the 0.1 beta series.
  • 2017: Azure CLI 2.x becomes the public `az` generation for Azure automation.
  • 2020s: Azure CLI is broadly packaged across Homebrew, Linux distributions, Windows package managers, and Azure Cloud Shell.

Related projects

  • Azure PowerShell is Microsoft's PowerShell-native Azure automation surface.
  • Azure Developer CLI (`azd`) builds on Azure CLI-era workflows with project templates and app deployment conventions.
  • Azure Cloud Shell provides a hosted shell environment where Azure CLI is preinstalled.

Sources

  • Azure/azure-cli README and GitHub Releases
  • Microsoft Learn Azure CLI overview, authentication, and configuration docs
  • source_facts.package-manager

security posture

Risk level: orange

cloud infrastructure mutation tool.

Risk classifier

orange risk · high confidence · infrastructure

Why

  • cloud infrastructure mutation tool

Signals

  • override:azure-cli

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 4 runtime dependencies.
  • Build metadata lists 2 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.azure/config
Windows
%USERPROFILE%\.azure\config

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.azure/msal_token_cache.json~/.azure/service_principal_entries.json~/.azure/accessTokens.json

executables

Installed executables

CommandKindExposureNote
azcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.88.0
manager updated2026-07-07
local dataok
upstreamcurrent
latest detectedazure-cli-2.88.0

https://github.com/Azure/azure-cli

  • okNo freshness warnings were generated.

install metadata

Package metadata

Package keybrew:azure-cli
Version2.88.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/azure-cli
Homepagehttps://docs.microsoft.com/cli/azure/overview
Repositoryhttps://github.com/Azure/azure-cli
Upstream docshttps://learn.microsoft.com/en-us/cli/azure
LicenseMIT
Source archivehttps://github.com/Azure/azure-cli/archive/refs/tags/azure-cli-2.88.0.tar.gz
Last updated2026-07-07T09:03:39Z
Pulseupdated
Dependencieslibsodium, libyaml, openssl@3, python@3.14
Build dependenciespkgconf, rust
Uses from macOSlibffi
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameazure-cli
Aliases
  • az
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

azure-cli 2.74.0-1

Azure Command-Line Interface (CLI)

https://github.com/Azure/azure-cli

sudo apt install azure-cli
  • Section: python
  • Architecture: all
  • 2 dependencies
  • normalized package name match
  • Matched by: Azure Cli
Debian stable package indexes · deb.debian.org · Debian stable package indexes: azure-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-azure-cli 2.74.0-1

Azure Command-Line Interface (CLI) - commands modules

https://github.com/Azure/azure-cli

sudo apt install python3-azure-cli
  • Section: python
  • Architecture: all
  • Source Package: azure-cli
  • 25 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Azure Cli
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-azure-cli from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-azure-cli-core 2.74.0-1

Azure Command-Line Interface (CLI) - core modules

https://github.com/Azure/azure-cli

sudo apt install python3-azure-cli-core
  • Section: python
  • Architecture: all
  • Source Package: azure-cli
  • 19 dependencies
  • normalized package name match
  • Matched by: Azure Cli
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-azure-cli-core from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-azure-cli-telemetry 2.74.0-1

Azure Command-Line Interface (CLI) - telemetry modules

https://github.com/Azure/azure-cli

sudo apt install python3-azure-cli-telemetry
  • Section: python
  • Architecture: all
  • Source Package: azure-cli
  • 3 dependencies
  • normalized package name match
  • Matched by: Azure Cli
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-azure-cli-telemetry from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

python3-azure-cli-testsdk 2.74.0-1

Azure Command-Line Interface (CLI) - testsdk modules

https://github.com/Azure/azure-cli

sudo apt install python3-azure-cli-testsdk
  • Section: python
  • Architecture: all
  • Source Package: azure-cli
  • 5 dependencies
  • normalized package name match
  • Matched by: Azure Cli
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-azure-cli-testsdk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

azure-cli

nix profile install nixpkgs#azure-cli
  • normalized package name match
  • Matched by: Azure Cli
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/az/azure-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
dnf95%

azure-cli 2.85.0-2.fc45

Microsoft Azure Command-Line Tools

https://github.com/Azure/azure-cli

sudo dnf install azure-cli
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: azure-cli
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Azure Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: azure-cli from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

python3-azure-cli-core 2.85.0-2.fc45

Microsoft Azure Command-Line Tools Core Module

https://github.com/Azure/azure-cli

sudo dnf install python3-azure-cli-core
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: azure-cli
  • 3 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Azure Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-azure-cli-core from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

python3-azure-cli-telemetry 2.85.0-2.fc45

Microsoft Azure CLI Telemetry Package

https://github.com/Azure/azure-cli

sudo dnf install python3-azure-cli-telemetry
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: azure-cli
  • 2 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Azure Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-azure-cli-telemetry from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

python3-azure-cli-testsdk 2.85.0-2.fc45

Microsoft Azure CLI SDK testing tools

https://github.com/Azure/azure-cli

sudo dnf install python3-azure-cli-testsdk
  • License: MIT
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: azure-cli
  • 3 dependencies
  • 5 provides
  • normalized package name match
  • Matched by: Azure Cli
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: python3-azure-cli-testsdk from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

azure-cli 2.86.0-1

Command-line tools for Microsoft Azure

https://github.com/Azure/azure-cli

sudo pacman -S azure-cli
  • License: MIT
  • Architecture: any
  • 4 dependencies
  • normalized package name match
  • Matched by: Azure Cli
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: azure-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

azure-cli 2.87.0-1.1

Microsoft Azure CLI 2.0

https://github.com/Azure/azure-cli

sudo zypper install azure-cli
  • License: MIT
  • Category: System/Management
  • Architecture: noarch
  • Source Package: azure-cli
  • 32 dependencies
  • 32 provides
  • normalized package name match
  • Matched by: Azure Cli
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: azure-cli from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

azure-cli

sudo port install azure-cli
  • normalized package name match
  • Matched by: Azure Cli
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/azure-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Chocolatey95%

azure-cli

choco install azure-cli
  • normalized package name match
  • Matched by: Azure Cli
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: azure-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','autodesk-fusion360'
Scoop95%

main/azure-cli

scoop install main/azure-cli
  • normalized package name match
  • Matched by: Azure Cli
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/azure-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
winget95%

Microsoft.AzureCLI

winget install --id Microsoft.AzureCLI -e
  • normalized package name match
  • Matched by: Azure Cli
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Microsoft.AzureCLI from https://cdn.winget.microsoft.com/cache/source.msix

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment