Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created April 10, 2020 20:55
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/e214403c334c5a02f1ec0ae1adf6bcf1 to your computer and use it in GitHub Desktop.
Save fabriciosanchez/e214403c334c5a02f1ec0ae1adf6bcf1 to your computer and use it in GitHub Desktop.
Creates a rule that directs external users to APIM's developers portal.
# step 10 - create a routing rule to allow external Internet access to the developer portal
$rule01 = New-AzApplicationGatewayRequestRoutingRule `
-Name "apim-portal-rule" `
-RuleType Basic `
-HttpListener $portalListener `
-BackendAddressPool $apimProxyBackendPool `
-BackendHttpSettings $apimPoolPortalSetting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment