Add-AzureAnalysisServicesAccount

Adds an authenticated account to use for Azure Analysis Services server cmdlet requests.

Syntax

Add-AzureAnalysisServicesAccount
   [[-RolloutEnvironment] <String>]
   [[-Credential] <PSCredential>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-AzureAnalysisServicesAccount
   [-RolloutEnvironment] <String>
   [-Credential] <PSCredential>
   [-ServicePrincipal]
   -TenantId <String>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
Add-AzureAnalysisServicesAccount
   [-RolloutEnvironment] <String>
   [-ServicePrincipal]
   -TenantId <String>
   -ApplicationId <String>
   -CertificateThumbprint <String>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The Add-AzureAnalysisServicesAccount cmdlet is used to login to an instance of Azure Analysis Services server

Examples

Example 1

PS C:\>Add-AzureAnalysisServicesAccount
RolloutEnvironment: westcentralus.asazure.windows.net
Credential: $UserCredential

This example will add the account specified by the $UserCredential variable to the westcentralus.asazure.windows.net Analysis Services environment.

Example 2

PS C:\>$ApplicationCredential = Get-Credential
PS C:\>Add-AzureAnalysisServicesAccount -RolloutEnvironment 'westcentralus.asazure.windows.net' -ServicePrincipal -Credential $ApplicationCredential -TenantId "xxxx-xxxx-xxxx-xxxx"

The first command gets the application service principal credentials, and then stores them in the $ApplicationCredential variable. The second command add the application service principal account specified by the $ApplicationCredential variable and TenantId to the westcentralus.asazure.windows.net Analysis Services environment.

Example 3

PS C:\>Add-AzureAnalysisServicesAccount -RolloutEnvironment 'westcentralus.asazure.windows.net' -ServicePrincipal -ApplicationId "yyyy-yyyy-yyyy-yyyy" -CertificateThumbprint 'zzzzzzzzzzzzzzzz' -TenantId "xxxx-xxxx-xxxx-xxxx"

This example will add the application service principal account specified by the ApplicationId, TenantId and CertificateThumbprint to the westcentralus.asazure.windows.net Analysis Services environment.

Required Parameters

-ApplicationId

The application ID.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CertificateThumbprint

Certificate Hash (Thumbprint)

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServicePrincipal

Indicates that this account authenticates by providing service principal credentials.

Type:System.Management.Automation.SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-TenantId

Tenant name or ID

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:System.Management.Automation.SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Credential

Login credentials

Type:System.Management.Automation.PSCredential
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RolloutEnvironment

Name of the Azure Analysis Services environment to which to logon to. Given the full name of the server for example asazure://westcentralus.asazure.windows.net/testserver , the correct value for this variable will be westcentralus.asazure.windows.net

Type:String
Position:0
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:System.Management.Automation.SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Outputs

Microsoft.Azure.Commands.AnalysisServices.Dataplane.AsAzureProfile

Notes

Alias: Login-AzureAsAccount