Event grid Domain to Webhook endpoint connection

Pratima Patil 50 Reputation points
2025-03-31T06:39:56.1633333+00:00

I want a Subscriber Webhook endpoint to access the events from my Event grid domain. This subscriber url is in a private network Vnet A (MIP-vnet). I have created a private endpoint for my Event grid domain in Vnet B (DBcore-vnet). Vnet A & Vnet B are peered. Also I have created virtual network link for communication of event grid domain within both the vnets via a private ip.
Below are my settings on event grid domain side-

User's image

User's image

User's image

User's image

With this setup, will I be able to make my event grid domain accessible for the subscriber webhook url? Please let me know if I am missing anything, or have done anything incorrect.

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
439 questions
0 comments No comments
{count} votes

Accepted answer
  1. Luis Arias 8,591 Reputation points
    2025-03-31T08:37:05.5633333+00:00

    Hello Pratima Patil,

    Your setup is almost there, but there’s one important catch. While your Event Grid Domain has a private endpoint in Vnet B (DBcore-vnet) for secure inbound communication, outbound communication (like delivering events to your webhook in Vnet A) works a bit differently. Event Grid always sends events outbound using public endpoints, even if the domain itself is accessed via private networking. This means your current setup won’t let the Event Grid Domain directly communicate with the private webhook in Vnet A.

    Basically, for everything to work right, your private webhook endpoint needs to be reachable by Event Grid's public IPs. There are a few different ways you can set that up.

    • If your endpoint is open to the public, just setting up IP allowlisting for Event Grid's IP range is the easiest way to go.
    • You could use Azure API Management to create a secure connection between Event Grid and your private webhook. (This is not the best solution in terms of cost.)
    • Another way is to create an Azure Function or Logic App inside your private network that gets the events and passes them on to your webhook. (This is not the best solution in term of effort but It works if you need to keep the traffic in your internal network)

    In short, with your current setup, the Event Grid Domain won’t fully be able to reach the private webhook, since outbound traffic doesn’t use private networking. You’ll need one of the above workarounds to get this.

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.