Event Grid Topic: How to filter array values?

Leonid Andreev 21 Reputation points
2022-08-23T13:04:27.713+00:00

I created a subscription for Event Grid Topic and want to filter events by Advanced Filter.

as we see in the documentation the key can be an array.

234039-image.png

My event looks like with data.Data[] array:

234065-image.png

So I want to figure out how can I filter events if data contains array values.

such filters don't work for me (I even try something like data.data.[].status, data.Data.status, data.data.[*].status and so on):

234094-image.png

Is it really possible to filter events by array values?

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
454 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 70,936 Reputation points Moderator
    2022-09-05T07:17:01.6+00:00

    @Leonid Andreev Thanks for reaching out. As of now Event Grid doesn't support filtering on an array of values today. If an incoming event has an array value for the advanced filter's key, the matching operation fails. The incoming event ends up not matching with the event subscription.

    The same is documented here.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.