Install the Azure CLI

The Azure CLI is available to install in Windows, macOS and Linux environments. It can also be run in a Docker container and Azure Cloud Shell.


The current version of the Azure CLI is 2.15.1. For information about the latest release, see the release notes. To find your installed version and see if you need to update, run az version.


If you're using the Azure classic deployment model, install the Azure classic CLI.


The CLI provides an in-tool command to update to the latest version:

az upgrade


The az upgrade command was added in version 2.11.0 and will not work with versions prior to 2.11.0.

This command will also update all installed extensions by default. For more az upgrade options, please refer to the command reference page.

Next Steps

See What is Azure CLI? for key characteristics.