File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
articles/azure-resource-manager/templates Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ms.service: azure-resource-manager
9
9
ms.workload : multiple
10
10
ms.tgt_pltfrm : na
11
11
ms.devlang : na
12
- ms.date : 12/16/2020
12
+ ms.date : 07/02/2021
13
13
ms.topic : tutorial
14
14
ms.author : jgao
15
15
---
@@ -218,8 +218,6 @@ The deployment script adds a certificate to the key vault. Configure the key vau
218
218
# private key is added as a secret that can be retrieved in the Resource Manager template
219
219
Add-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName -CertificatePolicy $policy -Verbose
220
220
221
- $newCert = Get-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName
222
-
223
221
# it takes a few seconds for KeyVault to finish
224
222
$tries = 0
225
223
do {
@@ -239,6 +237,7 @@ The deployment script adds a certificate to the key vault. Configure the key vau
239
237
}
240
238
} while ($operation.Status -ne 'completed')
241
239
240
+ $newCert = Get-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName
242
241
$DeploymentScriptOutputs['certThumbprint'] = $newCert.Thumbprint
243
242
$newCert | Out-String
244
243
}
You can’t perform that action at this time.
0 commit comments