Configure Azure Command Line Interface ( Azure CLI) On Windows

Hello Everybody,

In one of our previous article, we have discussed, how to configure Window PowerShell to support Azure module. Today, in this article we are going to discuss how to configure Command Line Interface (CLI) on Windows.

Command Line Interface (CLI) :

The Azure command-line interface (Azure CLI) is a set of commands used to create and manage Azure resources. The Azure CLI is available across Azure services and is designed to get you working quickly with Azure, with an emphasis on automation. Azure CLI is available on Windows, Mac, Linux, etc.

Installation Of The Azure CLI :

We can install Azure CLI on different environments like Windows, macOS and Linux. It can also be run in a Docker container and Azure Cloud Shell. As per Microsoft documentation following are the links to configure CLI on different environments.

Let’s go through the following steps to install the CLI on Windows.

Step 1 – To Install / Update CLI on Windows, we need to download the current version (The current version of the Azure CLI is 2.24.2. ) of MSI file. In case of upgrading Azure PowerShell module, we should clean/uninstall the older version before upgrade to a new version. In case of CLI upgradation, we don’t need to uninstall current versions before using the MSI installer because the MSI will update any existing version. So to download click on Current Version Of Azure CLI.

Step 2 – If we are facing issue to download the MSI installer, then we need to check our proxy configuration to make sure that it is not blocking the connection. We should make sure that we have your proxy properly configured. After downloading the MSI, right click and select Install from the context menu as showing in the following figure.

Figure 1 – Azure PowerShell – Install Azure CLI

Step 3 – After start installing , please follow the guidance provided by the MSI as showing in the following figures.

Figure 2- Azure PowerShell – Install Azure CLI 1
Figure 3 – Azure PowerShell – Install Azure CLI 2
Figure 4 – Azure PowerShell – Install Azure CLI 3

Step 4- As we can see in the above figure, we need to click on Finish button to complete the CLI installation.

We can now run the Azure CLI with the az command from either Windows Command Prompt or PowerShell. To check, if the installation has successfully done or not lets open PowerShell and run the following command to connect to Azure.

az login

Figure 5 – Azure PowerShell – Install Azure CLI 4

As we can see in the above figure, after running Az Login command, it is redirecting to the browser to login using the credential and then updating the information on the powershell editor to inform the user as showing in the following figure.

Figure 6 – Azure PowerShell – Install Azure CLI 5
Figure 7 – Azure PowerShell – Install Azure CLI 6

We can see in the above figure, we have successfully logged-in to my azure subscription.

Figure 8 – Azure PowerShell – Install Azure CLI 7

In the Above figure we can see the list of commands which can be used to manage my azure resources.

To read further go through the following links,


I hope this is informative to you. Please let me know if I missed anything important or if my understanding is not up to the mark.

Keep reading, share your thoughts, experiences. Feel free to contact us to discuss more.

If you have any suggestion / feedback / doubt, you are most welcome. Stay tuned on Knowledge-Junction, will come up with more such articles.

Thanks for reading ðŸ™‚ .

Manas Ranjan Moharana

Around 11+ years of total IT experience and since last 10 years working on almost on all version of SharePoint .Interested in learning and sharing something new to be helthy.

You may also like...

1 Response

  1. June 7, 2021

    […] In our next article, we will discuss How to configure/Install Azure CLI. […]

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: