Introduction
Azure CLI is the cross-platform (works in Linux, Windows and Mac OS) Command Line Interface, developed by MSFT to create, manage and configure resources in Azure.
This document explains how to install the latest version of Azure CLI on windows 10. In the next article, we will see how we can push the code from local repository to DevOps repository using Azure CLI.
Here we are using the Azure CLI to create the repository in Azure DevOps (https://dev.azure.com). You need to have the latest version of Azure CLI installed.
Although the CLI is available in Azure Portal ribbon, sometimes it is required to update the script local and run in batch. This is especially case in the Linux servers, where the browser may not be available.
Installing Latest Version of Azure CLI
The latest version of Azure CLI can be installed by clicking on link
here.
Step 1
Download the CLI Install from the site. Here I am using windows and by default it goes to ‘Downloads’ folder.
Step 2
Double click on the installer and check the box ‘I accept the license agreement’. click on ‘Install’.
Step 3
You might be prompted with the message ‘Do you want to allow this app to make changes to your device?’. Click on ‘Yes’.
Step 4
Wait for the installation to complete. You should be getting below Pop-up with the status.
Step 4
After successful installation you should be getting the following message, that the CLI install is finished. Click on ‘Finish’.
Step 5
Open the command prompt or Power shell ISE to check the version of CLI installed. here I am opening the command prompt and enter the following command.
The latest version is 2.22.1 as of this document is published.
Conclusion
Thus in this article, we have seen what is Azure CLI and the need for this CLI, and how to install latest version of CLI on windows machine. For MAC and Linux machines, the command line installation is available. Please follow the links in the references section.
References