CommencerCommencer gratuitement

Set up Event Grid to react to Blob Creation

Cipher Coffee wants to automate downstream actions whenever new files are added to Blob Storage. You will configure Azure Event Grid to emit a notification on each blob creation and route it to a Storage Queue for processing. You will create a destination queue, subscribe the Storage account to the Blob Created event, upload a test blob, and verify that an event message appears in the queue.

Cet exercice fait partie du cours

Develop for Azure Storage

Afficher le cours

Instructions

In your Storage account, navigate to Data storage, then select Queues and create a queue named "blob-events".,Go to Events and create a new Event Subscription named "blob-created-to-queue" with System Topic Name "storage-events-topic" that routes Blob Created events to the "blob-events" queue using Storage Queues as the endpoint type.,Create an "images" container in Containers and upload any test file to trigger the event.,Return to the "blob-events" queue and use Peek messages to confirm the event notification was delivered. Screenshot showing Event Grid subscription on a Storage account with Blob Created selected and endpoint set to a Storage Queue named blob-events, plus a queued event message.

Exercice interactif pratique

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

Commencer l’exercice