How to Install the Azure CLI on Windows using PowerShell?


To install the Azure CLI, you can download it from the location below,

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli/

To install the Azure CLI using PowerShell, use the below command.

Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -
OutFile .\AzureCLI.msi
Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi
/quiet'
rm .\AzureCLI.msi

To check if the Az CLI is installed successfully run the Az in the cmd or the PowerShell.

Updated on: 01-Sep-2021

5K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements