In this example, we are going to route events from Event Grid to an Azure function. First, we need to create a new Event Grid Topic in Azure. To create this, follow these steps:
Azure Event Grid is also covered in Chapter 9, Configuring Serverless Computing.
- Navigate to the Azure portal by opening https://portal.azure.com.
- Click Create a resource, type Event Grid Topic in the search bar, and create a new Event Grid Topic.
- Add the following values:
- Name: PacktEventGridTopic.
- Subscription: Pick a subscription.
- Resource group: Create a new one and call it PacktEventGridResourceGroup.
- Location: East US.
- Event Schema: Event Grid Schema.
- Click Create.
- Next, we are going to create a new Azure function.
- Click Create a resource, type Function App in the search bar, and create a new function app.
- Add the following values:
- Subscription: Pick a subscription.
- Resource group: Select PacktEventGridResourceGroup.
- Function App Name: PacktEventGridFunction.
- Publish...