Test-MtCaAllAppsExists
SYNOPSIS
Checks if the tenant has at least one fallback policy targetting All Apps and All Users.
SYNTAX
Test-MtCaAllAppsExists [-SkipCheckAllUsers] [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Microsoft recommends creating at least one conditional access policy targetting all cloud apps and ideally should be enabled for all users.
EXAMPLES
EXAMPLE 1
Test-MtCaAllAppsExists
Returns true if at least one conditional access policy exists that targets all cloud apps and all users.
EXAMPLE 2
Test-MtCaAllAppsExists -SkipCheckAllUsers
Returns true if at least one conditional access policy exists that targets all cloud apps and all users, but skips the check for all users.
PARAMETERS
-SkipCheckAllUsers
Do not check for All Users target in policy.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
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.