Share via


Test-PartnerSecurityRequirement

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

Syntax

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.

Type:EnvironmentName
Aliases:EnvironmentName
Accepted values:AzureCloud, AzureChinaCloud, AzureGermanCloud, AzurePPE, AzureUSGovernment
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-UseDeviceAuthentication

Use device code authentication instead of a browser control.

Type:SwitchParameter
Aliases:DeviceCode, DeviceAuth, Device
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Object