LinuxCommandLibrary

azure-cli

Manage Azure cloud resources from the command line.

TLDR

Install via pip

$ pip install azure-cli
copy
Update Azure CLI
$ pip install --upgrade azure-cli
copy
Verify installation
$ az --version
copy

SYNOPSIS

azure-cli package installation and management

DESCRIPTION

azure-cli is the Python package for the Azure command-line interface. It provides the `az` command and all associated modules for managing Azure resources.
The package can be installed via pip, OS package managers, or standalone installers.

CONFIGURATION

~/.azure/config

User-specific Azure CLI configuration file for defaults, output format, and extension settings.

INSTALLATION METHODS

Python pip

$ pip install azure-cli
copy
macOS Homebrew
$ brew install azure-cli
copy
Ubuntu/Debian
$ curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
copy
Windows
Download MSI installer from Microsoft
Docker
$ docker run -it mcr.microsoft.com/azure-cli
copy

COMPONENTS

The package includes:
- Core CLI (`az` command)
- All service modules
- Extensions framework
- Auto-completion support
- Telemetry (can be disabled)

CAVEATS

Requires Python 3.8+. Large installation size (hundreds of MB). Regular updates needed for new features. Some older Linux distributions need manual dependency installation. Extensions installed separately.

HISTORY

azure-cli (version 2.0+) was released in 2017 as a complete rewrite in Python, replacing the Node.js-based version 1.0.

SEE ALSO

az(1), pip(1), az-extension(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community