We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 160dd14 commit 5e2b2c6Copy full SHA for 5e2b2c6
sdk/keyvault/test-resources-post.ps1
@@ -95,7 +95,13 @@ if (Test-Path $sdpath) {
95
Remove-Item $sdPath -Force
96
}
97
98
-Export-AzKeyVaultSecurityDomain -Name $hsmName -Quorum 2 -Certificates $wrappingFiles -OutputPath $sdPath
+Export-AzKeyVaultSecurityDomain -Name $hsmName -Quorum 2 -Certificates $wrappingFiles -OutputPath $sdPath -ErrorAction SilentlyContinue -Verbose
99
+if ( !$? ) {
100
+ Write-Host $Error[0].Exception
101
+ Write-Error $Error[0]
102
+
103
+ exit
104
+}
105
106
Log "Security domain downloaded to '$sdPath'; Managed HSM is now active at '$hsmUrl'"
107
0 commit comments