Get startedGet started for free

Trigger Azure Function from Event Grid

Cipher Coffee wants downstream automation to run immediately whenever a new blob is uploaded. You will wire Azure Event Grid to call a pre-made Azure Function directly when a blob is created, then validate that the function receives the event payload.

This exercise is part of the course

Develop for Azure Storage

View Course

Exercise instructions

Add an Azure Event Grid trigger function named "OnBlobCreated" in your Function App.,Create an Event Subscription on the Storage account named "blob-created-to-function" with System Topic Name "function-events-topic" that targets the "OnBlobCreated" function and filters for the Blob Created event type.,Create a container named "events-in" and upload a blob to trigger the event.,Confirm the function invocation appears in Monitor with logs showing Microsoft.Storage.BlobCreated. Screenshot showing an Event Grid subscription on a Storage account targeting an Azure Function endpoint named OnBlobCreated, plus a successful function invocation in Monitor with eventType Microsoft.Storage.BlobCreated.

Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise