This blog discusses the top Azure CLI commands for creating and managing your Azure resources. Like PowerShell, Azure CLI is also a command-line tool that quickly completes your job.
Azure CLI Commands List Let us discuss the complete list of commands regarding Virtual Machines, Storage Accounts, Resource Groups, etc.
Managing Virtual Machines Command Name Description az vm create This command can help you create an Azure Virtual machine (VM). az vm delete To delete an Azure Virtual machine (VM). az vm start To start a stopped Azure Virtual machine (VM). az vm stop To stop a running Azure Virtual machine (VM). az vm deallocate To deallocate your Azure Virtual Machine. az vm update To update different properties of an Azure Virtual Machine (VM). az vm list Lists the details of Azure Virtual Machines (VMs). az vm restart To restart Azure Virtual Machines (VMs). az vm resize To resize an Azure Virtual Machines (VM). az vm show To get the details of an Azure VM. az vm deallocate To deallocate an Azure Virtual Machine (VM). az vm user To manage a user account for a Virtual Machine. az vm user update To update a user account for a Virtual Machine. az vm user delete To delete a user account from a Virtual Machine (VM). az vm capture To capture the details of a stopped Azure Virtual Machine. az vm application To manage applications for a Virtual Machine. az vm auto-shutdown Manage auto-shutdown for your Azure VM. az vm diagnostics To configure the Azure VM diagnostics extension. az vm convert To convert a VM with unmanaged disks to use the managed disks. az vm disk To manage the managed data disks for an Azure Virtual Machine. az vm disk detach To detach a managed disks from Azure VM. az vm disk attach To attach managed disks to an Azure VM. az vm host To manage a dedicated host for an Azure Virtual Machine. az vm generalize To generalize a Virtual Machine.
Managing Azure Resource Groups az group list To list Azure Resource Groups. az group show To get an Azure Resource Group. az group create To create a new Azure resource group. az group delete To delete an Azure resource group. az group exists To check if an Azure resource group exists. az group lock To manage the Azure resource group lock. az group lock create To create an Azure resource group lock. az group lock delete To delete a lock from an Azure resource Group. az group update To update an Azure resource group. az group deployment To manage the deployments of Azure Resource Manager.
Managing Azure Storage Accounts az storage account list To lists the Azure Storage Accounts. az storage account create To create an Azure Storage account. az storage account show To show the Azure storage account properties. az storage account delete To delete a storage account based on the specified id or name. az storage account keys To manage Azure storage account keys. az storage account keys list To retrieve the lists of Azure storage account keys under a specified storage account. Az storage account keys renew To generate the access and Kerberos keys for a specified Azure storage account. az storage account check-name To check that the Azure storage account name is valid or not. az storage To manage the Azure Cloud Storage resources. az storage account show-connection-string To get the Azure Storage account connection string details. az storage copy To copy files or directories from or to Azure storage. az storage account encryption-scope Managing encryption scope for an Azure storage account. az storage account or-policy To manage the Object Replication Policy of Azure Storage account. az storage account or-policy create To create the Object Replication Policy of an Azure Storage account. az storage account or-policy delete To delete the Object Replication Policy of a specified Azure Storage account.
Managing Azure Account information az account list Get the lists of Azure subscriptions for the logged-in user. az account create To create an Azure subscription. az account clear To clear all subscription from the local cache of your Azure CLI. az account lock To manage locks in Azure subscription level. az account lock create To create a lock for Azure Subscription. az account lock delete To delete a lock from an Azure subscription. az account lock list To list the information on the locks in Azure subscription. az account lock show To show the details of an Azure subscription lock. az account lock update To update the lock of an Azure subscription. az account set To set the current Azure subscription. az account show To get the details of an Azure subscription. az account tenant To manage a tenant. az account tenant list To get the list of tenants for your account. az account subscription To manage an Azure subscription. az account subscription enable To enable Azure subscription. az account subscription rename To rename an Azure subscription. az account subscription cancel To cancel an Azure subscription.
Managing SQL Server az sql server create To create a server. az sql server delete To delete a server. az sql server list To list the servers. az sql server key To manage SQL server keys. az sql server key list To get the lists of SQL Server keys. az sql server key show Shows a SQL Server key.
Managing Key Vault, secrets, and certificates. Az keyvault list To list the Azure key Vaults and/or HSMs. Az keyvault list-deleted To get information about the deleted Vaults or HSMs under a subscription. az keyvault recover To recover a deleted Vault or HSM. az keyvault key To manage the Azure Key vault keys. az keyvault key create To create an Azure Key vault key. az keyvault update To update the properties of an Azure key vault. az keyvault key list To list Azure Key vault keys. az keyvault key recover To recover a deleted Azure key vault key to its latest version. az keyvault key restore To restore a backed up key to an Azure Vault. az keyvault certificate To manage Azure key vault certificate. az keyvault certificate create To create an Azure key vault certificate. az keyvault backup To manage a full HSM backup. az keyvault secret To manage key vault secret. az keyvault secret show To get a secret from a specified key vault. az keyvault secret list Lists the secrets for a specified key vault. az keyvault secret backup To back up secret of a specified key vault.
For the complete lists of commands, you can refer to the Microsoft Official Site .
Conclusion Azure CLI provides us with a list of commands to quickly manage our Azure resources. In this article, we discussed a few commands we use in our daily tasks.
You may also like following the articles below.