Azure / azure-functions-eventgrid-extension

EventGrid extension for Azure Functions
MIT License
48 stars 34 forks source link

Support event grid trigger from function without public endpoint #118

Closed JoostLambregts closed 2 months ago

JoostLambregts commented 6 months ago

I am trying to trigger an Azure Function from an EventGrid topic. The function resides in a private VNET, and does not have a public endpoint. As I currently understand it, it is not possible to send events to a resource in a private VNET when using push delivery:

https://learn.microsoft.com/en-us/azure/event-grid/consume-private-endpoints says "With push delivery isn't possible to deliver events using private endpoints. That is, with push delivery, either in Event Grid basic or Event Grid namespaces, your application can't receive events over private IP space."

From the documentation I also understand that with pull delivery it is possible: https://learn.microsoft.com/en-us/azure/event-grid/pull-delivery-overview#pull-delivery says "Pull delivery offers these event consumption benefits: (...) Consume events over a private link so that your data uses private IP space."

Am I correct in my assumtion that currently it is not possible to use the event grid trigger for Azure Functions if my function resides in a private vnet and has no public endpoints?

If my assumption is correct, I would like to request adding support for using the event grid trigger from a private context, either by supporting pull delivery or by some other means. We are currently in the position of having to replace all our event grid topics with service bus topics, which is of course not ideal.