Skip to content

Commit

Permalink
Restore deploymentOutputs variable in scope for post deployment script (
Browse files Browse the repository at this point in the history
#25781)

Co-authored-by: Ben Broderick Phillips <[email protected]>
  • Loading branch information
azure-sdk and benbp authored Dec 2, 2021
1 parent bee5b9b commit 0234a7d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ function SetDeploymentOutputs([string]$serviceName, [object]$azContext, [object]
$key = $null
}
}

return $deploymentOutputs
}

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

SetDeploymentOutputs $serviceName $context $deployment $templateFile
$deploymentOutputs = SetDeploymentOutputs $serviceName $context $deployment $templateFile

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

0 comments on commit 0234a7d

Please sign in to comment.