Share via


Test-PartnerSecurityRequirement

Tests the account, used during authentication, if multi-factor authentication was enforced.

Syntax

Default (Default)

Test-PartnerSecurityRequirement
    [-Environment <EnvironmentName>]
    [-UseDeviceAuthentication]
    [<CommonParameters>]

Description

Tests the account, used during authentication, if multi-factor authentication was enforced. This test is done by checking for the MFA value in the AMR claim.

Examples

Example 1

PS C:\> Test-PartnerSecurityRequirement

Tests the account, used during authentication, if multi-factor authentication was enforced. This test is done by checking for the MFA value in the AMR claim.

Parameters

-Environment

The environment use for authentication.

Parameter properties

Type:EnvironmentName
Default value:None
Accepted values:AzureCloud, AzureChinaCloud, AzureGermanCloud, AzurePPE, AzureUSGovernment
Supports wildcards:False
DontShow:False
Aliases:EnvironmentName

Parameter sets

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

-UseDeviceAuthentication

Use device code authentication instead of a browser control.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:DeviceCode, DeviceAuth, Device

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
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.

Inputs

None

Outputs

System.Object