3

So using VS 2019, I created a Blob Trigger function (v2) and deployed it to Azure, against a blob storage (v2). If I upload a file the function is executed and the file in the blob storage gets processed successfully. So all good here.

I am now looking to create an Azure Event Grid subscription (via the Azure portal) to attach to the trigger and the storage, however, I cannot see the function name.

enter image description here

After selecting the Subscription, Resource Group & Function App in the right-side blade, the Slot dropdown only has one value i.e. 'Production'. Upon selecting 'Production', the Function dropdown is empty and neither does it allow me to type in a function name.

Has anyone faced this before? I would appreciate any insights in this matter.

Thanks & Regards, Noel

Noel
  • 373
  • 3
  • 15
  • 1
    The event handler resource must be the EventGridTrigger function, not the BlobTrigger. So, create the empty EventGridTrigger in the portal and you should see in the combobox this function. – Roman Kiss Dec 18 '19 at 17:48
  • Roman & @huryshen, Thank you for your responses. That worked pretty well. I would like to mark Roman's response as the answer since it was the first response but I cannot do that as it is a comment. Roman, would you like to post your response as an answer so that I can mark it? – Noel Dec 20 '19 at 13:52
  • That's fine, I have no problem when you will mark the answer from @huryshen and my comment too. – Roman Kiss Dec 20 '19 at 14:06

1 Answers1

1

As Roman said in comment, you just need to create a EventGridTrigger function in your function app. And then we can select it in the Function dropdown. enter image description here

Hury Shen
  • 14,948
  • 1
  • 9
  • 18
  • @Roman & HuryShen.....Once again Thank you very much for your responses. Just wanted to leave a note here.....I could not create the EventGridTrigger from the portal as I had created the BlobTrigger function through VS2019. I had to go back to VS2019, create the EventGridTrigger there and publish it. I read somewhere that you can use either the one of the 2 i.e. Azure Portal or VS2019. Thanks. – Noel Dec 20 '19 at 14:11