Set-AdminPowerAppConditionalAccessAuthenticationContextIds

Sets the authentication context ID for the specified app.

Syntax

Set-AdminPowerAppConditionalAccessAuthenticationContextIds
   [-EnvironmentName] <String>
   [-AppName] <String>
   [-AuthenticationContextIds] <String[]>
   [[-ApiVersion] <String>]
   [<CommonParameters>]

Description

The Set-AdminPowerAppConditionalAccessAuthenticationContextIds cmdlet sets the authentication context IDs for the specified app. These values are used to check against conditional access policies set by the admin in the tenant. Use Get-Help Set-AdminPowerAppApisToBypassConsent -Examples for more detail.

Examples

EXAMPLE 1

Set-AdminPowerAppConditionalAccessAuthenticationContextIds -EnvironmentName 08b4e32a-4e0d-4a69-97da-e1640f0eb7b9 -AppName 3c2f7648-ad60-4871-91cb-b77d7ef3c239 -AuthenticationContextIds c1,c2

Sets the authentication context IDs to array with values 'c1,c2' for the specified app '3c2f7648-ad60-4871-91cb-b77d7ef3c239.'

Parameters

-ApiVersion

Api version date, defaults to "2021-02-01."

Type:String
Position:4
Default value:2021-02-01
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-AppName

App ID of the app to operate on.

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

-AuthenticationContextIds

Authentication context IDs to be associated with the app.

Type:String[]
Position:3
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-EnvironmentName

Environment ID for the app.

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