From 4fc757c3c89692244d94ced7422a61266541ee02 Mon Sep 17 00:00:00 2001 From: Alexander Sehr Date: Wed, 17 Jan 2024 00:58:23 +0000 Subject: [PATCH] fix: Fixed issue of current deploymentName that resolved to only the test folder name (#811) ## Description Fixed bug of current deploymentName parameter that went unnoticed | | | | - | - | | [Before](https://github.com/AlexanderSehr/bicep-registry-modules/actions/runs/7377238360/job/20071195920#step:4:488) | `h-d-d-t1-20240101T1201284694Z`| | [After](https://github.com/AlexanderSehr/bicep-registry-modules/actions/runs/7518798470/job/20466718621#step:4:489) | `a-r-kv-v-waf-aligned-t1-20240114T1101008023Z` | | Pipeline | | - | | [![avm.res.key-vault.vault](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml/badge.svg?branch=users%2Falsehr%2FavmRequestReduce&event=workflow_dispatch)](https://github.com/AlexanderSehr/bicep-registry-modules/actions/workflows/avm.res.key-vault.vault.yml) (unrelated, name was taken in 1 test) | --------- Co-authored-by: Erika Gressi <56914614+eriqua@users.noreply.github.com> --- .../New-TemplateDeployment.ps1 | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/avm/utilities/pipelines/e2eValidation/resourceDeployment/New-TemplateDeployment.ps1 b/avm/utilities/pipelines/e2eValidation/resourceDeployment/New-TemplateDeployment.ps1 index 52871b73a0..a5a75d308d 100644 --- a/avm/utilities/pipelines/e2eValidation/resourceDeployment/New-TemplateDeployment.ps1 +++ b/avm/utilities/pipelines/e2eValidation/resourceDeployment/New-TemplateDeployment.ps1 @@ -450,15 +450,16 @@ function New-TemplateDeployment { ## Iterate through each file $deploymentInputObject = @{ - templateFilePath = $templateFilePath - additionalTags = $additionalTags - additionalParameters = $additionalParameters - location = $location - resourceGroupName = $resourceGroupName - subscriptionId = $subscriptionId - managementGroupId = $managementGroupId - doNotThrow = $doNotThrow - retryLimit = $retryLimit + TemplateFilePath = $templateFilePath + AdditionalTags = $additionalTags + AdditionalParameters = $additionalParameters + Location = $location + ResourceGroupName = $resourceGroupName + SubscriptionId = $subscriptionId + ManagementGroupId = $managementGroupId + DoNotThrow = $doNotThrow + RetryLimit = $retryLimit + RepoRoot = $RepoRoot } if ($parameterFilePath) { if ($parameterFilePath -is [array]) {