Custom Domain only works for one Azure Function, how setup multiple functions

EnenDaveyBoy 61 Reputation points
2022-10-30T13:42:07.953+00:00

so a custom domain set on an azure function calls one azure function, so how do i configure a domain name path to call an azure function so i can setup multiple

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,211 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,829 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Udaiappa Ramachandran 726 Reputation points MVP
    2022-10-31T03:19:13.45+00:00

    Configuring custom DNS in Azure Functions:

    1. Create a Function App
    2. Create a function with HTTP Trigger (Make sure to select the appropriate Authorization Level) -- Use code or portal of your choice of IDE
    3. Deploy your code to the functions app
    4. Goto FunctionApp -->TLS Settings-->Upload your Domain certificate
    5. Go to FunctionApp-->Custom DNS-->Add the mapping (You must complete recordset into your DNS pointing to the function as CNAME)
    6. Complete secure binding

    You can now browse to your <DNS>/api/<YOUR HTTP FUNCTION>

    P.S: If you run your function in multiple regions then create a TXT record and then use a Global Load balancer such as Traffic Manager or Front Door name to map to CNAME

    0 comments No comments