In Azure FrontDoor let's say I have the following domain: https://example.com
In Azure APIM I have an API with the suffix of "test-destination" (so when accessed directly via APIM the url is - https://apim-example.azure-api.net/test-destination)
In Azure FrontDoor I would like requests to https://example.com/test-source to be forwarded to the APIM "test-destination" API
Is that possible?
Yes, it is possible the desired routing configuration with Azure Front door and Azure API Management
Create an Azure front door with backend pool as API Management like below:
In routing rule, enter the path pattern you want to route /test-source
.
Then, configure the API Management instance to route requests to the test-destination
. In API backend configuration enter the hostname of Front Door instance example.com
in the Backend URL and the path of the API that you want to route to /test-destination
.
To know more in detail, check these references:
URL Redirect - Azure Front Door | Microsoft Learn
Configure Azure Front Door in front of Azure API Management | Microsoft Learn
Additionally, As per MsDoc you can use url rewrite to change the request path like below:
Make sure Associate rule set with route like below: