Closed coriet closed 3 months ago
Hey @coriet,
In the last policy refresh of ALZ we moved away from the custom diagnostic settings policies we used to the new built-in initiatives for this that utilise category groups that avoid these scenarios from occurring.
Have you updated to the latest release of ALZ Bicep and adopted this change as per the release notes? https://github.com/Azure/ALZ-Bicep/releases
N.B. the policy refresh work occurred in
v0.18.0
Thank you @jtracey93 I will do so. Thank you for the feedback.
Let us know the feedback or general question
Currently 'policy_definition_es_Deploy-Diagnostics-LogAnalytics.json' mentions that the deployed 'Policy will set the diagnostic with all metrics and category enabled', however "Summary Logs" are missing. Therefore the policy will always show non-compliant resources in Azure Policy.
Changing from:
"logs": [ { "category": "Audit", "enabled": "[parameters('logsEnabled')]" } ]
To:
"logs": [ { "category": "Audit", "enabled": "[parameters('logsEnabled')]" }, { "category": "SummaryLogs", "enabled": "[parameters('logsEnabled')]" } ]
Will fix the issue.
Code of Conduct