Can't view functions in one function app but can in another

Marilia Bognandi 20 Reputation points
2024-07-11T08:03:15.8866667+00:00

I have two function apps, app1 and app2. App1 can display and run its functions in the 'overview' section, but the same doesn't apply for app2. Both apps are based on the same code and only have different keys. In the wwwroot folder, I can see the same files for both apps. This must be a config issue, but I'm unsure how to troubleshoot this further. When trying out:

GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions?api-version=2023-12-01

I indeed get the list of functions for app1. But for app2 i get:
{

"value": [],
"nextLink": null,
"id": null

}

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

Accepted answer
  1. Luis Arias 7,121 Reputation points
    2024-07-13T16:51:57.0033333+00:00

    Hi Marilia Bognandi

    If the function App itsn't displayed on the functions running but the files are there It's usually because there are some issues on code. I suggest you try using Azure functions core tools (https://learn.microsoft.com/en-us/azure/azure-functions/functions-run-local) to run on local and validate the function app works as expected: func start

    When function running on local without problem you can deploy to the Azure function service again

    References:

    If the information helped address your question, please Accept the answer.

    Luis

    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.