The request URI is invalid. This is for a single AFD profile with 2 endpoints

Matthew Barrett 136 Reputation points
2025-02-24T19:05:34.4233333+00:00

I have a single AFD standard profile to support two endpoints and two routes. One endpoint and route is for www. The other is for a blob storage account. However, I get an invalid URI error when I try to access the custom domain of the storage account.
I have other AFDs setups with a single endpoint and multiple routes for a multi-tenant environment that works fine.

Is the problem the two endpoints with different routes?

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

Accepted answer
  1. Sai Prasanna Sinde 6,645 Reputation points Microsoft External Staff Moderator
    2025-02-25T03:45:23.3266667+00:00

    Hi @Matthew Barrett

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: I have other AFDs setups with a single endpoint and multiple routes for a multi-tenant environment that works fine. Is the problem the two endpoints with different routes?

    Solution: Unlike CDN, AFD requires the custom domain to also be added to the storage account.

    Go to your Storage account, under Security + Networking select Networking. Then in the center menu select Custom domain, enter your domain name, and select "Use indirect CNAME validation". You'll need a CNAME record for this to work. asverify.customdomainname -> asverify.storagename.blob.core.windows.net


    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    2 people found this answer helpful.
    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.