
Install a different version of PowerShell, adjust the command to match the version you need. For more information, see How to create your profile and Profiles and execution policy.The installation commands in this article are for the latest stable release of PowerShell. The simplest way is to run notepad $PROFILE in PowerShell. To enable tab completion in PowerShell, create or edit the profile stored in the variable $PROFILE. The CLI provides an in-tool command to update to the latest version: az upgradeĪzure CLI version 2.49 or higher is required to enable tab completion for Azure CLI on PowerShell. Available versions can be found at Azure CLI release notes. To install specific version, replace the -Uri argument with with version segment changed. If you already have a version installed, the installer will update the existing version. This will download and install the latest version of the Azure CLI for Windows. \AzureCLI.msi Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet' Remove-Item. To install the Azure CLI using PowerShell, start PowerShell as administrator and run the following command: $ProgressPreference = 'Silentl圜ontinue' Invoke-WebRequest -Uri -OutFile.

PowerShellĪlthough most Azure CLI documentation is written and tested in a Bash shell, you can also install and run the Azure CLI using PowerShell. To download the MSI installer for specific version, change the version segment in URL and download it. Latest release of the Azure CLI Specific version You don't need to uninstall current versions before using the MSI installer because the MSI will update any existing version. The MSI distributable is used for installing or updating the Azure CLI on Windows.

To find your installed version and see if you need to update, run az version. For information about the latest release, see the release notes. The current version of the Azure CLI is 2.49.0. See the main install pageįor the list of supported package managers or how to install manually under WSL.

When installing for Windows Subsystem for Linux (WSL), packages are available for your Linux distribution. The Azure CLI for Windows can also be used from a browser through the Azure Cloud Shell or run from inside a Docker container.įor Windows, the Azure CLI is installed via a MSI, which gives you access to the CLI through the Windows Command Prompt (CMD) or PowerShell. You can use the Azure CLI for Windows to connect to Azure and execute administrative commands on Azure resources. The Azure Command-Line Interface (CLI) is a cross-platform command-line tool that can be installed locally on Windows computers.
