Skip to content

Commit 4a3f52e

Browse files
Merge pull request #8822 from johnwildes/patch-1
Updated Example Script
2 parents 03b43ef + f7ad30c commit 4a3f52e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ The **Add-AzApplicationGatewayTrustedRootCertificate** cmdlet adds a trusted roo
2525
### Example 1
2626
```powershell
2727
PS C:\> $gw = Get-AzApplicationGateway -Name $appgwName -ResourceGroupName $resgpName
28-
PS C:\> $gw = Add-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $gw -Name $certName --CertificateFile ".\rootCA.cer"
29-
PS C:\> $gw = Add-AzApplicationGatewayBackendHttpSettings -Name $poolSetting01Name -Port 443 -Protocol Https -CookieBasedAffinity Enabled -PickHostNameFromBackendAddress -TrustedRootCertificate $gw.TrustedRootCertificates[0]
28+
PS C:\> $gw = Add-AzApplicationGatewayTrustedRootCertificate -ApplicationGateway $gw -Name $certName -CertificateFile ".\rootCA.cer"
29+
PS C:\> $gw = Add-AzApplicationGatewayBackendHttpSettings -ApplicationGateway $gw -Name $poolSetting01Name -Port 443 -Protocol Https -CookieBasedAffinity Enabled -PickHostNameFromBackendAddress -TrustedRootCertificate $gw.TrustedRootCertificates[0]
3030
PS C:\> $gw = Set-AzApplicationGateway -ApplicationGateway $gw
3131
```
3232

0 commit comments

Comments
 (0)