Skip to content

Conversation

picccard
Copy link
Contributor

Issue

comparing the generated file alz.policy_default_structure.epac.jsonc between to releases is hard when the managementGroupNameMappings is not ordered.

Steps to reproduce

New-ALZPolicyDefaultStructure -DefinitionsRootFolder .\Definitions-demo -Type ALZ -Tag "platform/alz/2024.11.0" -PacEnvironmentSelector "epac"
Rename-Item -Path ".\Definitions-demo\policyStructures\alz.policy_default_structure.epac.jsonc" -NewName alz.policy_default_structure.epac.v2024.11.0.jsonc

New-ALZPolicyDefaultStructure -DefinitionsRootFolder .\Definitions-demo -Type ALZ -Tag "platform/alz/2025.02.0" -PacEnvironmentSelector "epac"
Rename-Item -Path ".\Definitions-demo\policyStructures\alz.policy_default_structure.epac.jsonc" -NewName alz.policy_default_structure.epac.v2025.02.0.jsonc

now compare the two files

image

comparison with changes in this PR

image

@picccard picccard changed the title fix: order mgmtGroupMappings in ALZPolicyDefaultStructure order mgmtGroupMappings in ALZPolicyDefaultStructure Jul 13, 2025
@picccard picccard changed the title order mgmtGroupMappings in ALZPolicyDefaultStructure order managementGroupNameMappings in ALZPolicyDefaultStructure Jul 13, 2025
@anwather
Copy link
Collaborator

Fantastic thanks!

@anwather anwather merged commit 210ff3f into Azure:main Jul 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants