ComeçarComece de graça

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 exercício faz parte do curso

Develop for Azure Storage

Ver curso

Instruções do exercício

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.

Exercício interativo prático

Transforme a teoria em ação com um de nossos exercícios interativos

Começar o exercício