2
votes

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

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
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
That's fine, I have no problem when you will mark the answer from @huryshen and my comment too. - Roman Kiss

1 Answers

1
votes

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