EventGrid Subscription Webhook validation handshake failure

Prajnan Kotoky 20 Reputation points
2024-07-24T03:17:21.6733333+00:00

I am setting up a new project where I need to setup EventGrid Topic subscription pointing to an API url of my Development API Management instance which is internal only. It uses commercial CA certificates as advised in here. I am getting following error when I try to create a subscription through terraform. I feel it is not able to reach the internal only url as the policy is set in APIM to validate the SubscriptionValidation POST request. I am able to test the APIM API policy by sending a POST request from my pc connected to internal network.

Is my assumption correct that we need to make our APIM instance external or is there any other way where I can still validate the url keeping APIM instance internal only?
Status: "Failed"

│ Code: "Url validation"

│Message: "Webhook validation handshake failed for https://my-dev-apim-url/api Http POST request failed with response code Unknown. For troubleshooting, visit https://aka.ms/esvalidation.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,169 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
393 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,836 Reputation points
    2024-07-24T05:37:36.8366667+00:00

    @Prajnan Kotoky Thanks for reaching out. Based on the error message you provided, it seems like the Event Grid Topic subscription is failing to validate the webhook URL for your Development API Management instance.It is possible that the issue is related to the fact that your API Management instance is internal only and is not accessible from outside your network.

    consider exposing your APIM instance externally to resolve this issue.

    do let me know incase of further queries, I would be happy to assist you.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.