Confused about Front Door Routing

Tom Austin 56 Reputation points
2022-01-31T08:33:03.93+00:00

Hi everyone,

I've been trying to setup Front Door (standard preview) with what I think is a fairly basic configuration however I'm hitting an issue and can't seem to find a way past it and I can't find any documentation to help me move forward. All I am attempting to do is route all traffic going to /function to an Azure Function. Here are some fictional details to demonstrate:

frontdoor.z01.azurefd.net/function --> "myfunction.azurewebsites.net"

I have the function set in the origin group and in the route I have patterns to match set to /function/*, I have no rules set on the route.

Currently I'm getting 404 when I try to reach my function at /function and this is where I'm stuck. I have a suspicion I need to add a url rewrite rule but I am unsure how this rule should be configured.

Any help would be greatly appreciated, I pretty sure I'm missing something basic here.

Thanks,

Tom

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
701 questions
{count} votes

Accepted answer
  1. GitaraniSharma-MSFT 49,641 Reputation points Microsoft Employee
    2022-01-31T15:18:00.553+00:00

    Hello @Tom Austin ,

    Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.

    If I understand correctly, you have a Front Door (standard preview) with Azure Function in it's backend origin group and would like to route all traffic going to "/function" path to that Azure Function.

    Since you have already configured the patterns to match set to /function/*. Could you please try setting the origin path to "/" as below in your route and try again in few minutes:

    169943-image.png

    ----------------------------------------------------------------------------------------------------------------

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.