Restore deploymentOutputs variable in scope for post deployment script (#3153)
Co-authored-by: Ben Broderick Phillips <bebroder@microsoft.com>
This commit is contained in:
parent
98d9664dc9
commit
575af58bfb
@ -242,6 +242,8 @@ function SetDeploymentOutputs([string]$serviceName, [object]$azContext, [object]
|
||||
$key = $null
|
||||
}
|
||||
}
|
||||
|
||||
return $deploymentOutputs
|
||||
}
|
||||
|
||||
# Support actions to invoke on exit.
|
||||
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user