AuditLogs joined with AADServicePrincipalSignInLogs
3 rules join them.
Keys
AppID == AppID1
TargetId == SpId1
TargetSPId == ServicePrincipalId1
Time conditions after the join
SigninTime between (ChangeTime .. (ChangeTime + 24h))1
Rules
Rules are from Azure/Azure-Sentinel (MIT licence) at commit 9ea9f7c. VeriKQL stores facts its parser read from each rule and links the rule; it does not copy rule text. Counts are what the rules do: practice, not guidance, and not Microsoft's recommendation.