Skip to content

Commit 98ff531

Browse files
committed
fix a bug in the code sample
1 parent 46c9a22 commit 98ff531

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

articles/azure-resource-manager/templates/template-tutorial-deployment-script.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.service: azure-resource-manager
99
ms.workload: multiple
1010
ms.tgt_pltfrm: na
1111
ms.devlang: na
12-
ms.date: 12/16/2020
12+
ms.date: 07/02/2021
1313
ms.topic: tutorial
1414
ms.author: jgao
1515
---
@@ -218,8 +218,6 @@ The deployment script adds a certificate to the key vault. Configure the key vau
218218
# private key is added as a secret that can be retrieved in the Resource Manager template
219219
Add-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName -CertificatePolicy $policy -Verbose
220220
221-
$newCert = Get-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName
222-
223221
# it takes a few seconds for KeyVault to finish
224222
$tries = 0
225223
do {
@@ -239,6 +237,7 @@ The deployment script adds a certificate to the key vault. Configure the key vau
239237
}
240238
} while ($operation.Status -ne 'completed')
241239
240+
$newCert = Get-AzKeyVaultCertificate -VaultName $vaultName -Name $certificateName
242241
$DeploymentScriptOutputs['certThumbprint'] = $newCert.Thumbprint
243242
$newCert | Out-String
244243
}

0 commit comments

Comments
 (0)