Add-PowerAppsAccount

Signs the specified user into the Power Platform.

Syntax

Add-PowerAppsAccount
   [-Audience <String>]
   [-Endpoint <String>]
   [-Username <String>]
   [-Password <SecureString>]
   [-TenantID <String>]
   [-CertificateThumbprint <String>]
   [-ClientSecret <String>]
   [-ApplicationId <String>]
   [<CommonParameters>]
Add-PowerAppsAccount
   [-Username <String>]
   [-Password <SecureString>]
   [-TenantID <String>]
   [-CertificateThumbprint <String>]
   [-ClientSecret <String>]
   [-ApplicationId <String>]
   -AudienceOverride <String>
   -AuthBaseUriOverride <String>
   -FlowEndpointOverride <String>
   -PowerAppsEndpointOverride <String>
   -BapEndpointOverride <String>
   -GraphEndpointOverride <String>
   [-CdsOneEndpointOverride <String>]
   [-PvaEndpointOverride <String>]
   [<CommonParameters>]

Description

The Add-PowerAppsAccount cmdlet signs the specified user or application account and saves the authentication information to the cache. Use 'Get-Help Add-PowerAppsAccount -Detailed' for descriptions of the parameters and example usage.

Examples

EXAMPLE 1

Add-PowerAppsAccount

Signs the user in to the Power Platform using the supplied credentials from authentication prompt.

EXAMPLE 2

Add-PowerAppsAccount -Endpoint "prod" -Username "[email protected]" -Password "password"

Sign in to "prod" endpoint for user "[email protected]" by using the password "password."

EXAMPLE 3

Add-PowerAppsAccount -Endpoint "tip1" -TenantID 3d0b7ad9-b90b-4616-8ee3-de15412f5025 -ClientSecret ABCDE\]NO_8:YDLp0J4o-:?=K9cmipuF@ -ApplicationId b3ab1535-9383-43e3-b213-7c74ecba60f4

Sign in to "tip1" for application b3ab1535-9383-43e3-b213-7c74ecba60f4 in tenant 3d0b7ad9-b90b-4616-8ee3-de15412f5025 by using a client secret.

EXAMPLE 4

Add-PowerAppsAccount -Endpoint "tip1" -TenantID 3d0b7ad9-b90b-4616-8ee3-de15412f5025 -CertificateThumbprint 2345137C1B2D4FED804DB353D9A8A18465C8027 -ApplicationId b3ab1535-9383-43e3-b213-7c74ecba60f4

Sign in to "tip1" for application b3ab1535-9383-43e3-b213-7c74ecba60f4 in tenant 3d0b7ad9-b90b-4616-8ee3-de15412f5025 by using certificate.

Parameters

-ApplicationId

The application ID.

Type:String
Position:Named
Default value:1950a258-227b-4e31-a9cf-717495945fc2
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Audience

The service audience which is used for sign in.

Type:String
Position:Named
Default value:Https://service.powerapps.com/
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AudienceOverride

Must be provided if giving endpoint overrides; this audience will be used for all subsequent authentication calls, ignoring normally derived audiences.

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

-AuthBaseUriOverride

Must be provided if giving endpoint overrides.

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

-BapEndpointOverride

Must be provided if giving endpoint overrides.

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

-CdsOneEndpointOverride

Can be provided if giving endpoint overrides.

Type:String
Position:Named
Default value:Unsupported
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-CertificateThumbprint

The certificate thumbprint of the application.

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

-ClientSecret

The client secret of the application.

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

-Endpoint

The service endpoint which to call. The value can be "prod", "preview", "tip1", "tip2", "usgov", "dod", "usgovhigh", or "china". Can't be used if providing endpoint overrides.

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

-FlowEndpointOverride

Must be provided if giving endpoint overrides.

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

-GraphEndpointOverride

Must be provided if giving endpoint overrides.

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

-Password

The password for the user.

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

-PowerAppsEndpointOverride

Must be provided if giving endpoint overrides.

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

-PvaEndpointOverride

Can be provided if giving endpoint overrides.

Type:String
Position:Named
Default value:Unsupported
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-TenantID

The tenant ID of the user or application.

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

-Username

The user name used for sign in.

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