
Dear @Gor,
Thank you so much for contacting Microsoft Q&A.
Based on your description, I understand that you had a problem with Microsoft 365 Management Activity API webhook validation when using domain names behind AWS Application Load Balancers (ALBs). Also, you have tried to do many steps for this setup:
- Works with IP address during Microsoft’s validation.
- Fails with domain name, returning a 400 Bad Request during validation.
- Receives event notifications successfully after subscription is created.
- No changes were made to ALB, DNS, or TLS certs recently.
During my research, I find that there are several reasons that may cause it:
1.Microsoft may be using stale or cached DNS records during validation.
2.Validation requests might be routed differently than event notifications.
3.Microsoft’s validation logic is stricter, possibly rejecting responses due to:
- TLS handshake issues.
- Unexpected headers or content types.
- DNS resolution failures or mismatches.
In this situation, I suggest that you should re-check ALB Listener rules and target group health. This is for ensuring the listener is correctly configured for HTTPS and confirming the target group health checks are passing.
Also, I would like to ask for more details of your issue, please kindly provide me a screenshot of the 400 error that you mentioned. Besides that, I want to know that when you use Postman and curl, is it still work normally now? If not, please kindly provide a screenshot as well.
Additionally, you mentioned that it worked with the IP. Therefore, I advise that you can use it as a temporary method while you are checking it again.
Also, I find some articles that you can consult for this feature:
- Troubleshooting the Office 365 Management Activity API | Microsoft Learn
- Office 365 Management Activity API reference | Microsoft Learn
I hope this information can help you with your concern.
Wish you a pleasant day!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.