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
436 stars 243 forks source link

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

Closed brianmooremsft closed 4 months ago

brianmooremsft commented 4 months 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 4 months ago

Fixed in v10.5.1