Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created April 10, 2020 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fabriciosanchez/b64a56df16789ecf55937a68ecb7ae9d to your computer and use it in GitHub Desktop.
Save fabriciosanchez/b64a56df16789ecf55937a68ecb7ae9d to your computer and use it in GitHub Desktop.
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