Skip to content

Commit 3b22b82

Browse files
azure-sdkbenbp
andauthored
Restore deploymentOutputs variable in scope for post deployment script (Azure#25659)
Co-authored-by: Ben Broderick Phillips <[email protected]>
1 parent ef03756 commit 3b22b82

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eng/common/TestResources/New-TestResources.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,8 @@ function SetDeploymentOutputs([string]$serviceName, [object]$azContext, [object]
242242
$key = $null
243243
}
244244
}
245+
246+
return $deploymentOutputs
245247
}
246248

247249
# Support actions to invoke on exit.
@@ -669,7 +671,7 @@ try {
669671
Write-Verbose "Successfully deployed template '$($templateFile.jsonFilePath)' to resource group '$($resourceGroup.ResourceGroupName)'"
670672
}
671673

672-
SetDeploymentOutputs $serviceName $context $deployment $templateFile
674+
$deploymentOutputs = SetDeploymentOutputs $serviceName $context $deployment $templateFile
673675

674676
$postDeploymentScript = $templateFile.originalFilePath | Split-Path | Join-Path -ChildPath 'test-resources-post.ps1'
675677
if (Test-Path $postDeploymentScript) {

0 commit comments

Comments
 (0)