Share via


Set-AdminPowerAppConditionalAccessAuthenticationContextIds

Sets the authentication context ID for the specified app.

Syntax

Default (Default)

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."

Parameter properties

Type:String
Default value:2021-02-01
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:4
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-AppName

App ID of the app to operate on.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-AuthenticationContextIds

Authentication context IDs to be associated with the app.

Parameter properties

Type:

String[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:3
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

-EnvironmentName

Environment ID for the app.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:True
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.