Azure / enterprise-azure-policy-as-code

Enterprise-ready Azure Policy-as-Code (PaC) solution (includes Az DevOps pipeline)
https://azure.github.io/enterprise-azure-policy-as-code/
MIT License
415 stars 219 forks source link

nonComplianceMessageColumn not working when using a CSV file #595

Closed mothinthemachine closed 4 months ago

mothinthemachine commented 4 months ago

Describe the bug When using the "nonComplianceMessageColumn": "nonComplianceMessages" in a policy assignment with a policy assignment parameter CSV file containing the "nonComplianceMessages" column, the deployment plan contains only null values for each "policyDefinitionReferenceId":

"nonComplianceMessages": [ { "message": "Deployment has been denied due to a configuration violation!", "policyDefinitionReferenceId": null } ]

When testing the same policy definitions with EPAC v9, each "policyDefinitionReferenceId" has the correct value.

EPAC Version 10.1.5