How to get events from different resource groups?

Q J 0 Reputation points
2023-09-13T12:42:36.7166667+00:00

In my company, we have alot of resource groups belongs to different owners, i want to implement a solution, where i can listen to these resource groups events, like virtual network created, public ips created, etc. From what i searched, it seems that Azure Event Grid able to help, problem is, how can i get all the events pushed by all these resource group?

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

3 answers

Sort by: Most helpful
  1. Thomas Meads 1,586 Reputation points
    2023-09-13T21:02:03.51+00:00

    Hi,

    You can do this via Diagnostic settings on Resource Groups, and Subscriptions which route to an event hub, storage account, or log analytics workspace. Individually this can be done by going to Activity Log > Export Activity Logs.

    However, as this seems to be an on going and highly active issue for you it is possible to set the diagnostic settings up automatically via Azure Policy. More info here: https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings-policy

    Hope this helps.

    0 comments No comments

  2. JananiRamesh-MSFT 22,466 Reputation points
    2023-09-18T15:30:45.6733333+00:00

    Hi
    Q J
    Thanks for reaching out. As Thomas mentioned you can also use Azure Diagnostic Settings to collect events from multiple resource groups.

    Azure Event Grid is also good solution for listening to events from multiple resource groups. You can use Event Grid to subscribe to events from multiple resource groups and receive notifications when events occur at your endpoint.

    In order to get all the events pushed by all these resource group you need to create an Event Grid subscription for each resource group that you want to monitor.

    Reference: https://learn.microsoft.com/en-us/azure/event-grid/event-schema-resource-groups?tabs=event-grid-event-schema

    Let me know if you have any further questions.

    Please "Upvote" and "Accept as Answer" if the answer is helpful so that it can help others in the community.

    0 comments No comments

  3. Roman Kiss 2,246 Reputation points
    2023-09-18T16:38:37.77+00:00

    You can find answer to similar question here.

    Thanks

    Roman

    0 comments No comments