Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 azure-cli

查看 azure-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

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

凭据访问

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

远程变更

Can create, delete, and reconfigure Azure infrastructure.

发布/制品风险

Can deploy application artifacts and infrastructure templates.

推荐控制

Gate mutating az commands and credential export or login changes.

代理使用指南

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install azure-cli

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install azure-cli

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

Linux

Debian apt已验证 · 92%
sudo apt install azure-cli

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

Fedora dnf已验证 · 92%
sudo dnf install azure-cli

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

Nix已验证 · 92%
nix profile install nixpkgs#azure-cli

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

Arch Linux pacman已验证 · 92%
sudo pacman -S azure-cli

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

openSUSE zypper已验证 · 92%
sudo zypper install azure-cli

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

Windows

Chocolatey已验证 · 92%
choco install azure-cli

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

Scoop已验证 · 92%
scoop install main/azure-cli

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

Windows Package Manager已验证 · 92%
winget install --id Microsoft.AzureCLI -e

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

概览

软件包摘要

Microsoft Azure CLI 2.0

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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.

来源

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

安全态势

风险级别:orange

cloud infrastructure mutation tool.

风险分类器

orange 风险 · 高 置信度 · infrastructure

原因

  • cloud infrastructure mutation tool

信号

  • override:azure-cli

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 4 个运行时依赖。
  • 构建元数据列出 2 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
azcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本2.88.0
管理器更新时间2026-07-07
本地数据OK
上游当前
检测到的最新版本azure-cli-2.88.0

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

  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:azure-cli
版本2.88.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/azure-cli
主页https://docs.microsoft.com/cli/azure/overview
仓库https://github.com/Azure/azure-cli
上游文档https://learn.microsoft.com/en-us/cli/azure
许可证MIT
源码归档https://github.com/Azure/azure-cli/archive/refs/tags/azure-cli-2.88.0.tar.gz
最后更新2026-07-07T09:03:39Z
Pulseupdated
依赖libsodium, libyaml, openssl@3, python@3.14
构建依赖pkgconf, rust
macOS 提供的库libffi
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 5 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 32 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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