Sep 04 2022 05:47 PM
Hi All,
We have centralized log analytics workspace within dedicated subscription. Rest of the resources are available in multiple spoke subscriptions. We need to automatically configure diagnostics settings pointing centralize Log analytics workspace for all the resources of spoke subscriptions.
best Regards,
gayan
Sep 05 2022 04:50 AM
Hello @gaycnpch ,
You can use Azure Policy to configure Diagnostic Settings at scale.
Create diagnostic settings at scale using Azure Policy - Azure Monitor | Microsoft Docs
Use "Remediation task" to set it for the resources that have been created before you apply the policy.