All of my Azure Functions return 404, with no errors/exceptions

SFire 0 Reputation points
2024-03-27T17:48:23.93+00:00

This is regardless of whether I set the function to anonymous or function level auth.

They all show as enabled within portal - with correct names, config and URL.

The urls are correct and include the correct code, provided by the Azure Portal.

The Functions App exists at its base domain, but all function urls return 404 - even something as simple as:

[FunctionName("TestOrder")]
public static async Task
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,292 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Grmacjon-MSFT 16,101 Reputation points
    2024-04-12T00:07:01.0233333+00:00

    Hello @SFire we are sorry to hear you're facing this issue with your Functions app.

    Even though you mentioned no errors, there might still be valuable logs captured by Azure Monitor or Application Insights if you have it enabled. Can you check your logs to see if has additional information about the 404 error?

    One of the common causes of the Azure Function HTTP trigger 404 error is an incorrect function name or URL path. The function name and URL path should match the values specified in the function code and function.json file. Any mismatch in the function name or URL path can result in a 404 error. This could be due to a typo in the URL.

    Another scenario where you might encounter a 404 error despite using the correct URL and function name could be related to the ROUTE property. If the route specified in your function code or function.json file doesn’t match the route in your URL, you might get a 404 error

    If you are still facing this issue after verifying the above please let us know so we can assist you further.

    0 comments No comments