Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Creates listeners under the AG.
# step 5 - configure HTTP listeners for the App Gateway
$listener = New-AzApplicationGatewayHttpListener `
-Name "apim-api-listener" `
-Protocol "Https" `
-FrontendIPConfiguration $fipconfig01 `
-FrontendPort $fp01 `
-SslCertificate $cert `
-HostName $gatewayHostname `
-RequireServerNameIndication true
$portalListener = New-AzApplicationGatewayHttpListener `
-Name "apim-portal-listener" `
-Protocol "Https" `
-FrontendIPConfiguration $fipconfig01 `
-FrontendPort $fp01 `
-SslCertificate $certPortal `
-HostName $portalHostname `
-RequireServerNameIndication true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment