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/event-grid/event-filtering.md
+66-2Lines changed: 66 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
title: Event filtering for Azure Event Grid
3
3
description: Describes how to filter events when creating an Azure Event Grid subscription.
4
4
ms.topic: conceptual
5
-
ms.date: 06/01/2022
5
+
ms.date: 09/09/2022
6
6
---
7
7
8
8
# Understand event filtering for Event Grid subscriptions
@@ -13,6 +13,70 @@ This article describes the different ways to filter which events are sent to you
13
13
* Subject begins with or ends with
14
14
* Advanced fields and operators
15
15
16
+
## Azure Resource Manager template
17
+
The examples shown in this article are JSON snippets for defining filters in Azure Resource Manager (ARM) templates. For an example of a complete ARM template and deploying an ARM template, see [Quickstart: Route Blob storage events to web endpoint by using an ARM template](blob-event-quickstart-template.md). Here's some more sections around the `filter` section from the example in the quickstart. The ARM template defines the following resources.
18
+
19
+
- Azure storage account
20
+
- System topic for the storage account
21
+
- Event subscription for the system topic. You'll see the `filter` subsection in the event subscription section.
22
+
23
+
In the following example, the event subscription filters for `Microsoft.Storage.BlobCreated` and `Microsoft.Storage.BlobDeleted` events.
By default, all [event types](event-schema.md) for the event source are sent to the endpoint. You can decide to send only certain event types to your endpoint. For example, you can get notified of updates to your resources, but not notified for other operations like deletions. In that case, filter by the `Microsoft.Resources.ResourceWriteSuccess` event type. Provide an array with the event types, or specify `All` to get all event types for the event source.
@@ -549,7 +613,7 @@ The IsNotNull operator evaluates to true if the key's value isn't NULL or undefi
549
613
```
550
614
551
615
## OR and AND
552
-
If you specify a single filter with multiple values, an **OR** operation is performed, so the value of the key field must be one of these values. Here is an example:
616
+
If you specify a single filter with multiple values, an **OR** operation is performed, so the value of the key field must be one of these values. Here's an example:
0 commit comments