Install Azure CLI 2.0 on Windows
On Windows the Azure CLI binary is installed via an MSI, which gives you access to the CLI through the Windows Command Prompt (CMD) or PowerShell. If you are running Windows Subsystem for Linux (WSL), there are packages available for your Linux distribution. See the main install page for the list of supported package managers or how to install manually under WSL.
Install or update
The MSI distributable is used for installing, updating, and uninstalling the
az command on Windows.
When the installer asks if it can make changes to your computer, click the "Yes" box.
You can now run the Azure CLI with the
az command from either Windows Command Prompt or PowerShell. PowerShell offers some tab completion features
not available from Windows Command Prompt. To log in, run the
az login command.
To learn more about different login methods, see Log in with Azure CLI 2.0.
If you decide to uninstall the Azure CLI, we're sorry to see you go. Before you uninstall, use the
az feedback command to give
some reasons why you chose to uninstall and how the CLI could be improved to help you. Our goal is to make the Azure
CLI bug-free and user-friendly. If you encountered a bug, please file a GitHub issue.
Uninstalling can be done by running the MSI again, and choosing the "Uninstall" option.