Azure function disappears after running for a while

Charles Huang 21 Reputation points
2023-03-20T11:59:55.9833333+00:00

Hi Azure team, recently I'm trying out Azure function app but run into weird issues where deployed function disappears after running for a short period of time, the steps to reproduce are as below:

  1. create function app "echo4"
  2. verify https://echo4.azurewebsites.net is accessible
  3. create function "echo42" using visual studio code and deploy.
  4. verify https://echo4.azurewebsites.net/api/echo42 is accessible and returns 200 with result, and in azure portal, "echo42" is visible in functions list.
  5. after certain time (not sure exactly how long, last tested was 30 mins - 45 mins)
  6. https://echo4.azurewebsites.net is still accessible, but https://echo4.azurewebsites.net/api/echo42 is not longer accessible, returning 404 when invoking https://echo4.azurewebsites.net/api/echo42
  7. navigate to azure portal, "echo42" is no longer visible

Not sure what actually causes it but it's very annoying, tried redeploying the function but after a while it disappeared again, repeated a few times but results were all the same.

Function model is v4, runtime is nodejs 18.

Any insight would be very appreciated.

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