Ray, Tapan Thanks for posting your question in Microsoft Q&A. I assume you created Azure Event Grid trigger in Azure Functions and when creating an event subscription to Azure Functions failed with the above error (endpoint Type as Azure Function like below).
I quickly looked at the activity ID c1d3c2a0-eb71-445f-aa63-af46609980b9
and found that it was trying to connect webhook endpoint https://{funcapp-name}.azurewebsites.net/runtime/webhooks/eventgrid
and failed with 400 bad request since it was unable to connect. I suggest you validate the endpoint URL correctly passed in Terraform or via portal as per doc: Webhook endpoint URL like eventgrid?functionName={functionname}&code={systemkey}
and also make sure it is accessible from event grid (outside the portal). Also, check if the function parameters are configured correctly as described in Examples.
If you still face the issue, please reach out to azure support team for further assistance. They have the best tools to review the backend logs and find the cause. I hope this helps and let me know if any questions.
If you found the answer to your question helpful, please take a moment to mark it as "Yes" for others to benefit from your experience. Or simply add a comment tagging me and would be happy to answer your questions.