pgbfnf
pgbfnf

Reputation: 3

New to Azure Event Grid - trying to react to *any* object being created, deleted or modified

I'm completely new to Event Grid, but have been tasked with creating a way to track anytime any object is created, deleted, or modified within a subscription (additional noise filtering to be added later). Does this sound like I'm on the right track?

Logic App -> Workflow Designer:

When a resource event occurs:
Resource Type - Microsoft.Resources.Subscriptions
Resource Name - (subscription being watched)
Event Type Item - 1
Microsoft.Resources.ResourceDeleteSuccess
Event Type Item - 2
Microsoft.Resources.ResourceWriteSuccess

What I'm completely unclear on is how to output the object deleted/created/modified. Like write to a log or send an email "X" object was deleted by Y user. If anyone has a clue on that, I would greatly appreciate it. Or if there is an easier way to accomplish this, rather than using Event Grid, I'm open to suggestions.

Upvotes: 0

Views: 264

Answers (1)

SwethaKandikonda
SwethaKandikonda

Reputation: 8252

WAY-1

Here is my Logic App flow enter image description here

I'm using Outlook 365 Connector with Send an Email Action enter image description here

The Event Data gives whole information on What, When and Who created/modified/Deleted the resource.

Here is the screenshot of the mail that I received. enter image description here

you can add as many events as possible by clicking Add New Item enter image description here


WAY-2

You can add logs to your storage account and check the details from there as below. enter image description here enter image description here


WAY-3

You can check it in the logs from Overview pane which gives complete details on particular Run Triggers. enter image description here enter image description here

Upvotes: 1

Related Questions