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
432 stars 239 forks source link

Feature: Add "assignedBy" property to globalSettings #502

Closed gregslack78 closed 7 months ago

gregslack78 commented 8 months ago

If an assignedBy value is not provided in the assignment metadata, it would be good to allow for a standard value to be used. The currently thought is to create a new property in globalSettings kind of inline with the pacOwner and have the value of that property injected when no value is present in the assignment file.

Possibly also/alternatively add this to the pacEnv as it may be desirable to have different values per environment.

techlake commented 7 months ago

If metadata in definition contains assignedBy - keep it, else set to: epac//

techlake commented 7 months ago

Implemented in v10.0.0, released 4/5/2024