Add-AzureAccount

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Add-AzureAccount

Authenticates through Windows Azure Active Directory and downloads associated subscriptions.

Syntax

Parameter Set: Default
Add-AzureAccount [-Environment <String> ] [-SubscriptionDataFile <String> ] [ <CommonParameters>]

Detailed Description

Authenticates a user through Windows Azure Azure Active Directory and downloads the subscriptions associated with the account.

This topic describes the cmdlet in the .7.2 version of the Microsoft Azure PowerShell module. To find out the version of the module you're using, from the Azure PowerShell console, type (get-module azure).version.

Parameters

-Environment<String>

Specifies the Windows Azure environment to which the user account belongs.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-SubscriptionDataFile<String>

Specifies the path and filename of the subscription data file. This parameter is optional. If it is provided, the subscription data is read from a default subscription data file in the user's profile.

Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example

This example adds an account that belongs to an environment named MyEnvironment.

PS C:\> Add-AzureAccount -Environment MyEnvironment

Get-AzureEnvironment

Remove-AzureEnvironment