Skip to content

Ensure nodeName uses landing_zones with underscore#1172

Open
arrerezai wants to merge 1 commit intoAzure:mainfrom
arrerezai:nodeNameLandingZones
Open

Ensure nodeName uses landing_zones with underscore#1172
arrerezai wants to merge 1 commit intoAzure:mainfrom
arrerezai:nodeNameLandingZones

Conversation

@arrerezai
Copy link
Contributor

Ensure nodeName uses landing_zones with underscore instead of landingzones.

@apybar apybar requested a review from anwather December 12, 2025 20:56
@apybar
Copy link
Collaborator

apybar commented Feb 24, 2026

@arrerezai - is this still required?

Sorry for the long time of approving this - but now looking at it, this doesn't seem critical - and unless there is a justified reason I know if we approve this, then people running the sync command will see every file within ALZ and/or AMBA has updates and it might be a small nuisance for people.

@arrerezai
Copy link
Contributor Author

arrerezai commented Feb 24, 2026

@apybar , too long has passed since I created this PR now but the consensus was (and probably is) that the sync always got me duplicated things as the correct nodeName should be landing_zones, while in fact, the sync created duplicates but for nodeName landingzones instead (i.e. it couldn't figure out that landing_zones already existed from before and hence created landingzones because of the diff). While I have added this commit to my own stuff (and it works as intended), you may want to reject this PR but have in mind, others might experience the same issue upon sync...

@arrerezai
Copy link
Contributor Author

Moreover, just tried to sync using epac v11.2.2 (without my own fix as proposed through this PR). This is the command I am running:
Sync-ALZPolicyFromLibrary -DefinitionsRootFolder .\Definitions -Type ALZ -PacEnvironmentSelector "epac-dev" -EnableOverrides -SyncAssignmentsOnly
And in return, I receive 20 proposed changes, all of them looking similar to this one:
image

@johanandrelundar
Copy link

Moreover, just tried to sync using epac v11.2.2 (without my own fix as proposed through this PR). This is the command I am running: Sync-ALZPolicyFromLibrary -DefinitionsRootFolder .\Definitions -Type ALZ -PacEnvironmentSelector "epac-dev" -EnableOverrides -SyncAssignmentsOnly And in return, I receive 20 proposed changes, all of them looking similar to this one: image

We had the same issue and had to rename all the nodes to get the sync to work with no diff 😬

@arrerezai
Copy link
Contributor Author

@johanandrelundar Appreciate that you also provide feedback and show that the problem is not local to me but that everyone is getting this diff as a result of a minor error in the node name.
@apybar Although not super important, might be nice to have it fixed now that you know that folks out there are experiencing the same incorrect behavior, no? Doesn't need to be the way I do it, just any working way, but speeds up things tremendously having no diffs due to errors and results in people wanting to run the sync more often than not.

@anwather
Copy link
Collaborator

anwather commented Feb 25, 2026 via email

@arrerezai
Copy link
Contributor Author

@anwather Clearly, I can fix it by accepting the change, but that indicates the nodeName changed in one of the former releases? How and why? Of course the nodeName property can hold any value without any negative impact, but as goes for the sync and comparing deviations from former versions, it is quite disturbing if the nodeName is meant to be changed randomly.

@arrerezai
Copy link
Contributor Author

@anwather New discovery! After accepting the change, running the same command again and again would not modify the files again, however, running the sync command, not specifying the -EnableOverrides flag places the underscore back according to:

image

@anwather
Copy link
Collaborator

Ok - I think this is something we can fix, without looking at the code I know there was something I had to change about the landing zone naming to get the overrides to work.

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.

4 participants