Skip to content

Commit 3f2e774

Browse files
committed
Set filters using Portal, PowerShell, or CLI
1 parent 4d56a2d commit 3f2e774

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed
61.7 KB
Loading

articles/service-bus-messaging/service-bus-filter-examples.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,30 @@
22
title: Set subscriptions filters in Azure Service Bus | Microsoft Docs
33
description: This article provides examples for defining filters and actions on Azure Service Bus topic subscriptions.
44
ms.topic: how-to
5-
ms.date: 02/23/2024
5+
ms.date: 07/18/2024
66
ms.devlang: csharp
77
ms.custom: devx-track-dotnet
88
---
99

1010
# Set subscription filters (Azure Service Bus)
1111
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).
1212

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+
1329
## Filter on system properties
1430
To refer to a system property in a filter, use the following format: `sys.<system-property-name>`.
1531

0 commit comments

Comments
 (0)