question

PeterMoolenaar-4590 avatar image
0 Votes"
PeterMoolenaar-4590 asked GitaraniSharmaMSFT-4262 answered

Using a URL Rewrite in the Rule sets in the preview version of Frontdoor show unexpected behaviour with regards to source path selector and leading slash

When trying to configure an Azure Front Door Standard (preview) with an API Origin and a static content origin the Rule engine I came across an issue not allowing me full freedom in rewriting paths.
Using two origins and two routes with path selectors whereas one has a 'fall-thru' /* and the other has /api and /api/* defined the requests from the front-end route to the correct origin.
However, there is a need to do some rewriting of the paths for those requests that match /api/* so a rule set is created attached to that route. However even the most basic rewrite fails. Doing some digging it appears that the URL Path on which the rewrite logic is likely to be performed is missing its leading slash, and setting a Source pattern without leading slash is not allowed.
To ensure there are configurations wherein it is working as expected I also created another configuration which is indeed working as expected (albeit non useful in my situation).

Attached some screenshots of both the working (but useless) and non-working configurations and some evidence (App Insights at the Origin) thereof.

Am I alone in this behavior, is there something I overlooked or is this a bug in the service itself?

Working config
123625-working-rule.png

Working 'evidence'
123605-working-appinsights-metric.png

Non-working config and evidence
123586-non-working-rule.png
123577-non-working-appinsights-metric.png


azure-cdnazure-front-door
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered

Hello @PeterMoolenaar-4590 ,

Apologies for the delay in response.

I checked internally but couldn't find any existing bug relating to your issue. This issue would require a deeper investigation, so if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

Thanks,
Gita

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.