Skip to content

Commit

Permalink
Use deploy outputs again
Browse files Browse the repository at this point in the history
  • Loading branch information
benbp committed Nov 8, 2024
1 parent 24e4443 commit 8232702
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sdk/security/keyvault/azadmin/test-resources-post.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,12 @@ $([Convert]::ToBase64String($Certificate.RawData, 'InsertLineBreaks'))
}

# Make sure we deployed a Managed HSM.
if (!$env:AZURE_MANAGEDHSM_URL) {
if (!$DeploymentOutputs['AZURE_MANAGEDHSM_URL']) {
Log "Managed HSM not deployed; skipping activation"
exit
}

[Uri] $hsmUrl = $env:AZURE_MANAGEDHSM_URL
[Uri] $hsmUrl = $DeploymentOutputs['AZURE_MANAGEDHSM_URL']
$hsmName = $hsmUrl.Host.Substring(0, $hsmUrl.Host.IndexOf('.'))

Log 'Creating 3 X509 certificates to activate security domain'
Expand Down

0 comments on commit 8232702

Please sign in to comment.