Intune Diagnostic Settings should include Audit Logs
Part of Maester · Intune · Tenant administration · All checks
Invoke-Maester -TestId MT.1100Overview
Section titled “Overview”This test checks for the existence of Intune Diagnostic settings collecting Intune Audit Logs.
Test Prerequisites
Section titled “Test Prerequisites”For this test to run, the executing principal must have permissions to read Intune diagnostic settings in Azure (microsoft.intune/diagnosticSettings/read action). This typically requires at least the ‘Monitoring Reader’ or ‘Reader’ Azure role assigned at the subscription level (for example, with scope /subscriptions/$SubscriptionId), which provides access to the provider-level Intune diagnostic settings.
Alternatively, you can create a custom RBAC role with the following snippet:
# Get the subscription ID and user ID from the current context. Change if necessary.$SubscriptionId = "$((Get-AzContext).Subscription.Id)"$UserId = (Get-AzADUser -UserPrincipalName (Get-AzContext).Account.Id).Id
$CustomRole = @{ Name = 'Intune Diagnostic Settings Reader' Description = 'Can read Intune diagnostic settings only' Actions = @('microsoft.intune/diagnosticSettings/read') NotActions = @() AssignableScopes = @("/subscriptions/$SubscriptionId")}
New-AzRoleDefinition -Role $CustomRole
# Assign the custom role at subscription levelNew-AzRoleAssignment -ObjectId $UserId -RoleDefinitionName 'Intune Diagnostic Settings Reader' -Scope "/subscriptions/$SubscriptionId"Remediation action
Section titled “Remediation action”-
Check the following Microsoft learn article to Send Intune log data to Azure Storage, Event Hubs, or Log Analytics.
-
Existing diagnostic settings can be viewed within the Intune Diagnostics settings blade.
Details
Section titled “Details”Every attribute of this check
| Field | Value |
|---|---|
| Test ID | MT.1100 |
| Severity | High |
| Suite | Maester |
| Product | Intune |
| Feature | Tenant administration |
| Area | Logging and detection |
| Resource type | Tenant |
| User impact | Low |
| Implementation cost | Medium |
| MITRE ATT&CK | T1685.002 Disable or Modify Cloud Log |
| Supports controls | nist-800-53-r5:AU-12 |
| PowerShell test | Test-MtIntuneDiagnosticSettings |
| Services | Azure |
| Compatible licenses | INTUNE_A |
Source
Section titled “Source”- Test:
tests/maester/intune/Test.MT.1100.ps1 - Documentation:
tests/maester/intune/Test.MT.1100.md
About this check
- Severity
- High
- Effort to fix
- Medium
- Impact on users
- Low
- Product
- Intune
- Feature
- Tenant administration
- Area
- Logging and detection
- Suite
- Maester