Azure CLI
The Azure CLI is a cross-platform command-line tool for managing Azure resources. It runs on Linux, macOS, and Windows, and can be used interactively or in automation scripts. This guide covers instal
Installation (2025)
Fedora / RHEL / CentOS
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
sudo dnf install -y https://packages.microsoft.com/config/rhel/9.0/packages-microsoft-prod.rpm
sudo dnf install -y https://packages.microsoft.com/config/rhel/8/packages-microsoft-prod.rpm
sudo dnf install azure-cliUbuntu / Debian
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bashmacOS (Homebrew)
brew update && brew install azure-cliWindows
winget install -e --id Microsoft.AzureCLINixOS Installation & Configuration (2025)
Using Nix Package Manager
Using Home Manager (per-user)
Post-Install Configuration
Proxy Settings
Running Azure CLI in Docker/Podman
Real-Life DevOps Examples (2025)
1. Login and Set Subscription
2. Create a Resource Group
3. Deploy Infrastructure with Bicep
4. Assign a Managed Identity to a VM
5. Use Azure CLI in GitHub Actions
Azure CLI Jokes
More Examples & Resources
Last updated