简体   繁体   中英

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

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?

You can't. The DNS is provided / handled by AZURE. For such reasons, you should use custom domain and map the way you want:

eg https://mycustomdomain.com (prod)

https://dev.mycustomdomain.com (dev)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM