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

Event ID 1081Error from the Microsoft Entra authentication service

Contains the server error code and description returned by Entra ID during PRT acquisition, such as AADSTS50155 or AADSTS50126.

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

What to check

Match the AADSTS code: 50155 means device authentication failed (device deleted or disabled), 50126 means bad credentials or a password not yet synced.

Find it with PowerShell

Run on the machine that logs it.

powershell2 lines
Get-WinEvent -FilterHashtable @{ LogName = 'Microsoft-Windows-AAD/Operational'; Id = 1081 } -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/Operational log to your workspace, where it lands in the Event table.

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

Related Primary Refresh Token events

Search all 123 event IDs →