Skip to content

Commit bffe91c

Browse files
committed
Add logic for bicep-avm folder replacement
1 parent b28dbe0 commit bffe91c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ALZ/Private/Deploy-Accelerator-Helpers/New-Bootstrap.ps1

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ function New-Bootstrap {
248248
}
249249
}
250250

251-
if($iac -eq "bicep") {
251+
if ($iac -eq "bicep" -or $iac -eq "bicep-avm") {
252252
Copy-ParametersFileCollection -starterPath $starterModulePath -configFiles $starterConfig.starter_modules.Value.$($inputConfig.starter_module_name.Value).deployment_files
253253
Set-ComputedConfiguration -configuration $starterConfiguration
254254
Edit-ALZConfigurationFilesInPlace -alzEnvironmentDestination $starterModulePath -configuration $starterConfiguration
@@ -258,9 +258,10 @@ function New-Bootstrap {
258258
$foldersOrFilesToRetain = $starterConfig.starter_modules.Value.$($inputConfig.starter_module_name.Value).folders_or_files_to_retain
259259
$foldersOrFilesToRetain += "parameters.json"
260260
$foldersOrFilesToRetain += "config"
261+
$foldersOrFilesToRetain += ".config"
261262
$foldersOrFilesToRetain += "starter-cache.json"
262263

263-
foreach($deployment_file in $starterConfig.starter_modules.Value.$($inputConfig.starter_module_name.Value).deployment_files) {
264+
foreach ($deployment_file in $starterConfig.starter_modules.Value.$($inputConfig.starter_module_name.Value).deployment_files) {
264265
$foldersOrFilesToRetain += $deployment_file.templateParametersSourceFilePath
265266
}
266267

0 commit comments

Comments
 (0)