Test-MtCaAllAppsExists
SYNOPSIS
Section titled “SYNOPSIS”Checks if the tenant has at least one fallback policy targeting All Apps and All Users.
SYNTAX
Section titled “SYNTAX”Test-MtCaAllAppsExists [-SkipCheckAllUsers] [-ProgressAction <ActionPreference>] [<CommonParameters>]DESCRIPTION
Section titled “DESCRIPTION”Microsoft recommends creating at least one Conditional Access policy targeting all cloud apps and ideally should be enabled for all users.
EXAMPLES
Section titled “EXAMPLES”EXAMPLE 1
Section titled “EXAMPLE 1”Test-MtCaAllAppsExistsReturns true if at least one Conditional Access policy exists that targets all cloud apps and all users.
EXAMPLE 2
Section titled “EXAMPLE 2”Test-MtCaAllAppsExists -SkipCheckAllUsersReturns true if at least one Conditional Access policy exists that targets all cloud apps; the check for all users is skipped.
PARAMETERS
Section titled “PARAMETERS”-SkipCheckAllUsers
Section titled “-SkipCheckAllUsers”Do not check for All Users target in policy.
Type: SwitchParameterParameter Sets: (All)Aliases:
Required: FalsePosition: 1Default value: FalseAccept pipeline input: FalseAccept wildcard characters: False-ProgressAction
Section titled “-ProgressAction”Determines how PowerShell responds to progress updates generated by a script, cmdlet, or provider, such as the progress bars generated by Write-Progress.
Type: ActionPreferenceParameter Sets: (All)Aliases: proga
Required: FalsePosition: NamedDefault value: NoneAccept pipeline input: FalseAccept wildcard characters: FalseCommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.