Test-MtIntuneDiagnosticSettings
SYNOPSIS
Check the Intune Diagnostic Settings for Audit Logs.
SYNTAX
Test-MtIntuneDiagnosticSettings [-ProgressAction <ActionPreference>] [<CommonParameters>]
DESCRIPTION
Enumerate all diagnostic settings for Intune and check if Audit Logs are being sent to a destination (Log Analytics, Storage Account, Event Hub).
EXAMPLES
EXAMPLE 1
Test-MtIntuneDiagnosticSettings
Returns true if any Intune diagnostic settings include Audit Logs and are being sent to a destination (Log Analytics, Storage Account, Event Hub).
PARAMETERS
-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.
INPUTS
OUTPUTS
System.Boolean
NOTES
RELATED LINKS
https://maester.dev/docs/commands/Test-MtIntuneDiagnosticSettings