>_cli-install
az

Install Azure CLI

The official Microsoft Azure command-line interface

The Azure CLI (az) creates and manages Azure resources — VMs, storage, AKS, and more — from any shell, and scripts cleanly for automation.

Install on macOS
brew install azure-cli
Install on Windows
winget install -e --id Microsoft.AzureCLI
Install on Linux
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
Run it
az login
Verify the install
az version

Before you start

After installing, run az login to sign in to your Azure account.

Official documentation: Azure CLI install docs

Frequently asked questions

How do I sign in?

Run az login; a browser window opens to authenticate.

Is the Linux script for Debian/Ubuntu only?

That one-liner targets Debian/Ubuntu. RPM and other distros have their own commands in the official docs.

How do I update the Azure CLI?

Run az upgrade, or re-run your package manager's upgrade command.

Azure and Microsoft are trademarks of Microsoft Corporation. cli-install.com is an independent resource and is not affiliated with or endorsed by the trademark owner.