Skip to content

Commit ae80518

Browse files
Update example 2 code snippet in Get-AzKeyVaultCertificate.md (#11598)
Update example 2 code snippet in Get-AzKeyVaultCertificate.md (#11598)
1 parent a41ca6b commit ae80518

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/KeyVault/KeyVault/help/Get-AzKeyVaultCertificate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ This command gets the certificate named TestCert01 from the key vault named Cont
108108

109109
```powershell
110110
$cert = Get-AzKeyVaultCertificate -VaultName "ContosoKV01" -Name "TestCert01"
111-
$secret = Get-AzKeyVaultSecret -VaultName $vaultName -Name $cert.SecretId
111+
$secret = Get-AzKeyVaultSecret -VaultName $vaultName -Name $cert.Name
112112
113113
$secretByte = [Convert]::FromBase64String($secret.SecretValueText)
114114
$x509Cert = new-object System.Security.Cryptography.X509Certificates.X509Certificate2

0 commit comments

Comments
 (0)