UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

28 lines (18 loc) 1.16 kB
## Authentication Currently token based and cert based authentication mechanisms are supported in Xplat CLI. * **Token** based authentication works in both **ASM** (Azure Service Management) & **ARM** (Azure Resource Manager) mode * Currently, only organizational accounts are supported. One cannot use an outlook, gmail, etc. account for authentication ```azure login -u $username -p $password``` * **Cert** based authentication works only in **ASM** mode * Download the publishsettings file (This cmd opens a browser in your machine)```azure account download``` * One can manually download the publishettings file from [here](https://manage.windowsazure.com/publishsettings/index?client=xplat) * Import the downloaded publishsettings file ```azure account import $path-to-publish-settings-file``` ## Listing the subscriptions and Setting them One can list the available subscriptions associated with an account and set a subscription as the default one ``` azure account list azure account set "Subscription Name" ``` ## Different Modes One can flip between two modes of execution: **ASM | ARM** ```azure config mode [asm|arm] ```