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).
- Start PowerShell as administrator
Then
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
It will take little time to run, so be patient.
- After installing of the above, Start up the powershell again but not necessarily as admin and then type: az
- Go to CMD to confirm if the installation is global, type: az
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)