pkg.sopackage field notes

brew / 排名 178

使用 Homebrew 安装 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

provider-native install command

概览

软件包摘要

Microsoft Azure CLI 2.0

命令和别名

  • az

历史

项目历史与用法

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

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

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

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
az可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

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

页面生成时间2026-08-03
管理器版本2.88.0
管理器更新时间2026-07-07
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键brew:azure-cli
版本2.88.0
软件包管理器Homebrew
主页https://docs.microsoft.com/cli/azure/overview
仓库https://github.com/Azure/azure-cli
最后更新2026-07-07T09:03:39Z
Pulseupdated
Bottle未记录
服务未声明

来源线索

由仓库数据生成

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

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • pkgdb category and tag curation