Open In App

How To Set Up Azure Event Grid?

Event Grid is like a notification service that lets different computer programs (like apps or services) talk to each other and send messages when something happens. It can be used when you want to automatically trigger a reaction in one program based on something happening in another program.

Azure Event Grid 

Event Grid is a highly scalable, serverless mediator that you can use to connect different applications through events. To subscriber destinations like applications, Azure services, or any other endpoint to which Event Grid has network access, events are provided by Event Grid. Other applications, SaaS services, and Azure services may be the origin of those occurrences.



Key Words

 

Event Sources

Event Handlers

These Azure services can currently handle events from Event Grid:

Features of AZURE EVENT GRID

Applications of AZURE EVENT GRID

  1. Serverless Application Architecture: Azure Event Grid is useful for serverless applications where you want to connect different parts of your application together. For example, you can use Event Grid to trigger an analysis function to start when a new video is uploaded to your blob storage.
  2. Ops Automation: Event Grid helps you automate tasks and make sure policies are followed. For example, you can use it to let Azure Automation know when a new virtual machine or database is created in Azure SQL. You can then use this information to check that the service is set up correctly, add information to your tools, label virtual machines, or create work items automatically.
  3. Application Integration: Event Grid helps your app communicate with other services. For instance, you can create a topic to send your app’s event data to Event Grid, which will ensure that the data is reliably delivered and routed to the correct place. You can also use Event Grid along with Logic Apps to process data without having to write any code.

There are two distinct methods for setting up Azure Event Grid:



  1. Utilizing built-in events in Azure via Logic Apps to promptly react to changes in the blob.
  2. Generating a custom Event by employing Logic Apps to dispatch customized events to our event grid topic.

In this article, we will utilize built-in events. For this, we perform the following actions,

Step 1: Navigate to your Azure portal.

 

Step 2: Click on the Create resource option. You will be listed with different resources that can be deployed on Azure.

 

Step 3: Type in a storage account in the search bar. Click on the Create option.

 

Step 4: You will be prompted to fill in details about the virtual network we wish to create. 

 

Step 5: In the basics tab, fill in the required details

 

Step 6: Click Review and on the next screen click on Create option.

 

Step 7: Go to Create a Resource and type in the logic app in the search bar and then click on the Create option.

Step 8: You will be prompted to fill in details about the Logic App we wish to create.

 

Step 9: Click on Review and Create and on the next window click on the Create option.

Step 10: Go to Resource Groups from the left menu. Here we can see all our resources.

 

Note: Before proceeding to the next step, ensure that the following prerequisite is completed. This process needs to be done only once.

  1. Search for Subscription and select it.
  2. Go to Resource Providers.
  3.  Search for “eventgrid” and check if it is already registered.
  4. If it is not yet registered, click on the “Register” button to register the Event Grid Resource Provider.
  5. Once registered, you can proceed to use Event Grid.

Step 11: Creating a storage container

 

 

Step 12: From the left-hand menu, navigate to the resource groups and select the Logic App that you want to use.

 

 

Step 13: Now, click on the workflow you created.

 

 

 

Step 14: Under When a resource event occurs,

 

Step 15: Upload files to a container in your storage account by selecting the container and dragging/dropping or browsing for files. Then click on upload.

 

Step 16:  Now we go back to our blob, and click on Refresh.

 


Article Tags :