How to trigger a container app webhook that is running inside a privat vnet by an event grid webhook subscription?

Simon Blomsterlund 0 Reputation points
2025-02-26T10:48:22.26+00:00

I have a container app running inside a private vnet. I want to set up an event grid subscription webhook to trigger this app without opening up the container app to requests from the public internet.

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
426 questions
Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
550 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshu katara 14,330 Reputation points MVP
    2025-02-26T11:35:30.58+00:00

    Hello Simon , Welcome to MS Q&A

    To set up an Event Grid subscription webhook for a container app running inside a private VNet without exposing it to the public internet, you can follow these steps:

    Create a Private Endpoint: Establish a private endpoint for your Azure Container App. This allows secure access without public exposure.

    Configure Event Grid: When creating an Event Grid subscription, specify the private endpoint as the webhook endpoint. This ensures events are delivered directly over the private network.

    Ensure Network Configuration: Verify that the necessary network configurations are in place to allow Event Grid to communicate with your container app through the private endpoint.

    Test the Setup: After setting up the subscription, test it to ensure events are delivered to your container app as expected.

    For more detailed guidance, you can refer to the following Microsoft documentation:

    Kindly accept answer if it helps

    Pls let us know if any ques

    Thanks,

    Deepanshu

    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.