Resolved! Thanks everyone watching this question:
AADProvisioningLogs
| where ResultType == "Failure"
| where SourceIdentity != ""
| project tostring(parse_json(SourceIdentity).Name), tostring(parse_json(StatusInfo).Reason), TimeGenerated
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi all,
I am looking to set up an alert to notify me of a Failure provisioning - this would be between Azure AD and SAP for example.
I found the logs analytics query which works fine but I would like to fine tune it so I can see the username of the failed export:
// Provisioning errors
// Shows the count per error code and when were they last seen.
AADProvisioningLogs
| where ResultType == "Skipped"
| where SourceIdentity!=""
| project SourceIdentity, TimeGenerated, Id
| extend Name_ = tostring(parse_json(SourceIdentity).Name)
I can see the Userprincipalname inside SourceTarget/Details (on the results) but I cannot find a query to pull this out and send me the alert.
Basically I would like to be alerted about the username, the groups the user is in and the target system name (my AAD is iDP for lots)
I guess I really need some working examples to get used to KQL :)
Thanks, M
Resolved! Thanks everyone watching this question:
AADProvisioningLogs
| where ResultType == "Failure"
| where SourceIdentity != ""
| project tostring(parse_json(SourceIdentity).Name), tostring(parse_json(StatusInfo).Reason), TimeGenerated