ComenzarEmpieza gratis

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.

Este ejercicio forma parte del curso

Develop for Azure Storage

Ver curso

Instrucciones del ejercicio

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.

Ejercicio interactivo práctico

Pon en práctica la teoría con uno de nuestros ejercicios interactivos

Empezar ejercicio