AZURE: is it possible to configure new resources to be automatically enrolled in log collection where all logs are collected?

Franky 21 Reputation points
2022-11-30T03:23:45.987+00:00

I'm looking to see if it is possible to create a resource and instead of having to manually go to the log analytics and apply the logs you want collected and where to send them to if that can be automated via a custom policy using power shell or if there is a native way in the dashboard to enroll all new resources into log collection as soon as they are created or maybe batched after the fact. Thanks

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,516 questions
0 comments No comments
{count} votes

Accepted answer
  1. Michael Durkan 12,196 Reputation points MVP
    2022-11-30T08:00:32.7+00:00

    Hi

    you can do this with Azure Policy, details here:

    https://learn.microsoft.com/en-us/azure/azure-monitor/essentials/diagnostic-settings-policy

    Hope this helps,

    Thanks

    Michael Durkan

    • If the reply was helpful please upvote and/or accept as answer as this helps others in the community with similar questions. Thanks!
    0 comments No comments

0 additional answers

Sort by: Most helpful