Azure / ALZ-PowerShell-Module

The Azure Landing Zones Accelerators PowerShell module
https://www.powershellgallery.com/packages/ALZ/
MIT License
77 stars 39 forks source link

Bug: Issue with upgrading files with the Deploy-Accelerator -replacefiles parameter. #189

Closed jantorep closed 1 month ago

jantorep commented 1 month ago

Is there an existing issue for this?

Infrastrcuture as Code Type? (Required)

bicep

Module Versions (Required)

ALZ PowerShell Module: 7.4.5 Accelerator Bootstrap Modules: 3.0.4 Terraform Starter Modules: x.x.x Bicep Starter Modules: 3.0.4

Input arguments of the ALZ-PowerShell-Module (Optional)

Deploy-Accelerator -i "bicep" -b "alz_github" -o "C:\GitRepo\reponame\" -bicepLegacyMode $true -replaceFiles $True

Debug Output/Panic Output (Optional)

Configuration directory C:\GitRepo\HemitHF\reponame\config already exists and the replacefiles parameter is set to False. Will skil overwriting the config directory.

Expected Behaviour (Required)

With this it should update the files that has changed under config folder. Even if i remove the config folder or just keep everything empty the same behaviour is shown.

Actual Behaviour (Required)

Does not replace files under \config

Steps to Reproduce (Optional)

run the command.

Important Factoids (Optional)

No response

References (Optional)

No response

oZakari commented 1 month ago

Thanks for reporting this @jantorep. This looks like an issue with a recent update we made to the module. Will work on getting this resolved.

jaredfholgate commented 1 month ago

The replaceFiles option is only for local development purposes. It only works in combination with the bootstrapModuleOverrideFolderPath and or starterModuleOverrideFolderPath.

Closing this for now as we no longer support the bicepLegacyMode option as of v4.

There is a different solution for upgrading to newer versions, which it does by default when a new version is available or specified. https://github.com/Azure/ALZ-PowerShell-Module/wiki/Upgrade-Guide