Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created April 11, 2020 21:50
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/0d2cdcde07e81d7a926c65ec7efc60c5 to your computer and use it in GitHub Desktop.
Save fabriciosanchez/0d2cdcde07e81d7a926c65ec7efc60c5 to your computer and use it in GitHub Desktop.
Creates the mapping of the existing rule and applies it to the AG.
$appgw = Add-AzApplicationGatewayUrlPathMapConfig `
-ApplicationGateway $appgw `
-Name "external-urlpathmapconfig" `
-PathRules $pathRule `
-DefaultBackendAddressPool $sinkpool `
-DefaultBackendHttpSettings $poolSettings
$appgw = Set-AzApplicationGateway `
-ApplicationGateway $appgw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment