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
403 stars 206 forks source link

Add option to fetch policies from any release #671

Closed picccard closed 1 month ago

picccard commented 1 month ago

Allow users to sync ALZ policies from any release-tag.

Useful when demoing the initial setup of EPAC. Want to showcase an upgrade → Just fetch an older release first and then the latest version.

anwather commented 1 month ago

I really like this idea - however there a couple of things to think about.

When I set the version to latest (default) - it goes to https://[raw.githubusercontent.com/Azure/Enterprise-Scale/latest/eslzArm/managementGroupTemplates/policyDefinitions/policies.json](https://raw.githubusercontent.com/Azure/Enterprise-Scale/latest/eslzArm/managementGroupTemplates/policyDefinitions/policies.json) which currently returns a 404.

Second we need to think about how to pin the assignment versions to the releases - we can start with the current one as the baseline I guess

picccard commented 1 month ago

I was using single quotes, so the raw.githubcontent url would be wrong. Fixed it in the latest commit.