CommencerCommencer gratuitement

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.

Cet exercice fait partie du cours

Develop for Azure Storage

Afficher le cours

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.

Exercice interactif pratique

Passez de la théorie à la pratique avec l’un de nos exercices interactifs

Commencer l’exercice