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

Policy Set with single parameter used across multiple definitions causes error in Build-DeploymentPlans #714

Closed brianmooremsft closed 1 month ago

brianmooremsft commented 1 month ago

Describe the bug When running Build-DeploymentPlans, post reading in currently deployed custom policies, a policy set with a single parameter used across many definitions within the policy set causes error [31;1mException calling "Add" with "2" argument(s): "Item has already been added. Key in dictionary: 'LOGSENABLED' Key being added: 'LOGSENABLED'"

To Reproduce 1e86036638424db598ba3c56.jsonc

Expected behavior No error when running Build-DeploymentPlans

Screenshots If applicable, add screenshots to help explain your problem.

EPAC Version Version of EPAC module you are using: 10.5.0

apybar commented 1 month ago

Fixed in v10.5.1