Hi
I understand that if the pattern to match /app/api/resources
should go to server1
, then similarly, the pattern to match /app/api/resourcesv2
should go to server2
.
You can achieve this by configuring two routes and two backend pools.
In the first routing rule we have configure the patterns to match like this.
similar to the second rule also.
I did a lab on my end using the above scenario, and I was able to achieve this.
I take the two app services
App Service 2
App Service 2
And i create the two routes.
Routing rule1
In the origin path : /api/resources/
Routing rule2:
In the origin path : /api/resourcesv2/
If a request comes from https://endpoint021d9dxa4fsazbhgza9.a03.azurefd.net/app/api/resources/welcome.html
, it should go to App Service 1 backend.
Also, if the request comes from
https://endpoint021-d9dxa4fsazbhgza9.a03.azurefd.net/app/api/resourcesv2/welcome.html
, it should go to the App Service 2 backend.
see in logs:
I hope this has been helpful!
If above is unclear and/or you are unsure about something add a comment below.
Your feedback is important so please take a moment to accept answers. If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!
Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.