Add-PowerAppsAccount

Adds a Power Apps account.

Syntax

Add-PowerAppsAccount
   [[-Audience] <String>]
   [[-Endpoint] <String>]
   [[-Username] <String>]
   [[-Password] <SecureString>]
   [[-TenantID] <String>]
   [[-CertificateThumbprint] <String>]
   [[-ClientSecret] <String>]
   [[-ApplicationId] <String>]
   [<CommonParameters>]

Description

The Add-PowerAppsAccount cmdlet signs in the user or application account and saves the sign-in information to cache.

Examples

EXAMPLE 1

Add-PowerAppsAccount

Sign in to the "prod" endpoint.

EXAMPLE 2

Add-PowerAppsAccount -Endpoint "prod" -Username "username@test.onmicrosoft.com" -Password "password"

Sign in to the "prod" endpoint for the user "username@test.onmicrosoft.com" by using password "password".

EXAMPLE 3

Add-PowerAppsAccount 
  -Endpoint "tip1" 
  -TenantID [Guid] 
  -ClientSecret ABCDE]NO_8:YDLp0J4o-:?=K9cmipuF@ 
  -ApplicationId [Guid]

Sign in to the endpoint "tip1" for the specified application in the specified tenant by using the client secret.

EXAMPLE 4

Add-PowerAppsAccount 
  -Endpoint "tip1" 
  -TenantID [Guid] 
  -CertificateThumbprint [Guid] 
  -ApplicationId [Guid]

Sign in to the endpoint "tip1" for the specified application in the specified tenant by using the specified certificate.

Parameters

-ApplicationId

ID of the Power Apps application.

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

-Audience

ID of the service audience that is used for sign in.

Type:String
Position:1
Default value:Https://management.azure.com/
Accept pipeline input:False
Accept wildcard characters:False

-CertificateThumbprint

Certificate thumbprint for the application.

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

-ClientSecret

Client secret for the application.

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

-Endpoint

Name of the service endpoint to call. Valid options are "dod", "prod","preview","tip1", "tip2", "usgov", or "usgovhigh".

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

-Password

Password for the user that you specified.

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

-TenantID

Tenant ID of the user or application.

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

-Username

User name that is used for sign in.

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