azureblog.co.uk
← cd ~/events
// events/1006 · Primary Refresh Token

Event ID 1006PRT acquisition started

In the AAD analytic log, marks the start of the Primary Refresh Token (PRT) acquisition flow at sign-in.

LogMicrosoft-Windows-AAD/Analytic
SourceMicrosoft-Windows-AAD
AreaPrimary Refresh Token

What to check

Enable the analytic log, then read every AAD event between 1006 and 1007 as part of the same PRT attempt.

Find it with PowerShell

Run on the machine that logs it. Analytic and Debug logs are hidden and turned off by default: in Event Viewer choose View › Show Analytic and Debug Logs, then enable the log.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-AAD/Analytic'; Id = 1006 } -Oldest -MaxEvents 50 |
    Format-List TimeCreated, Id, Message

Hunt for it in Sentinel or Log Analytics

This works once a data collection rule sends the Microsoft-Windows-AAD/Analytic log to your workspace, where it lands in the Event table.

kql5 lines
Event
| where TimeGenerated > ago(7d)
| where EventLog == "Microsoft-Windows-AAD/Analytic" and EventID == 1006
| project TimeGenerated, Computer, Source, RenderedDescription
| order by TimeGenerated desc

Related Primary Refresh Token events

Search all 123 event IDs →