LoslegenKostenlos loslegen

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.

Diese Übung ist Teil des Kurses

Develop for Azure Storage

Kurs anzeigen

Anleitung zur Übung

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.

Interaktive Übung

In dieser interaktiven Übung kannst du die Theorie in die Praxis umsetzen.

Übung starten