What is Azure CLI?
Azure CLI (Command Line Tool) is one of the command line tools available in Microsoft Azure.
The other tools being Azure Powershell (Cmdlets to create, test, deploy, and manage solutions and services delivered through the Azure platform) and PowerShell Tools for Visual Studio 2015 (Edit, run and debug PowerShell scripts locally and remotely, leveraging Visual Studio’s locals, watch, call stack for your scripts and modules.)
The Azure Command-Line Interface (Azure CLI) is a lightweight cross-platform command line tool to manage Azure Servcies and accomplish common tasks.
How to install Azure CLI on Windows?
The Azure CLI is installed through an MSI, and can be accessed through the Windows Command Prompt (CMD) or PowerShell. The MSI basically installs the az command on Windows. You can download the Azure CLI MSI for windows from Microsoft here.
Once the 40+ MB download is complete, just click Run and follow the prompts.
While you can use the Window CMD, I strongly recommend PowerShell because this gives you some level of intellisense (Auto completion when typing commands)
Fire up a PowerShell command prompt as an administrator and simply type az (Kind of "Hello World" for Azure CLI), this will list all the base commands available in Azure CLI.
Your next command to try will surely be "az login": If the CLI can open your default browser, it will do so and load a sign-in page, as below:
https://aka.ms/devicelogin and follow the instructions on the command line to enter an authorization code.
You can learn more about all authentication types for the Azure CLI here
From this point on, you are ready to interact with your Microsoft Azure resources, and perform pretty much anything you normally perform through the Azure Portal.
account : Manage Azure subscription information.
acr : Manage private registries with Azure Container Registries.
acs : Manage Azure Container Services.
ad: Manage Azure Active Directory Graph entities needed for Role Based Access Control.
advisor : Manage Azure Advisor.
aks : Manage Azure Kubernetes Services.
ams : Manage Azure Media Services resources.
appservice: Manage App Service plans.
backup : Manage Azure Backups.
batch : Manage Azure Batch.
batchai : Manage Batch AI resources.
billing : Manage Azure Billing.
bot : Manage Microsoft Bot Services.
cdn : Manage Azure Content Delivery Networks (CDNs).
cloud : Manage registered Azure clouds.
cognitiveservices : Manage Azure Cognitive Services accounts.
configure: Manage Azure CLI configuration. This command is interactive.
consumption : Manage consumption of Azure resources.
container: Manage Azure Container Instances.
cosmosdb : Manage Azure Cosmos DB database accounts.
deployment: Manage Azure Resource Manager deployments at subscription scope.
disk : Manage Azure Managed Disks.
dla : (PREVIEW) Manage Data Lake Analytics accounts, jobs, and catalogs.
dls : (PREVIEW) Manage Data Lake Store accounts and filesystems.
dms : Manage Azure Data Migration Service (DMS) instances.
eventgrid: Manage Azure Event Grid topics and subscriptions.
eventhubs: Manage Azure Event Hubs namespaces, eventhubs, consumergroups and geo recovery configurations - Alias.
extension: Manage and update CLI extensions.
feature : Manage resource provider features.
feedback : Send feedback to the Azure CLI Team! find : Find Azure CLI commands.
functionapp : Manage function apps.
group : Manage resource groups and template deployments.
hdinsight: Manage HDInsight clusters.
identity : Managed Service Identities.
image : Manage custom virtual machine images.
interactive : Start interactive mode. Installs the Interactive extension if not installed already.
iot : Manage Internet of Things (IoT) assets.
iotcentral: Manage IoT Central assets.
keyvault : Manage KeyVault keys, secrets, and certificates.
lab : Manage Azure DevTest Labs.
lock : Manage Azure locks.
login : Log in to Azure.
logout : Log out to remove access to Azure subscriptions.
managedapp: Manage template solutions provided and maintained by Independent Software Vendors (ISVs).
maps : Manage Azure Maps.
mariadb : Manage Azure Database for MariaDB servers.
monitor : Manage the Azure Monitor Service.
mysql : Manage Azure Database for MySQL servers.
network : Manage Azure Network resources.
policy : Manage resource policies.
postgres : Manage Azure Database for PostgreSQL servers.
provider : Manage resource providers.
redis : Manage dedicated Redis caches for your Azure applications.
relay : Manage Azure Relay Service namespaces, WCF relays, hybrid connections, and rules.
reservations : Manage Azure Reservations.
resource : Manage Azure resources.
role : Manage user roles for access control with Azure Active Directory and service principals.
search : Manage Azure Search services, admin keys and query keys.
servicebus: Manage Azure Service Bus namespaces, queues, topics, subscriptions, rules and geo-disaster recovery configuration alias.
sf: Manage and administer Azure Service Fabric clusters.
sig : Manage shared image gallery.
signalr : Manage Azure SignalR Service.
snapshot : Manage point-in-time copies of managed disks, native blobs, or other snapshots.
sql : Manage Azure SQL Databases and Data Warehouses.
storage : Manage Azure Cloud Storage resources.
tag : Manage resource tags.
vm: Manage Linux or Windows virtual machines.
vmss : Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS).
webapp : Manage web apps.