Closed Thijsfk closed 8 months ago
@Thijsfk thank you for raising this issue. Please note that we will be transitioning to new built-in diagnostic settings policies when they land in the coming weeks:
We've been working closely with the product group on the new policies, which come in 3 "flavors" covering 139 Azure services (including MySQL Flexible) - the flavors are for the log targets being Log Analytics, Event Hub or Storage. With this we will also get two initiatives for each flavor, one for all logs and one for only audit logs (418 new policies and 6 new initiatives!!). Once they're published (the process takes a few weeks) we will be deprecating our custom diagnostic settings policies and changing the default assignment to use the built-in initiative(s).
I hope this is clear, feel free to reopen the issue if you have any questions.
Describe the bug
The policy definition 'Deploy Diagnostic Settings for Log Analytics to Log Analytics workspace' in initiative 'Deploy-Diagnostics-LogAnalytics' stays incompliant after remediation because the Log category "SummaryLogs" is missing. To fix this the summarylogs category could be added: ``` "logs": [ { "category": "Audit", "enabled": "[parameters('logsEnabled')]" }, { "category": "SummaryLogs", "enabled": "[parameters('logsEnabled')]" } ] ``` or the Category Groups can be utilized (in this case AllLogs).Steps to reproduce
Screenshots