migrate old azure function API's to new azure function without changing url

r_s 0 Reputation points
2023-01-31T12:46:05.9433333+00:00

earlier we were using azure function app (lets name it func-dev-01 ) for making http function with HTTP trigger which create url as

****https://{function_name_dev}.azurewebsites.net/api/{name}?code=12345678910 , ****

but for some reason now we are migrating to new azure function app (lets name it fun-prod-01) which create url

**** https://{function_name_prod}.azurewebsites.net/api/{name}?code=11121314151617 ****

Note: name of both azure function and code are different which is making 2 url's different

How to get same url as old azure function using new azure function ?

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

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,841 Reputation points
    2023-02-02T08:22:52.5666667+00:00

    @r_s Thanks for reaching out. When you create the function then it will follow the domain naming convention as <yourfunctionname>.azurewebsites.net

    Let's say if you have created the function app with name func-dev-01 so it will be accessed by func-dev-01.azurewebsites.net

    How to get same url as old azure function using new azure function ?

    As both function app is different so it cannot be accessed with the same yourcustomename.azurewebsites.net

    The alternative would be mapping your custom domain if this works for your requirement.

    0 comments No comments

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.