Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created April 11, 2020 21:37
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/0fb1be2b51f9852ff4b2c23b377fd7f2 to your computer and use it in GitHub Desktop.
Save fabriciosanchez/0fb1be2b51f9852ff4b2c23b377fd7f2 to your computer and use it in GitHub Desktop.
Retrieves AG's information.
# Get existing Application Gateway config
$appgw = Get-AzApplicationGateway `
-ResourceGroupName $resGroupName `
-Name $appgwName
$listener = Get-AzApplicationGatewayHttpListener `
-Name "apim-api-listener" `
-ApplicationGateway $appgw
$sinkpool = Get-AzApplicationGatewayBackendAddressPool `
-ApplicationGateway $appgw `
-Name "sinkpool"
$pool = Get-AzApplicationGatewayBackendAddressPool `
-ApplicationGateway $appgw `
-Name "apimbackend"
$poolSettings = Get-AzApplicationGatewayBackendHttpSettings `
-ApplicationGateway $appgw `
-Name "apim-api-poolsetting"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment