Function App: Share single custom domain across two function apps (public and private) with split DNS.

RobA 1 Reputation point
2022-06-22T03:59:42.82+00:00

Hello,

What is the best approach to sharing a custom domain cross two Function Apps (one public / one private)?

  • Single custom domain with split DNS
  • A public accessible Function App
  • A privately accessible Function App via Endpoint/vNet/ExpressRoute

Both instances of the function apps are logically identical, operating on different source data.
The app uses the source IP address of the request, to return a specific service URL.

Attempts to add the custom domain to the second function fails, with error Hostname is already being used in the following App: <function name>. Please remove the hostname from <function name> ,and try again.

Regards
Rob

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,404 questions
{count} votes

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.