How to migrate App Service to an Azure Function?

a.sujeta 21 Reputation points
2021-02-11T15:12:48.157+00:00

We want to change App Service to an Azure Function but we have old apps that point to the .....azurewebsites.net url. How can we do this and preserve the current url of the app or redirect from the app service link to the new azure function endpoint.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,190 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,670 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,641 Reputation points Microsoft Employee
    2021-02-12T10:43:07.517+00:00

    You could delete the web app and create a function app with the same, but this would warrant some downtime. Also, if the name is not unique, it could be taken by others in the time between deleting and recreating, though very unlikely.

    Another option would be to redirect all requests to your function app by return HTTP 308 responses for all paths.

    Ideally, while the default endpoints are useful to getting started, you should opt for using a Custom Domain and/or a gateway like Azure APIM or Application Gateway.

    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.