Skip to content

Commit a420b24

Browse files
authored
Changing Get-AzKeyVaultCertificate to Get-AzKeyVaultSecret (#27551)
1 parent 4bbb12f commit a420b24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Network/Network/help/Add-AzApplicationGatewaySslCertificate.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ This command gets an application gateway named ApplicationGateway01 and then add
3636
### Example 2: Add an SSL certificate using KeyVault Secret (version-less secretId) to an application gateway.
3737
```powershell
3838
$AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
39-
$secret = Get-AzKeyVaultCertificate -VaultName "keyvault01" -Name "sslCert01"
39+
$secret = Get-AzKeyVaultSecret -VaultName "keyvault01" -Name "sslCert01"
4040
$secretId = $secret.Id.Replace($secret.Version, "") # https://<keyvaultname>.vault.azure.net/secrets/
4141
$AppGW = Add-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -KeyVaultSecretId $secretId
4242
```
@@ -47,7 +47,7 @@ Note: As version-less secretId is provided here, Application Gateway will sync t
4747
### Example 3: Add an SSL certificate using KeyVault Secret (versioned secretId) to an application gateway.
4848
```powershell
4949
$AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
50-
$secret = Get-AzKeyVaultCertificate -VaultName "keyvault01" -Name "sslCert01"
50+
$secret = Get-AzKeyVaultSecret -VaultName "keyvault01" -Name "sslCert01"
5151
$secretId = $secret.Id # https://<keyvaultname>.vault.azure.net/secrets/<hash>
5252
$AppGW = Add-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -KeyVaultSecretId $secretId
5353
```

0 commit comments

Comments
 (0)