Skip to content

Commit

Permalink
Force capitalize all deployment/env outputs in live test (#7310)
Browse files Browse the repository at this point in the history
* Force capitalize all deployment/env outputs in live test

* Update eng/common/TestResources/New-TestResources.ps1

Co-authored-by: Heath Stewart <[email protected]>

---------

Co-authored-by: Heath Stewart <[email protected]>
  • Loading branch information
benbp and heaths authored Nov 20, 2023
1 parent f8fbdb9 commit fee8125
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion eng/common/TestResources/New-TestResources.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,14 @@ function BuildDeploymentOutputs([string]$serviceName, [object]$azContext, [objec
}
}

return $deploymentOutputs
# Force capitalization of all keys to avoid Azure Pipelines confusion with
# variable auto-capitalization and OS env var capitalization differences
$capitalized = @{}
foreach ($item in $deploymentOutputs.GetEnumerator()) {
$capitalized[$item.Name.ToUpperInvariant()] = $item.Value
}

return $capitalized
}

function SetDeploymentOutputs(
Expand Down

0 comments on commit fee8125

Please sign in to comment.