In this article you will learn about Azure Command-Line
Interface.
What is Azure CLI?
An Azure Command-Line Interface
(Azure CLI) to use a set of open-source shell-based commands 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
from your command-line interface (Bash, Terminal, Command prompt, and so on) to
work with your Azure.
Use an installer
The following installer packages
are available:
Run Azure CLI commands
For example, to run the help
command, type the following:
azure help
To see the version of the Azure
CLI you installed, type the following:
azure –version
To download your .publishsettings
file from the Azure classic portal.
account download [options]
To imports a publishsettings file
or certificate.
account import [options]
<file>
To List the imported
subscriptions
account list [options]
List of the account environments
account env list [options]
To adds an environment to the
account
account env add [options]
[environment]
To Show account environment
details
account env show [options] [environment]
To adds an environment to the
account
account env add [options]
[environment]
To sets the account environment
account env set [options] [environment]
To deletes the specified
environment from the account
account env delete [options] [environment]
Connect to an Azure subscription from the Azure
Command-Line Interface (Azure CLI)
There are two ways to connect to our
subscription from the Azure CLI:
- Log in to Azure using a work or school account or a Microsoft account identity
- Download and use a publish settings file
No comments:
Post a Comment