In this article you will learn how to connect to an Azure subscription from the Azure Command-Line Interface (Azure CLI) in Windows Operating System.
What is Azure CLI?
Microsoft Azure Command-Line Interface (Azure CLI) uses a set of open-source shell-based commands (Bash, Terminal, Command prompt, and so on) for creating and handling resources in Microsoft Azure. Once the Azure CLI has been installed then you will be able to connect it with your Azure subscription and run the Azure commands.
How to install Azure CLI in Windows
The following installer packages are available:
Firstly, we go to above web link and download Azure CLI Setup File by using Web Platform Installer. Then click Install Button.
To connect to an Azure subscription from Azure, Open Command prompt and type the following command,
Azure login
After executing above command, we get the following information from Command prompt.
For example, to see the version of the Azure CLI you installed, type the following,
azure version
Azure Book