Azure CLI 2.0: Command reference - az
Commands
| az account | Manage subscriptions. |
| 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 your Azure Web apps and App Service plans. |
| az batch | Manage Azure Batch. |
| az cloud | Manage the registered Azure clouds. |
| az component | Manage and update Azure CLI 2.0 (Preview) components. |
| az configure | Configure Azure CLI 2.0 Preview or view your configuration. The command is interactive, so just type az configure and respond to the prompts. |
| az container | Set up automated builds and deployments for multi-container Docker applications. |
| az datalake | Access to Data Lake Analytics and Store management. |
| az disk | Manage Azure Managed Disks. |
| az documentdb | Manage your Azure DocumentDB (NoSQL) database accounts. |
| az feature | Manage resource provider features, such as previews. |
| az feedback | Loving or hating the CLI? Let us know! |
| az find | Find Azure CLI commands based on a given query. |
| az group | Manage resource groups and template deployments. |
| az image | Manage custom Virtual Machine Images. |
| az iot | Connect, monitor, and control millions of IoT assets. |
| az keyvault | Safeguard and maintain control of keys, secrets, and certificates. |
| az lock | Manage Azure locks. |
| az login | Log in to access Azure subscriptions. |
| az logout | Log out to remove access to Azure subscriptions. |
| az network | Manages Azure Network resources. |
| az policy | Manage resource policies. |
| az provider | Manage resource providers. |
| az redis | Access to a secure, dedicated cache for your Azure applications. |
| az resource | Manage Azure resources. |
| az role | Use role assignments to manage access to your Azure resources. |
| 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 | Durable, highly available, and massively scalable cloud storage. |
| az tag | Manage resource tags. |
| az taskhelp | Provides long-form help content by topic. |
| az vm | Provision Linux or Windows virtual machines in seconds. |
| az vmss | Create highly available, auto-scalable Linux or Windows virtual machines. |
az configure
Configure Azure CLI 2.0 Preview or view your configuration. The command is interactive, so just type az configure and respond to the prompts.
Synopsis
az configure [--defaults]
Optional Parameters
-
--defaultsSpace 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
-
--debugIncrease logging verbosity to show all debug logs.
-
--help -hShow this help message and exit.
-
--output -oOutput format.accepted values: json, jsonc, table, tsvdefault value: json
-
--queryJMESPath query string. See http://jmespath.org/ for more information and examples.
-
--verboseIncrease logging verbosity. Use --debug for full debug logs.
az feedback
Loving or hating the CLI? Let us know!
Synopsis
az feedback
Global Parameters
-
--debugIncrease logging verbosity to show all debug logs.
-
--help -hShow this help message and exit.
-
--output -oOutput format.accepted values: json, jsonc, table, tsvdefault value: json
-
--queryJMESPath query string. See http://jmespath.org/ for more information and examples.
-
--verboseIncrease logging verbosity. Use --debug for full debug logs.
az find
Find Azure CLI commands based on a given query.
Synopsis
az find --search-query
[--reindex]
Examples
Search for things containing 'vm' or 'secret'
az find -q vm secret
Required Parameters
-
--search-query -qQuery text to find.
Optional Parameters
-
--reindexClear the current index and reindex the command modules.
Global Parameters
-
--debugIncrease logging verbosity to show all debug logs.
-
--help -hShow this help message and exit.
-
--output -oOutput format.accepted values: json, jsonc, table, tsvdefault value: json
-
--queryJMESPath query string. See http://jmespath.org/ for more information and examples.
-
--verboseIncrease logging verbosity. Use --debug for full debug logs.
az login
Log in to access Azure subscriptions.
Synopsis
az login [--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 [email protected] -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
Optional Parameters
-
--password -pCredentials 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-principalThe credential representing a service principal.
-
--tenant -tThe AAD tenant, must provide when using service principals.
-
--username -uOrganization id or service principal.
Global Parameters
-
--debugIncrease logging verbosity to show all debug logs.
-
--help -hShow this help message and exit.
-
--output -oOutput format.accepted values: json, jsonc, table, tsvdefault value: json
-
--queryJMESPath query string. See http://jmespath.org/ for more information and examples.
-
--verboseIncrease logging verbosity. Use --debug for full debug logs.
az logout
Log out to remove access to Azure subscriptions.
Synopsis
az logout [--username]
Optional Parameters
-
--usernameAccount user, if missing, logout the current active account.
Global Parameters
-
--debugIncrease logging verbosity to show all debug logs.
-
--help -hShow this help message and exit.
-
--output -oOutput format.accepted values: json, jsonc, table, tsvdefault value: json
-
--queryJMESPath query string. See http://jmespath.org/ for more information and examples.
-
--verboseIncrease logging verbosity. Use --debug for full debug logs.