Azure CLI Installation

Get started with the Azure Command-Line Interface to manage Azure resources.

Overview

The Azure Command-Line Interface (Azure CLI) is a powerful tool for managing Azure resources directly from your command line. It's available for Windows, macOS, and Linux. Follow the instructions below to install the Azure CLI on your system.

Why Use the Azure CLI?

Choose Your Operating System

Select your operating system to find the specific installation instructions:

Windows

You can install the Azure CLI on Windows using several methods. The recommended method for most users is the MSI installer.

  1. Download the Installer: Visit the official Azure CLI installation page for Windows and download the latest MSI installer.
  2. Run the Installer: Double-click the downloaded MSI file and follow the on-screen prompts. The installer will add the Azure CLI to your system's PATH.
  3. Verify Installation: Open a new Command Prompt or PowerShell window and run:
    az --version
    If the installation was successful, you will see the Azure CLI version information.

Alternatively, you can use winget:

winget install --id Microsoft.AzureCLI -e

After Installation

Once the Azure CLI is installed, you can log in to your Azure account using:

az login

This command will open a web browser for you to authenticate. After successful authentication, you can start using az commands to manage your Azure resources.

Explore the Azure CLI command reference for a comprehensive list of available commands.