Share via

Multiple Log Analytics Workspaces deployment DSC

J Rippon 81 Reputation points
2021-12-13T11:53:45.907+00:00

We are auto deploying Azure Monitor enrolment using Azure Policy.

Resource are deployed in two regions, We would like to split the deployment so that the IaaS servers are enrolled into the local LA Workspace.

We know about policy exclusions, but we feel as the service evolves people will forget and we will end up with non-enrolled resource.

Is it possible to automate the enrolment based on resource name via DSC for example? or another way?

Thanks

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

Azure Automation
Azure Automation

An Azure service that is used to automate, configure, and install updates across hybrid environments.

Azure Policy
Azure Policy

An Azure service that is used to implement corporate governance and standards at scale for Azure resources.


1 answer

Sort by: Most helpful
  1. J Rippon 81 Reputation points
    2021-12-15T09:40:58.8+00:00

    Thanks for the comment

    I actually found an Azure Policy which seems to do what I need.

    https://github.com/Azure/Community-Policy/blob/master/Policies/Monitoring/deploy-oms-agent-based-on-region-windows/azurepolicy.json

    Was this answer helpful?

    1 person found this answer helpful.

Your answer

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