1

I have an Event Grid Trigger Azure function deployed to a function app which is in an ASE. I have created an event grid subscription with this function as an end point. The purpose of this subscription is to call this function once a blob file is created.

When I placed the file in the location, the event is supposed to call the function but I see the event is undelivered.

How can I resolve the issue?

Karthik Doure
  • 195
  • 2
  • 15
  • Before asking next question please read: https://stackoverflow.com/help/on-topic and https://stackoverflow.com/help/how-to-ask – Daniel Björk Jul 21 '20 at 14:23
  • you are not able to understand the issue? @DanielBjörk – Karthik Doure Jul 21 '20 at 14:46
  • There is not enough details in your question to be able to help you: https://stackoverflow.com/help/how-to-ask – Daniel Björk Jul 21 '20 at 14:49
  • Check now please – Karthik Doure Jul 21 '20 at 14:52
  • Place the file where? What code is listening/expected to take care of the response and so on... Help us to help you. – Daniel Björk Jul 21 '20 at 14:58
  • There is an event grid subscription that should trigger an azure function (C#) adn performs some operations whenever a file is placed in a blob folder in a container. This works fine if the function is not inside an ASE. It doesn't work if the function is in ASE. – Karthik Doure Jul 21 '20 at 15:03
  • Have a look here, same problem with more information: https://github.com/MicrosoftDocs/azure-docs/issues/44123 – Daniel Björk Jul 21 '20 at 15:08
  • I have checked this article and I didn't get much from it. – Karthik Doure Jul 21 '20 at 15:09
  • What have you tried to do to solve your problem? – Daniel Björk Jul 21 '20 at 15:10
  • Nothing. I do not know where to start with. And the article you have shared tells us that an event cannot trigger azure function which is placed in an ASE. I have posted this to see if there is any work around – Karthik Doure Jul 21 '20 at 15:12
  • No the MSFT actually said the opposite. "Hello. Because Event Grid does not support service endpoints it cannot be accessed through virtual network integration. You can however access it through the public endpoint while virtual network integration is enabled for your Function app. This should work just fine today with no additional configuration required." – Daniel Björk Jul 21 '20 at 15:13
  • If you see the last comment in the article, the user said "We can publish events to the topic, but while adding subscription it fails with 403 forbidden error, we can not create subscription when function app is integrated with vnet. After disconnecting the vnet from function app I was able to add the event grid subscription. Also when vnet is enabled events won't be delivered to the subscription(function residing inside vnet)" – Karthik Doure Jul 21 '20 at 15:17

2 Answers2

0

I found this in Azure documents :

" When your function app runs in either an App Service plan or an App Service Environment, you can use non-HTTP trigger functions. For your functions to get triggered correctly, you must be connected to a virtual network with access to the resource defined in the trigger connection. "

Maybe you can refer to this article.enter link description here

Doris Lv
  • 3,083
  • 1
  • 5
  • 14
0

I have created an eventgrid subscription that writes the event to a queue whenever a file is created in blob. I have modified exiting EvenGridTrigger function to QueueTrigger function. Both storage account and function app are in same vnet.

Karthik Doure
  • 195
  • 2
  • 15