Permalink
Switch branches/tags
rc2.0.49 azure-cli-vm-2.0.16 azure-cli-vm-2.0.15 azure-cli-vm-2.0.14 azure-cli-vm-2.0.13 azure-cli-vm-2.0.12 azure-cli-vm-2.0.11 azure-cli-vm-2.0.10 azure-cli-vm-2.0.9 azure-cli-vm-2.0.8 azure-cli-vm-2.0.7 azure-cli-vm-2.0.6 azure-cli-vm-2.0.5 azure-cli-vm-2.0.4 azure-cli-vm-2.0.3 azure-cli-vm-2.0.2 azure-cli-vm-2.0.1 azure-cli-vm-2.0.0 azure-cli-vm-0.1.2rc2 azure-cli-vm-0.1.2rc1 azure-cli-vm-0.1.1b3 azure-cli-vm-0.1.1b2 azure-cli-vm-0.1.1b1 azure-cli-taskhelp-0.1.7 azure-cli-taskhelp-0.1.6 azure-cli-taskhelp-0.1.5 azure-cli-taskhelp-0.1.4 azure-cli-taskhelp-0.1.3 azure-cli-taskhelp-0.1.2 azure-cli-taskhelp-0.1.1b4 azure-cli-taskhelp-0.1.1b3 azure-cli-taskhelp-0.1.1b1 azure-cli-storage-2.0.17 azure-cli-storage-2.0.16 azure-cli-storage-2.0.15 azure-cli-storage-2.0.14 azure-cli-storage-2.0.13 azure-cli-storage-2.0.12 azure-cli-storage-2.0.11 azure-cli-storage-2.0.10 azure-cli-storage-2.0.9 azure-cli-storage-2.0.8 azure-cli-storage-2.0.7 azure-cli-storage-2.0.6 azure-cli-storage-2.0.5 azure-cli-storage-2.0.4 azure-cli-storage-2.0.3 azure-cli-storage-2.0.2 azure-cli-storage-2.0.1 azure-cli-storage-2.0.0 azure-cli-storage-0.1.2rc2 azure-cli-storage-0.1.2rc1 azure-cli-storage-0.1.1b2 azure-cli-storage-0.1.1b1 azure-cli-sql-2.0.13 azure-cli-sql-2.0.12 azure-cli-sql-2.0.11 azure-cli-sql-2.0.10 azure-cli-sql-2.0.9 azure-cli-sql-2.0.8 azure-cli-sql-2.0.7 azure-cli-sql-2.0.6 azure-cli-sql-2.0.5 azure-cli-sql-2.0.4 azure-cli-sql-2.0.3 azure-cli-sql-2.0.2 azure-cli-sql-2.0.1 azure-cli-sql-2.0.0 azure-cli-sql-0.1.1b6 azure-cli-sql-0.1.1b5 azure-cli-sql-0.1.1b4 azure-cli-sql-0.1.1b3 azure-cli-sql-0.1.1b2 azure-cli-sql-0.1.1b1 azure-cli-sf-1.0.8 azure-cli-sf-1.0.7 azure-cli-sf-1.0.6 azure-cli-sf-1.0.5 azure-cli-sf-1.0.4 azure-cli-sf-1.0.3 azure-cli-sf-1.0.2 azure-cli-sf-1.0.1 azure-cli-sf-1.0.0 azure-cli-servicefabric-0.0.4 azure-cli-servicefabric-0.0.3 azure-cli-servicefabric-0.0.2 azure-cli-role-2.0.13 azure-cli-role-2.0.12 azure-cli-role-2.0.11 azure-cli-role-2.0.10 azure-cli-role-2.0.9 azure-cli-role-2.0.8 azure-cli-role-2.0.7 azure-cli-role-2.0.6 azure-cli-role-2.0.5 azure-cli-role-2.0.4 azure-cli-role-2.0.3 azure-cli-role-2.0.2 azure-cli-role-2.0.1 azure-cli-role-2.0.0
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (67 sloc) 2.99 KB
# coding=utf-8
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
from knack.help_files import helps # pylint: disable=unused-import
helps['login'] = """
type: command
short-summary: Log in to Azure.
examples:
- name: Log in interactively.
text: >
az login
- name: Log in with user name and password. This doesn't work with Microsoft accounts or accounts that have two-factor authentication enabled.
text: >
az login -u johndoe@contoso.com -p VerySecret
- name: Log in with a service principal using client secret.
text: >
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p VerySecret --tenant contoso.onmicrosoft.com
- name: Log in with a service principal using client certificate.
text: >
az login --service-principal -u http://azure-cli-2016-08-05-14-31-15 -p ~/mycertfile.pem --tenant contoso.onmicrosoft.com
- name: Log in using a VM's system assigned identity
text: >
az login --identity
- name: Log in using a VM's user assigned identity. Client or object ids of the service identity also work
text: >
az login --identity -u /subscriptions/<subscriptionId>/resourcegroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myID
"""
helps['account'] = """
type: group
short-summary: Manage Azure subscription information.
"""
helps['account clear'] = """
type: command
short-summary: Clear all subscriptions from the CLI's local cache.
long-summary: To clear the current subscription, use 'az logout'.
"""
helps['account list'] = """
type: command
short-summary: Get a list of subscriptions for the logged in account.
"""
helps['account list-locations'] = """
type: command
short-summary: List supported regions for the current subscription.
"""
helps['account show'] = """
type: command
short-summary: Get the details of a subscription.
long-summary: If no subscription is specified, shows the current subscription.
"""
helps['account set'] = """
type: command
short-summary: Set a subscription to be the current active subscription.
"""
helps['account show'] = """
type: command
short-summary: Get the details of a subscription.
long-summary: If the subscription isn't specified, shows the details of the default subscription.
"""
helps['account get-access-token'] = """
type: command
short-summary: Get a token for utilities to access Azure.
long-summary: >
The token will be valid for at least 5 minutes with the maximum at 60 minutes.
If the subscription argument isn't specified, the current account is used.
"""