🔷
Cloud CLI

Azure CLI

Command-line tools for managing Microsoft Azure resources

🐧 Linux🍎 Mac🪟 Windows
Reviewed: Tested on: Kubernetes 1.29 · Terraform 1.8 · Ubuntu 22.04

What is this?

The Azure CLI manages Microsoft Azure cloud resources from the command line.

📁

Config files for Azure CLI

Where to create or edit the main configuration — paths below match the setup steps.

  • ~/.azure/

    Location: User home

    Login session and subscription config

📥

Step 01

Install Azure CLI

(01)Install

Linux
1curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
2# RHEL/Fedora:
3sudo dnf install -y azure-cli

(02)Login

Linux
1az login

Step 02

Verify

(01)Version

Linux
1az version
2az account show

Step 03

Manage Azure

(01)Common commands

Linux
1az login
2az group list
3az vm list
4az storage account list
5az aks list