From ad2ee6766e9968abcc30dd5f101a5df40fe0cfbd Mon Sep 17 00:00:00 2001 From: mahortas <61055930+mahortas@users.noreply.github.com> Date: Wed, 28 Oct 2020 11:10:38 +0000 Subject: [PATCH] Update for -HostNames parameter values Values provided for -Hostnames should be in separate quotation marks --- .../Network/help/Add-AzApplicationGatewayHttpListener.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Network/Network/help/Add-AzApplicationGatewayHttpListener.md b/src/Network/Network/help/Add-AzApplicationGatewayHttpListener.md index 95c635e70950..5b7618cd6fae 100644 --- a/src/Network/Network/help/Add-AzApplicationGatewayHttpListener.md +++ b/src/Network/Network/help/Add-AzApplicationGatewayHttpListener.md @@ -60,7 +60,7 @@ The second command adds the listener, which uses the HTTPS protocol, to the appl ### Example 3: Add a HTTPS listener with SSL and HostNames ``` PS C:\>$AppGw = Get-AzApplicationGateway -Name "ApplicationGateway01" -ResourceGroupName "ResourceGroup01" -PS C:\> $AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01 -HostNames "*.contoso.com,www.microsoft.com" +PS C:\> $AppGw = Add-AzApplicationGatewayHttpListener -ApplicationGateway $AppGw -Name "Listener01" -Protocol "Https" -FrontendIpConfiguration $FIP01 -FrontendPort $FP01 -SslCertificate $SSLCert01 -HostNames "*.contoso.com","www.microsoft.com" ``` The first command gets the application gateway and stores it in the $AppGw variable.