CodexBloom - Programming Q&A Platform

Azure Function not triggering on Blob Storage updates with event grid - how to troubleshoot?

πŸ‘€ Views: 17 πŸ’¬ Answers: 1 πŸ“… Created: 2025-06-10
azure-functions event-grid blob-storage C#

I'm experimenting with I'm converting an old project and I'm updating my dependencies and I've looked through the documentation and I'm still confused about I'm working with an scenario where my Azure Function, which is supposed to trigger on updates to Blob Storage via Event Grid, is not executing as expected... My function is defined in C# and uses the latest version of the Azure Functions SDK (v3.0). I set up the Event Grid subscription, but I suspect that the events are not reaching my function. Here’s the relevant part of my code: ```csharp using Microsoft.Azure.WebJobs; using Microsoft.Extensions.Logging; public class BlobTriggerFunction { [FunctionName("BlobTriggerFunction")] public void Run([EventGridTrigger] EventGridEvent eventGridEvent, ILogger log) { log.LogInformation($"Event received: {eventGridEvent.EventType}"); // Process the blob event } } ``` I have also configured the Event Grid subscription properly in the Azure portal and verified that the endpoint is pointing to my function's URL. However, when I upload a file to the Blob Storage, I do not see any logs in Application Insights, which suggests the function is not being called. I’ve checked the following: - The Event Grid subscription status is 'Enabled'. - I can manually invoke the function via the URL and confirm it works. - I've added logging to see if the function gets triggered, but nothing appears. - I verified that my storage account and function app are in the same region. I even tried to monitor the Event Grid metrics, but I don't see any events showing up for my Blob Storage. Could this be an scenario with the event schema or is there something else that I'm missing? Any insights on how to debug this further would be greatly appreciated! How would you solve this? Any help would be greatly appreciated!