| title | Create a subscription to an Event Grid namespace topic |
|---|---|
| description | Include file with steps to create a subscription to an Azure Event Grid namespace topic. |
| author | sonalika-roy |
| ms.service | azure-event-grid |
| ms.topic | include |
| ms.date | 06/19/2024 |
| ms.author | sonalikaroy |
| ms.custom | include file |
-
If you are on the Topics page of your Event Grid namespace in the Azure portal, select your topic from the list of topics. If you are on the Topics page, follow instructions from create, view, and manage a namespace topics to identify the topic you want to use to create the event subscription.
:::image type="content" source="../media/create-view-manage-event-subscriptions/select-topic.png" alt-text="Screenshot showing Event Grid topics page with a topic selected." lightbox="../media/create-view-manage-event-subscriptions/select-topic.png":::
-
On the Event Grid Namespace Topic page, select Subscriptions option in the Entities section on the left menu.
-
On the Subscriptions page, select "+ Subscription" button on the command bar.
:::image type="content" source="../media/create-view-manage-event-subscriptions/event-subscription-create.png" alt-text="Screenshot showing Event Grid event subscription create." lightbox="../media/create-view-manage-event-subscriptions/event-subscription-create.png":::
-
In the Basics tab, follow these steps:
-
Enter a name for the subscription you want to create
-
Confirm that the delivery schema is set Cloud Events v1.0.
-
Confirm that the delivery mode is set to Queue (pull mode).
-
Select Next: Filters at the bottom of the page.
:::image type="content" source="../media/create-view-manage-event-subscriptions/event-subscription-create-basics.png" alt-text="Screenshot showing Event Grid event subscription create basics.":::
-
-
In the Filters tab, add the names of the event types you want to filter in the subscription and add context attribute filters you want to use in the subscription. Then, select Next: Additional features at the bottom of the page.
:::image type="content" source="../media/create-view-manage-event-subscriptions/event-subscription-create-filters.png" alt-text="Screenshot showing Event Grid event subscription create filters.":::
-
In the Additional features tab, you can specify the event retention, maximum delivery count, lock duration, and dead-lettering settings.
:::image type="content" source="../media/create-view-manage-event-subscriptions/event-subscription-create-additional-features.png" alt-text="Screenshot showing Event Grid event subscription create additional features.":::
-
Select Create to create the event subscription.