|
13 | 13 | ## Subscribe to events
|
14 | 14 | First, create an event handler that will handle events from the partner. For example, create an event hub, Service Bus queue or topic, or an Azure function. Then, create an event subscription for the partner topic using the event handler you created.
|
15 | 15 |
|
16 |
| -#### Create an event handler |
| 16 | +### Create an event handler |
17 | 17 | To test your partner topic, you'll need an event handler. Go to your Azure subscription and spin up a service that's supported as an [event handler](../event-handlers.md) such as an [Azure Function](../custom-event-to-function.md). For an example, see [Event Grid Viewer sample](../custom-event-quickstart-portal.md#create-a-message-endpoint) that you can use as an event handler via webhooks.
|
18 | 18 |
|
19 |
| -#### Subscribe to the partner topic |
| 19 | +### Subscribe to the partner topic |
20 | 20 | Subscribing to the partner topic tells Event Grid where you want your partner events to be delivered.
|
21 | 21 |
|
22 | 22 | 1. In the Azure portal, type **Event Grid Partner Topics** in the search box, and select **Event Grid Partner Topics**.
|
23 | 23 | 1. On the **Event Grid Partner Topics** page, select the partner topic in the list.
|
24 | 24 |
|
25 |
| - :::image type="content" source="./media/subscribe-to-partner-events/select-partner-topic.png" lightbox="./media/subscribe-to-partner-events/select-partner-topic.png" alt-text="Image showing the selection of a partner topic."::: |
| 25 | + :::image type="content" source="./media/subscribe-to-partner-events/select-partner-topic.png" lightbox="./media/subscribe-to-partner-events/select-partner-topic.png" alt-text="Screenshot showing the selection of a partner topic on the Event Grid Partner Topics page."::: |
26 | 26 | 1. On the **Event Grid Partner Topic** page for the partner topic, select **+ Event Subscription** on the command bar.
|
27 | 27 |
|
28 |
| - :::image type="content" source="./media/subscribe-to-partner-events/select-add-event-subscription.png" alt-text="Image showing the selection of Add Event Subscription button on the Event Grid Partner Topic page."::: |
| 28 | + :::image type="content" source="./media/subscribe-to-partner-events/select-add-event-subscription.png" alt-text="Screenshot showing the selection of Add Event Subscription button on the Event Grid Partner Topic page."::: |
29 | 29 | 1. On the **Create Event Subscription** page, do the following steps:
|
30 | 30 | 1. Enter a **name** for the event subscription.
|
31 | 31 | 1. For **Filter to Event Types**, select types of events that your subscription will receive.
|
32 | 32 | 1. For **Endpoint Type**, select an Azure service (Azure Function, Storage Queues, Event Hubs, Service Bus Queue, Service Bus Topic, Hybrid Connections. etc.), or webhook.
|
33 | 33 | 1. Click the **Select an endpoint** link. In this example, let's use Azure Event Hubs destination or endpoint.
|
34 | 34 |
|
35 |
| - :::image type="content" source="./media/subscribe-to-partner-events/select-endpoint.png" lightbox="./media/subscribe-to-partner-events/select-endpoint.png" alt-text="Image showing the configuration of an endpoint for an event subscription."::: |
| 35 | + :::image type="content" source="./media/subscribe-to-partner-events/select-endpoint.png" lightbox="./media/subscribe-to-partner-events/select-endpoint.png" alt-text="Screenshot showing the configuration of an endpoint for an event subscription."::: |
36 | 36 | 1. On the **Select Event Hub** page, select configurations for the endpoint, and then select **Confirm Selection**.
|
37 | 37 |
|
38 |
| - :::image type="content" source="./media/subscribe-to-partner-events/select-event-hub.png" lightbox="./media/subscribe-to-partner-events/select-event-hub.png" alt-text="Image showing the configuration of an Event Hubs endpoint."::: |
| 38 | + :::image type="content" source="./media/subscribe-to-partner-events/select-event-hub.png" lightbox="./media/subscribe-to-partner-events/select-event-hub.png" alt-text="Screenshot showing the configuration of an Event Hubs endpoint."::: |
39 | 39 | 1. Now on the **Create Event Subscription** page, select **Create**.
|
40 | 40 |
|
41 |
| - :::image type="content" source="./media/subscribe-to-partner-events/create-event-subscription.png" alt-text="Image showing the Create Event Subscription page with example configurations."::: |
| 41 | + :::image type="content" source="./media/subscribe-to-partner-events/create-event-subscription.png" alt-text="Screenshot showing the Create Event Subscription page with example configurations."::: |
42 | 42 |
|
0 commit comments