Query Details
id: 7b8c9d10-aaaa-4001-8001-000000000002
name: HUNT - Enrollment spikes by hour
description: Hourly baseline of enrollments vs current, to visualize anomalous enrollment bursts.
requiredDataConnectors:
- connectorId: AzureMonitor(IntuneLogs)
dataTypes:
- IntuneAuditLogs
tactics:
- Persistence
relevantTechniques:
- T1098.005
query: |
IntuneAuditLogs
| where TimeGenerated > ago(14d)
| where OperationName has "enroll"
| summarize Enrollments = count() by bin(TimeGenerated, 1h)
| extend Mean = toreal(series_stats_dynamic(todynamic(Enrollments)).avg)
| order by TimeGenerated desc
version: 1.0.0
This query is designed to monitor and visualize unusual spikes in device enrollments over time using data from Intune audit logs. Here's a simple breakdown:
The purpose of this query is to help identify any unusual bursts in enrollment activity, which could indicate potential security issues or operational anomalies.

David Alonso
Released: April 22, 2026
Tables
Keywords
Operators