Hi,
I am working on some azure functions to process Microsoft 365 audit logs as outlined at https://docs.microsoft.com/en-us/office/office-365-management-api/office-365-management-activity-api-reference.
The docs there say "The notification is made as an HTTP POST over TLS (TLS 1.0 and later versions) to the specified webhook address. If the webhook configuration includes an auth ID, we will send it as an HTTP header: Webhook-AuthID. Any response other than HTTP 200 OK will be considered a failure and the notification will be retried. "
I have configured an azure function to be notified when content available and i am successfully recieving and processing the notifications. The Azure function is responding with a HTTP 200 ( return new OkObjectResult("OK");) within 2 seconds.
Yet when i ask the api for a list of notifications it has sent by calling /subscriptions/notifications?contentType={ContentType}&startTime={0}&endTime={1} the response says all notifications have a status of failed.
How do i properly respond to the callback from my azure function so that the notifications do not show a status of failed?