Skip to main content

Posts

Showing posts from April, 2021

EVENT GRID

Pushing messages to system topics We do this when the subscribers are azure resources.  Create an azure function that gets triggered when txt files are uploaded to a blob container named container1. Steps: 1. Create a storage account 2. Create a 2 containers , container1 and container2. 3. Create an azure function Create a function app and create an event grid triggered function in it. 4. Create an event subscription for the storage account Create filtering rules in the subscription such that only specific events trigger the azure function. When creating the new subscription we need to create a filter such that only txt files uploaded to container1 trigger the event which in turn would invoke the azure function. When filtering message based on the container prepend  /blobServices/default/containers/{containername} 5. Upload blobs to container1 and 2 of different file formats and notice that only txt file uploaded to container1 trigger the function. We can do the same thing by ...