< Back

Add-AzureAnalysisServicesAccount

Sat Jan 11, 2020 9:43 am

NAME Add-AzureAnalysisServicesAccount



SYNOPSIS

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





SYNTAX

Add-AzureAnalysisServicesAccount [-RolloutEnvironment] <System.String> -ApplicationId <System.String>

-CertificateThumbprint <System.String> -ServicePrincipal <System.Management.Automation.SwitchParameter> -TenantId

<System.String> [-Confirm <System.Management.Automation.SwitchParameter>] [-WhatIf

<System.Management.Automation.SwitchParameter>] [<CommonParameters>]



Add-AzureAnalysisServicesAccount [[-RolloutEnvironment] <System.String>] [[-Credential]

<System.Management.Automation.PSCredential>] [-Confirm <System.Management.Automation.SwitchParameter>] [-WhatIf

<System.Management.Automation.SwitchParameter>] [<CommonParameters>]



Add-AzureAnalysisServicesAccount [-RolloutEnvironment] <System.String> [-Credential]

<System.Management.Automation.PSCredential> -ServicePrincipal <System.Management.Automation.SwitchParameter>

-TenantId <System.String> [-Confirm <System.Management.Automation.SwitchParameter>] [-WhatIf

<System.Management.Automation.SwitchParameter>] [<CommonParameters>]





DESCRIPTION

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





PARAMETERS

-ApplicationId <System.String>

The application ID.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-CertificateThumbprint <System.String>

Certificate Hash (Thumbprint)



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Credential <System.Management.Automation.PSCredential>

Login credentials



Required? false

Position? 1

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-RolloutEnvironment <System.String>

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



Required? false

Position? 0

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ServicePrincipal <System.Management.Automation.SwitchParameter>

Indicates that this account authenticates by providing service principal credentials.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-TenantId <System.String>

Tenant name or ID



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Confirm <System.Management.Automation.SwitchParameter>

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf <System.Management.Automation.SwitchParameter>

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



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, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

Microsoft.Azure.Commands.AnalysisServices.Dataplane.AsAzureProfile







NOTES





Alias: Login-AzureAsAccount



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.







RELATED LINKS

Online Version:

https://docs.microsoft.com/en-us/powers ... cesaccount