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.
- Install on Windows
- Install on macOS
- Install on Linux or Windows Subsystem for Linux (WSL)
- Install beta version (all environments)
- Run in Docker container
- Run in Azure Cloud Shell
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.

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



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

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.


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

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,
- https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively
- https://docs.microsoft.com/en-us/cli/azure/azure-services-the-azure-cli-can-manage
- https://docs.microsoft.com/en-us/cli/azure/interactive-azure-cli
- https://docs.microsoft.com/en-us/cli/azure/manage-clouds-azure-cli?toc=/cli/azure/toc.json&bc=/cli/azure/breadcrumb/toc.json
- https://docs.microsoft.com/en-us/cli/azure/migrate-to-azure-identity
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 🙂 .
45 Responses
[…] In our next article, we will discuss How to configure/Install Azure CLI. […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]
[…] Configure Azure Command Line Interface ( Azure CLI) On Windows […]