Azure CLI 2.0 (Preview): Command reference - az

Commands

az account Commands to manage subscriptions.
az acr Commands to manage Azure container registries.
az acs Commands to manage Azure Container Services.
az ad Synchronize on-premises directories and manage Azure Active Directory (AAD) resources.
az appservice Commands to manage your Azure web apps and App Service plans.
az batch Commands for working with Azure Batch.
az cloud Manage the Azure clouds registered.
az component Commands to 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 disk Commands to manage 'Managed Disks'.
az documentdb Commands to manage your Azure DocumentDB (NoSQL) database accounts.
az feature Commands to manage resource provider features, such as previews.
az feedback Loving or hating the CLI? Let us know!
az group Commands to manage resource groups.
az image Commands to manage custom virtual machine images based on managed disks/snapshots.
az iot Commands to connect, monitor, and control millions of IoT assets.
az keyvault Safeguard and maintain control of keys, secrets, and certificates.
az lock
az login Log in to access Azure subscriptions.
az logout Log out to remove access to Azure subscriptions.
az network Manages Network resources.
az policy Commands to manage resource policies.
az provider Manage resource providers.
az redis Access to a secure, dedicated cache for your Azure applications.
az resource Generic commands to manage Azure resources.
az role Use role assignments to manage access to your Azure resources.
az snapshot Commands to manage snapshots.
az sql Commands to manage Azure SQL databases.
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 and Windows virtual machines in minutes.
az vmss Create highly available, auto-scalable Linux or Windows virtual machines.

az configure

Parameters

  • --debug

    Increase logging verbosity to show all debug logs.

    RequiredFalse
  • --help -h

    Show this help message and exit.

    RequiredFalse
  • --output -o

    Output format.

    RequiredFalse
    Accepted valuesjson, jsonc, table, tsv
    Default valuejson
  • --query

    JMESPath query string. See http://jmespath.org/ for more information and examples.

    RequiredFalse
  • --verbose

    Increase logging verbosity. Use --debug for full debug logs.

    RequiredFalse

az feedback

Parameters

  • --debug

    Increase logging verbosity to show all debug logs.

    RequiredFalse
  • --help -h

    Show this help message and exit.

    RequiredFalse
  • --output -o

    Output format.

    RequiredFalse
    Accepted valuesjson, jsonc, table, tsv
    Default valuejson
  • --query

    JMESPath query string. See http://jmespath.org/ for more information and examples.

    RequiredFalse
  • --verbose

    Increase logging verbosity. Use --debug for full debug logs.

    RequiredFalse

az login

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.

az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com

Parameters

  • --password -p

    User password or client secret. Will prompt if not given.

    RequiredFalse
  • --service-principal

    The credential representing a service principal.

    RequiredFalse
  • --tenant -t

    The tenant associated with the service principal.

    RequiredFalse
  • --username -u

    Organization id or service principal.

    RequiredFalse
  • --debug

    Increase logging verbosity to show all debug logs.

    RequiredFalse
  • --help -h

    Show this help message and exit.

    RequiredFalse
  • --output -o

    Output format.

    RequiredFalse
    Accepted valuesjson, jsonc, table, tsv
    Default valuejson
  • --query

    JMESPath query string. See http://jmespath.org/ for more information and examples.

    RequiredFalse
  • --verbose

    Increase logging verbosity. Use --debug for full debug logs.

    RequiredFalse

az logout

Parameters

  • --username

    Account user, if missing, logout the current active account.

    RequiredFalse
  • --debug

    Increase logging verbosity to show all debug logs.

    RequiredFalse
  • --help -h

    Show this help message and exit.

    RequiredFalse
  • --output -o

    Output format.

    RequiredFalse
    Accepted valuesjson, jsonc, table, tsv
    Default valuejson
  • --query

    JMESPath query string. See http://jmespath.org/ for more information and examples.

    RequiredFalse
  • --verbose

    Increase logging verbosity. Use --debug for full debug logs.

    RequiredFalse