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,

  1. https://docs.microsoft.com/en-us/cli/azure/use-cli-effectively
  2. https://docs.microsoft.com/en-us/cli/azure/azure-services-the-azure-cli-can-manage
  3. https://docs.microsoft.com/en-us/cli/azure/interactive-azure-cli
  4. https://docs.microsoft.com/en-us/cli/azure/manage-clouds-azure-cli?toc=/cli/azure/toc.json&bc=/cli/azure/breadcrumb/toc.json
  5. 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 🙂 .

Manas Ranjan Moharana

I'm a proud Indian, Son, Husband, Father, Author, Blogger, Self motivated person. I lives in Pune, Maharashtra and working for TietoEvry.pvt.ltd, to build Azure Solutions and Share Point Solutions.Microsoft certified Professional with 14 years of IT experience. Interest in learning and sharing something new, to be healthy.

You may also like...

45 Responses

  1. June 7, 2021

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

  2. June 22, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  3. June 23, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  4. June 24, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  5. June 25, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  6. June 28, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  7. June 28, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  8. June 29, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  9. June 30, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  10. July 2, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  11. July 3, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  12. July 6, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  13. July 11, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  14. July 12, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  15. July 13, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  16. July 17, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  17. July 17, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  18. July 17, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  19. July 17, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  20. July 18, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  21. July 18, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  22. July 18, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  23. July 20, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  24. July 20, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  25. July 23, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  26. July 26, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  27. July 31, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  28. August 5, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  29. October 6, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  30. November 2, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  31. November 26, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  32. December 2, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  33. December 4, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  34. December 8, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  35. December 10, 2021

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  36. January 1, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  37. February 3, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  38. February 7, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  39. February 9, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  40. February 11, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  41. March 10, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  42. March 13, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  43. March 20, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  44. March 20, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

  45. July 6, 2022

    […] Configure Azure Command Line Interface ( Azure CLI) On Windows […]

Leave a Reply

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

%d bloggers like this: