Azure B2C - Frontdoor fallback url

Niek Jannink 1 Reputation point
2022-09-01T18:33:09.43+00:00

I have setup an Azure frontdoor for a custom domain of my Azure AD B2C tenant using the following instructions:

https://learn.microsoft.com/en-us/azure/active-directory-b2c/custom-domain?pivots=b2c-user-flow

This is all working fine, but I would like to add a redirect when somebody manually types the custom domain url, eg login.mydomain.com.

Now it lands on the same page as when you type my-tenant.b2clogin.com giving the following error:

The resource you are looking for has been removed, had its name
changed, or is temporarily unavailable.

Instead of that error I would like that it redirects to my login url like app.mydomain.com/authentication/login.

Any idea how to acomplish this in the Azure Frontdoor config or Azure AD B2C config?

Azure Front Door
Azure Front Door
An Azure service that provides a cloud content delivery network with threat protection.
573 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,633 questions
{count} votes

4 answers

Sort by: Most helpful
  1. JimmySalian-2011 41,916 Reputation points
    2022-09-01T20:08:08.057+00:00

    Hi Neik,

    The feature or functionality you are looking for is called URL rewrite and Azure FD offers that as part of Standard and Premium tier, front-door-url-rewrite

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

    0 comments No comments

  2. Niek Jannink 1 Reputation point
    2022-09-01T21:14:11.203+00:00

    Hello Jimmy,

    That seems to work. I used the following solution. Can you verify it this is correct or should I change something?

    237083-image.png

    0 comments No comments

  3. Niek Jannink 1 Reputation point
    2022-09-01T21:14:43.463+00:00

    I tried with Request path - Not Any, but that didn't work

    0 comments No comments

  4. Akshay-MSFT 16,026 Reputation points Microsoft Employee
    2022-09-14T08:23:03.717+00:00

    Hello @Niek Jannink ,

    Thanks for your time and patience. I was able to research on this and found a possibility to achieve this.

    1. Create a front door applications (this should be the Web app you want the users to be redirected to, as per: https://learn.microsoft.com/en-us/azure/frontdoor/create-front-door-portal#create-two-web-app-instances
    2. In the Origin group blade select Add a new origin group > For the first origin, enter WebApp1 for the Name and then for the Origin Type select App services. In the Host name, select webapp-contoso-001.azurewebsite.net (this must be your app URL)

    ![![![240943-image.png]1]1]1

    1. Once completed, you can access the frontend host you created. In a browser, enter the endpoint hostname. For example contoso-frontend.z01.azurefd.net. Your request will automatically get routed to the nearest server from the specified servers in the origin group. You will see the application information page.

    Thanks,
    Akshay Kaushik

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

    0 comments No comments