Add-AzAnalysisServicesAccount
Adds an authenticated account to use for Azure Analysis Services server cmdlet requests.
Note
This is the previous version of our documentation. Please consult the most recent version for up-to-date information.
Syntax
Add-AzAnalysisServicesAccount
[[-RolloutEnvironment] <String>]
[[-Credential] <PSCredential>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzAnalysisServicesAccount
[-RolloutEnvironment] <String>
[-Credential] <PSCredential>
[-ServicePrincipal]
-TenantId <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzAnalysisServicesAccount
[-RolloutEnvironment] <String>
[-ServicePrincipal]
-TenantId <String>
-ApplicationId <String>
-CertificateThumbprint <String>
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Add-AzAnalysisServicesAccount cmdlet is used to login to an instance of Azure Analysis Services server
Examples
Example 1
Add-AzAnalysisServicesAccount
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
$ApplicationCredential = Get-Credential
Add-AzAnalysisServicesAccount -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
Add-AzAnalysisServicesAccount -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.
Parameters
The application ID.
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Certificate Hash (Thumbprint)
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Prompts you for confirmation before running the cmdlet.
| Type: | SwitchParameter |
| Aliases: | cf |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Login credentials
| Type: | PSCredential |
| Position: | 1 |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
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 |
Indicates that this account authenticates by providing service principal credentials.
| Type: | SwitchParameter |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Tenant name or ID
| Type: | String |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Shows what would happen if the cmdlet runs. The cmdlet is not run.
| Type: | SwitchParameter |
| Aliases: | wi |
| Position: | Named |
| Default value: | None |
| Accept pipeline input: | False |
| Accept wildcard characters: | False |
Inputs
None
Outputs
Notes
Alias: Login-AzAsAccount