You need to modify the Route configurations to match the below:
- Patterns to match:
/appservice1/*
and/appservice2/*
- Origin path:
/
- Rulesets: None
For reference, check https://learn.microsoft.com/en-gb/azure/frontdoor/front-door-url-rewrite?pivots=front-door-standard-premium#source-pattern under the Source Pattern heading. It's honestly easily missable and took me ages to figure out myself.
Essentially, the Ruleset's Source Pattern
only occur after the Patterns to match
path. So it would never rewrite it as doesn't account for the whole URL.
The approach would be to instead have your Route sending you to your Origin's /
path. By default, leaving it empty carries the requested path forward to the appservice.
Best to test it by hooking up your Frontdoor's Diagnostic settings (you want Access Log most of all) to a Log Analytics Workspace, which you can tie to an Application Insights. This will show you the final https://this-is-my-app-service-1.azurewebsites.net URLs and how they interact with Frontdoor and the rulesets.