UNPKG

1.16 kBMarkdownView Raw
1## Authentication
2
3Currently token based and cert based authentication mechanisms are supported in Xplat CLI.
4
5* **Token** based authentication works in both **ASM** (Azure Service Management) & **ARM** (Azure Resource Manager) mode
6 * Currently, only organizational accounts are supported. One cannot use an outlook, gmail, etc. account for authentication
7
8```azure login -u $username -p $password```
9
10* **Cert** based authentication works only in **ASM** mode
11 * Download the publishsettings file (This cmd opens a browser in your machine)```azure account download```
12 * One can manually download the publishettings file from [here](https://manage.windowsazure.com/publishsettings/index?client=xplat)
13 * Import the downloaded publishsettings file ```azure account import $path-to-publish-settings-file```
14
15## Listing the subscriptions and Setting them
16
17One can list the available subscriptions associated with an account and set a subscription as the default one
18
19```
20azure account list
21azure account set "Subscription Name"
22```
23
24## Different Modes
25One can flip between two modes of execution: **ASM | ARM**
26
27```azure config mode [asm|arm] ```
28
\No newline at end of file