MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.2k stars 21.35k forks source link

Redirect on Rate Limit possible? #38417

Closed dcbrown16 closed 5 years ago

dcbrown16 commented 5 years ago

This page states that rate limit rules are different from match rules. Is everything else on the page only applicable to match rules? Specifically, I have a customer who wants to redirect to a custom page on rate limit. The New-AzFrontDoorWafCustomRuleObject PowerShell command doesn't list "Redirect" as an option when setting a rate limit rule. https://docs.microsoft.com/en-us/powershell/module/az.frontdoor/new-azfrontdoorwafcustomruleobject?view=azps-2.6.0 However, the REST API doesn't seem to distinguish clearly. https://docs.microsoft.com/en-us/rest/api/frontdoorservice/webapplicationfirewall/policies/createorupdate


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

msrini-MSFT commented 5 years ago

@dcbrown16 , Thank you for your feedback.

Re-direct rule has nothing to do with WAF rules. If condition in the WAF rules are matched, you can either block or allow the traffic.

URL rewrite is an actual rule, like one you create to route traffic to the backend pools. Re-direct traffic to a custom page on rate limit is not possible in AFD for now.

For any product related questions, I suggest reaching out via right channel internally.