question

russellgove avatar image
0 Votes"
russellgove asked Jerryzy edited

Microsoft 365 Management API says all notifications have failed

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?


not-supported
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@russellgove based on the details shared, I believe this is more related to the Management APIs than Azure Functions.

Also, with consistent failures, according to the docs, the subscription should be cancelled. Do you observe this?


0 Votes 0 ·

HI,
I could not find a tag for Management APIs.

The subscription has not been canceled. It just keeps calling the callback repeatedly with the same content.

0 Votes 0 ·

0 Answers