Send a request from APIM to event grid

Sairam Ganji 1 Reputation point
2023-09-21T13:45:13.62+00:00

Hey Team,

I am looking a solution for below requirement.

Client is sending a request to Apim operation with a request body. I need to send the request to event grid topic with the same request body using a APIM operation (Like we need to write a policy to send a request to event grid)

Further Azure Functions might be the once how will be subscribed to an event
(Its the later part though, but suggestions on this is also welcomed)

Any suggestion or links for reference will be helpful

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,845 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Pramod Valavala 20,601 Reputation points Microsoft Employee
    2023-09-21T14:56:35.24+00:00

    @Sairam Ganji You could use the send-one-way-request or send-request policies if you need to send the request to Azure Event Grid, while forwarding the request to your backend.

    If you need an endpoint to just a request to Azure Event Grid, you could simply setup the custom topic endpoint as a backend directly.

    For processing the events, you could directly leverage the Azure Functions Event Grid Binding.