DEV Community

Cover image for Installing Azure CLI on Windows locally
Femi Somuyiwa
Femi Somuyiwa

Posted on

Installing Azure CLI on Windows locally

The Azure Command-Line Interface (CLI) is a cross-platform command-line tool that can be installed locally on Windows computers. Connecting to Azure and executing commands on Azure resources can be done using the Azure CLI for Windows. Through the Azure Cloud Shell, Microsoft Azure CLI for Windows can also be used from a browser or running inside a Docker container. Further, Azure CLI can also be accessed via command prompt, a familiar interface for most people.

The goal of this article is to walk you through how to install the Azure CLI locally on a Windows computer. You will use the PowerShell environment to do this. The installation is global, hence Azure CLI can be used locally either from PowerShell or command prompt (CMD).

  1. Start PowerShell as administrator

first

Then

second

copy this code into the powershell and press enter:
$ProgressPreference = 'SilentlyContinue'; Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi

third

It will take little time to run, so be patient.

  1. After installing of the above, Start up the powershell again but not necessarily as admin and then type: az

fourth

  1. Go to CMD to confirm if the installation is global, type: az

fifth

To create blob storage using Azure CLI, I planned to provide instructions, but it was necessary to install Azure CLI locally on a Windows computer before I could proceed. Keep an eye out for the next blog, you will be right if you guessed that it deals with creating Blob Storage using Azure CLI.

Thanks for sharing!

Top comments (0)