You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/service-bus-messaging/service-bus-filter-examples.md
+17-1Lines changed: 17 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,30 @@
2
2
title: Set subscriptions filters in Azure Service Bus | Microsoft Docs
3
3
description: This article provides examples for defining filters and actions on Azure Service Bus topic subscriptions.
4
4
ms.topic: how-to
5
-
ms.date: 02/23/2024
5
+
ms.date: 07/18/2024
6
6
ms.devlang: csharp
7
7
ms.custom: devx-track-dotnet
8
8
---
9
9
10
10
# Set subscription filters (Azure Service Bus)
11
11
This article provides a few examples on setting filters on subscriptions for Service Bus topics. For conceptual information about filters, see [Filters](topic-filters.md).
12
12
13
+
## Use Azure portal
14
+
15
+
To set subscription filters in the Azure portal, use the **Filters** section of the **Service Bus Subscription** page.
16
+
17
+
:::image type="content" source="./media/service-bus-filter-examples/filters-section.png" alt-text="Screenshot that shows the Service Bus Subscription page with the Filters section highlighted." lightbox="./media/service-bus-filter-examples/filters-section.png":::
18
+
19
+
## Use Azure CLI
20
+
21
+
Use the [`az servicebus topic subscription rule create`](/cli/azure/servicebus/topic/subscription/rule) to create a rule or filter on a subscription.
22
+
23
+
## Use Azure PowerShell
24
+
25
+
Use the [`Set-AzServiceBusRule`](/powershell/module/az.servicebus/set-azservicebusrule) to create a rule or filter on a subscription.
26
+
27
+
28
+
13
29
## Filter on system properties
14
30
To refer to a system property in a filter, use the following format: `sys.<system-property-name>`.
0 commit comments