# Azure CLI

## About this Install Guide

**Azure CLI**

|  |
| --- |
| Author: |
| Jason Andrews , Arm<br>[GitHub](https://github.com/jasonrandrews)<br>[LinkedIn](https://linkedin.com/in/jason-andrews-7b05a8) |
| Official docs: |
| [View](https://learn.microsoft.com/en-us/cli/azure) |
| Tags: |
| [Azure CLI](https://learn.arm.com/tag/azure-cli) |

|  |  |
| --- | --- |
| Reading time: | 15 min |
| Last updated: | 22 Jun 2026 |
| Ecosystem dashboard: | [View](https://developer.arm.com/ecosystem-dashboard/linux?package=microsoft-azure-cli) |

This guide shows you how to install and use the tool with the most common configuration. For advanced options and complete reference information, see the official documentation. Some install guides also include optional next steps to help you explore related workflows or integrations.

[Azure CLI](https://learn.microsoft.com/en-us/cli/azure/) is a cross-platform command-line tool that can be installed locally on development computers. Azure CLI is used to connect to Azure and execute administrative commands on Azure resources.

It is available for a variety of operating systems and Linux distributions and has multiple ways to install it.

## How do I prepare to install the Azure CLI on Ubuntu?

[General installation information](https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt) is available which covers all supported Linux distributions. Starting with version 2.46.0, Azure CLI supports Arm64 Linux distributions. The ‘apt’ package manager contains both x86_64 and Arm64 packages for Ubuntu 20.04, Ubuntu 22.04, and Ubuntu 24.04.

## How do I install the Azure CLI using the installation script?

Confirm you are using an Arm machine by running:

```bash
uname -m
```

The output should be:

```bash
__output__ aarch64
```

If you see a different result, you are not using an Arm computer running 64-bit Linux.

You can install Azure CLI using the following script. This script pulls required Arm64 packages and installs those on the system:

```bash
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
```

Execute the following command to verify the Azure CLI is installed correctly:

```bash
az version
```

You should see an output similar to:

```bash
__output__ {
  __output__ "azure-cli": "2.75.0",
  __output__ "azure-cli-core": "2.75.0",
  __output__ "azure-cli-telemetry": "1.1.0",
  __output__ "extensions": {}
}
```

If you prefer installing the Azure CLI using Python3, follow the instructions below.

## How do I download and install the Azure CLI using pip?

Another way to install Azure CLI for Ubuntu on Arm is to use Python pip.

Install Python pip and create a virtual environment:

```bash
sudo apt update
sudo apt install python3-pip python-is-python3 python3-venv -y
python -m venv azure-cli-venv
```

Activate it and install Azure CLI:

```bash
source azure-cli-venv/bin/activate
pip install azure-cli
```

The pip install updates `$HOME/.profile` with the path to the `az` executable. Check the executable is available by printing the version:

```bash
source $HOME/.profile
az version
```

You should see an output similar to:

```bash
__output__ {
  __output__ "azure-cli": "2.75.0",
  __output__ "azure-cli-core": "2.75.0",
  __output__ "azure-cli-telemetry": "1.1.0",
  __output__ "extensions": {}
}
```

After a successful log in, you can use the [Azure CLI](https://learn.arm.com/install-guides/azure-cli/) and automation tools like [Terraform](https://learn.arm.com/install-guides/terraform/) from the terminal.
