0

I have an Azure Function using an EventGridTrigger and created an event subscription for it in my EventGrid Domain Topic.

In the event subscription, I've filtered event types on Service.Event.Foo, these works fine and my function executes. My question is about the other events which also trigger it to execute, mainly the two below events:

Microsoft.Resources.ResourceActionSuccess

Microsoft.Resources.ResourceWriteSuccess

Why are these not filtered by my event type? Looking at the look it seems it related to something happening inside the Event Grid, logging the data I get a lot of stuff with authorization and claims and my own identity principle that I'm logged into Azure with.

What are causing these events?

Why don't my event-type filter remove them?

How can I get rid of them, other than filtering them directly in my Azure Function?

Edit: I can add that these event's do not appear in my deadletter storage, there only my Service.Event.Foo appears if i shut down my function.

CodeMonkey
  • 3,418
  • 4
  • 30
  • 53
  • Did you subscribed for Resource Group and sharing the same event handler endpoint? Those event types related to the https://learn.microsoft.com/en-us/azure/event-grid/event-schema-resource-groups, have a look at other properties of these event messages such as *subject*, *topic*, *resourceUri* and *operationName* – Roman Kiss Oct 08 '19 at 17:33
  • Ahh ok, thank you, talked to my colleague and had been fooling around with cloud shell trying to setup an event subscription he might have accidentally created the subscription on the function for the resource group, i was only looking at the subscriptions on my own event grid! – CodeMonkey Oct 09 '19 at 05:08
  • @RomanKiss I think I’ll just copy your comment and put it in an answer. Or maybe you should :) – Aran Mulholland Oct 10 '19 at 00:42
  • @CodeMonkey Hi, if you solve the problem. You can mark Roman's suggestion as the answer of this question, this will help others quickly find where the question is. – Cindy Pau Oct 10 '19 at 07:23

1 Answers1

0

Did you subscribed for Resource Group and sharing the same event handler endpoint? Those event types related to the Azure Event Grid event schema for resource groups.

Have a look at other properties of these event messages such as subject, topic, resourceUri and operationName.

Roman Kiss
  • 7,925
  • 1
  • 8
  • 21