az
Commands
| az account | Manage Azure subscription information. |
| az acr | Manage Azure Container Registries. |
| az acs | Manage Azure Container Services. |
| az ad | Synchronize on-premises directories and manage Azure Active Directory resources. |
| az appservice | Manage App Service plans. |
| az backup | Commands to manage Azure Backups. |
| az batch | Manage Azure Batch. |
| az billing | Manage Azure Billing. |
| az cdn | Manage Azure Content Delivery Networks (CDNs). |
| az cloud | Manage registered Azure clouds. |
| az cognitiveservices | Manage Azure Cognitive Services accounts. |
| az component | Manage and update Azure CLI 2.0 components. |
| az configure | Display and manage the Azure CLI 2.0 configuration. This command is interactive. |
| az consumption | Manage consumption of Azure resources. |
| az container | (PREVIEW) Manage Azure Container Instances. |
| az cosmosdb | Manage Azure Cosmos DB database accounts. |
| az disk | Manage Azure Managed Disks. |
| az dla | (PREVIEW) Manage Data Lake Analytics accounts, jobs, and catalogs. |
| az dls | (PREVIEW) Manage Data Lake Store accounts and filesystems. |
| az eventgrid | Manage Azure Event Grid topics and subscriptions. |
| az extension | Manage and update CLI extensions. |
| az feature | Manage resource provider features. |
| az feedback | Loving or hating the CLI? Let us know! |
| az find | Find Azure CLI commands. |
| az functionapp | Manage function apps. |
| az group | Manage resource groups and template deployments. |
| az image | Manage custom virtual machine images. |
| az interactive | Start interactive mode. |
| az iot | (PREVIEW) Manage Internet of Things (IoT) assets. |
| az keyvault | Safeguard and maintain control of keys, secrets, and certificates. |
| az lab | Manage Azure DevTest Labs. |
| az lock | Manage Azure locks. |
| az login | Log in to Azure. |
| az logout | Log out to remove access to Azure subscriptions. |
| az managedapp | Manage template solutions provided and maintained by Independent Software Vendors (ISVs). |
| az monitor | Manage the Azure Monitor Service. |
| az mysql | Manage Azure Database for MySQL servers. |
| az network | Manage Azure Network resources. |
| az policy | Manage resource policies. |
| az postgres | Manage Azure Database for PostgreSQL servers. |
| az provider | Manage resource providers. |
| az redis | Access to a secure, dedicated Redis cache for your Azure applications. |
| az resource | Manage Azure resources. |
| az role | Manage user roles for access control with Azure Active Directory and service principals. |
| az sf | Manage and administer Azure Service Fabric clusters. |
| az snapshot | Manage point-in-time copies of managed disks, native blobs, or other snapshots. |
| az sql | Manage Azure SQL Databases and Data Warehouses. |
| az storage | Manage Azure Cloud Storage resources. |
| az tag | Manage resource tags. |
| az taskhelp | Provides long-form help content by topic. |
| az vm | Provision Linux or Windows virtual machines. |
| az vmss | Manage groupings of virtual machines in an Azure Virtual Machine Scale Set (VMSS). |
| az webapp | Manage web apps. |
az configure
Display and manage the Azure CLI 2.0 configuration. This command is interactive.
az configure [--defaults]
Optional Parameters
--defaults -d
Space separated 'name=value' pairs for common arguments defaults, e.g. '--defaults group=myRG web=myweb vm=myvm'. Use '' to clear the defaults, e.g. --defaults vm='' web=''.
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.
az feedback
Loving or hating the CLI? Let us know!
az feedback
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.
az find
Find Azure CLI commands.
az find --search-query
[--reindex]
Examples
Search for commands containing 'vm' or 'secret'
az find -q vm secret
Required Parameters
--search-query -q
Query text to find.
Optional Parameters
--reindex
Clear the current index and reindex the command modules.
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.
az interactive
Start interactive mode.
az interactive [--style {bg, br, contrast, default, grey, halloween, neon, none, pastel, primary, purple, quiet}]
Optional Parameters
--style -s
The colors of the shell.
accepted values: bg, br, contrast, default, grey, halloween, neon, none, pastel, primary, purple, quiet
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.
az login
Log in to Azure.
az login [--allow-no-subscriptions]
[--msi]
[--msi-port]
[--password]
[--service-principal]
[--tenant]
[--username]
Examples
Log in interactively.
az login
Log in with user name and password. This doesn't work with Microsoft accounts or accounts that have two-factor authentication enabled.
az login -u johndoe@contoso.com -p VerySecret
Log in with a service principal using client secret.
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com
Log in with a service principal using client certificate.
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p ~/mycertfile.pem --tenant contoso.onmicrosoft.com
Log in using a VM's managed service identity (MSI)
az login --msi
Optional Parameters
--allow-no-subscriptions
Support access tenants without subscriptions. It's uncommon but useful to run tenant level commands, such as 'az ad'.
--msi
Log in using the Virtual Machine's identity.
--msi-port
The port to retrieve tokens for login.
default value: 50342
--password -p
Credentials like user password, or for a service principal, provide client secret or a pem file with key and public certificate. Will prompt if not given.
--service-principal
The credential representing a service principal.
--tenant -t
The AAD tenant, must provide when using service principals.
--username -u
Organization id or service principal.
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.
az logout
Log out to remove access to Azure subscriptions.
az logout [--username]
Optional Parameters
--username
Account user, if missing, logout the current active account.
Global Parameters
--debug
Increase logging verbosity to show all debug logs.
--help -h
Show this help message and exit.
--output -o
Output format.
--query
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity. Use --debug for full debug logs.