You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
Versions
terraform: 1.0.5
azure provider: 2.76.0
module: 0.4.0 (Policy definition looks same as in 1.0.0)
Description
Describe the bug
I was doing a check for our Landing Zone Policies and noticed a misconfiguration in one of the policy definitions.
Initiative Definition "Deploy Diagnostic Settings to Azure Services" has a policy called "Deploy Diagnostic Settings for Automation to Log Analytics workspace". This policy enables diagnostic settings for Automation Account created by the module. Policy is shown as non-compliant, even though i had done the remediation successfully.
Expected Output
Expected output is that the policy should be compliant.
Actual Output
Policy is non-compliant even though the remediation was done successfully.
Steps to Reproduce
Don't set any diagnostic settings to the Automation Account created by the module.
Run remediation for the policy "Deploy Diagnostic Settings for Automation to Log Analytics workspace"
Check the compliance of the policy after evaluation scan, it should be shown as non-compliant
Screenshots
First screenshot shows the diagnostic settings and the policy compliance after running the remediation.
Second screenshot show the diagnostic settings and the policy compliance when remediation is run and AuditEvent category is enabled manually.
Additional context
Policy will be shown as compliant, if AuditEvent option is chosen in Diagnostic settings of the Automation Account.
The problem would be solved if AuditEvent option is enabled in the policy definition.
The text was updated successfully, but these errors were encountered:
Community Note
Versions
terraform: 1.0.5
azure provider: 2.76.0
module: 0.4.0 (Policy definition looks same as in 1.0.0)
Description
Describe the bug
I was doing a check for our Landing Zone Policies and noticed a misconfiguration in one of the policy definitions.
Initiative Definition "Deploy Diagnostic Settings to Azure Services" has a policy called "Deploy Diagnostic Settings for Automation to Log Analytics workspace". This policy enables diagnostic settings for Automation Account created by the module. Policy is shown as non-compliant, even though i had done the remediation successfully.
Expected Output
Expected output is that the policy should be compliant.
Actual Output
Policy is non-compliant even though the remediation was done successfully.
Steps to Reproduce
Screenshots


First screenshot shows the diagnostic settings and the policy compliance after running the remediation.
Second screenshot show the diagnostic settings and the policy compliance when remediation is run and AuditEvent category is enabled manually.
Additional context
Policy will be shown as compliant, if AuditEvent option is chosen in Diagnostic settings of the Automation Account.
The problem would be solved if AuditEvent option is enabled in the policy definition.
The text was updated successfully, but these errors were encountered: