Skip to content

Commit 527f8bd

Browse files
authored
Update for -HostNames parameter values (#13349)
Values provided for -Hostnames should be in separate quotation marks
1 parent b39e71b commit 527f8bd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The second command adds the listener, which uses the HTTPS protocol, to the appl
6060
### Example 3: Add a HTTPS listener with SSL and HostNames
6161
```
6262
PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01"
63-
PS C:\> $AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01 -HostNames "*.contoso.com,www.microsoft.com"
63+
PS C:\> $AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01 -HostNames "*.contoso.com","www.microsoft.com"
6464
```
6565

6666
The first command gets the application gateway and stores it in the $AppGw variable.

0 commit comments

Comments
 (0)