Skip to content

Instantly share code, notes, and snippets.

@fabriciosanchez
Created April 10, 2020 20:13
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/3b98d46e9fd15a2363b213ec733b2e54 to your computer and use it in GitHub Desktop.
Save fabriciosanchez/3b98d46e9fd15a2363b213ec733b2e54 to your computer and use it in GitHub Desktop.
Creating AG's probes.
# step 6 - create custom probes for API-M endpoints
$apimprobe = New-AzApplicationGatewayProbeConfig `
-Name "apim-api-probe" `
-Protocol "Https" `
-HostName $gatewayHostname `
-Path "/status-0123456789abcdef" `
-Interval 30 `
-Timeout 120 `
-UnhealthyThreshold 8
$apimPortalProbe = New-AzApplicationGatewayProbeConfig `
-Name "apim-portal-probe" `
-Protocol "Https" `
-HostName $portalHostname `
-Path "/signin" `
-Interval 60 `
-Timeout 300 `
-UnhealthyThreshold 8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment