diff --git a/src/Network/Network/help/Add-AzApplicationGatewaySslCertificate.md b/src/Network/Network/help/Add-AzApplicationGatewaySslCertificate.md index 5887362e3cc6..ad126ee58fff 100644 --- a/src/Network/Network/help/Add-AzApplicationGatewaySslCertificate.md +++ b/src/Network/Network/help/Add-AzApplicationGatewaySslCertificate.md @@ -36,7 +36,7 @@ This command gets an application gateway named ApplicationGateway01 and then add ### Example 2: Add an SSL certificate using KeyVault Secret (version-less secretId) to an application gateway. ```powershell $AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01" -$secret = Get-AzKeyVaultCertificate -VaultName "keyvault01" -Name "sslCert01" +$secret = Get-AzKeyVaultSecret -VaultName "keyvault01" -Name "sslCert01" $secretId = $secret.Id.Replace($secret.Version, "") # https://.vault.azure.net/secrets/ $AppGW = Add-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -KeyVaultSecretId $secretId ``` @@ -47,7 +47,7 @@ Note: As version-less secretId is provided here, Application Gateway will sync t ### Example 3: Add an SSL certificate using KeyVault Secret (versioned secretId) to an application gateway. ```powershell $AppGW = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01" -$secret = Get-AzKeyVaultCertificate -VaultName "keyvault01" -Name "sslCert01" +$secret = Get-AzKeyVaultSecret -VaultName "keyvault01" -Name "sslCert01" $secretId = $secret.Id # https://.vault.azure.net/secrets/ $AppGW = Add-AzApplicationGatewaySslCertificate -ApplicationGateway $AppGW -Name "Cert01" -KeyVaultSecretId $secretId ```