Azure Command-Line Interface (CLI)

The Azure command-line interface (CLI) is Microsoft's cross-platform command-line experience for managing Azure resources. The Azure CLI is easy to learn and the perfect tool for building custom automation that works with Azure resources.

Windows logo
Windows 10
Ubuntu logo
Ubuntu 16.04+
macOS logo
macOS
Azure Cloud Shell logo
Azure Cloud Shell
Download the MSI installer Ubuntu install instructions macOS install instructions Run in your browser on Azure Cloud Shell

See all of the supported installation platforms.

Azure CLI Resources

Note

In scripts and on the Microsoft documentation site, Azure CLI examples are written for the bash shell. One-line examples will run on any platform. Longer examples which include line continuations (\) or variable assignment need to be modified to work on other shells, including PowerShell.

Get started Build your skills with Microsoft Learn Contact Us
Get Started with the Azure CLI Manage virtual machines with the Azure CLI Request features
Deploy a web application from GitHub Control Azure services with the CLI Get help on StackOverflow
Create a Postgres database Connect an application to Azure Storage Report issues
Create a Kubernetes cluster More interactive learning...
Create a virtual machine