unable to retrieve function in Azure Function APP

Jawher Khalifa 40 Reputation points
2024-10-12T15:33:30.0766667+00:00

The problem "internal host error" appears every time I attempt to build a function (HTTP Trigger) in a Function APP. However, after several attempts, I was able to successfully create the function. After writing the function and testing, I exit the page, but upon returning to the same function, I continually receive the message "error retrieving the function." Eventually, I am unable to locate the function at all because it has been automatically deleted.

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,867 questions
Azure Startups
Azure Startups
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Startups: Companies that are in their initial stages of business and typically developing a business model and seeking financing.
784 questions
{count} votes

Accepted answer
  1. Abiola Akinbade 28,325 Reputation points Volunteer Moderator
    2024-10-12T16:47:12.8633333+00:00

    Hello Jawher Khalifa,

    Thanks for your question.

    I will recommend you set up application insights telemetry

    https://learn.microsoft.com/en-us/azure/azure-monitor/app/opentelemetry-enable?tabs=python

    It will show you errors in the app insights exception panel

    Please check Functions metrics for the HTTP Server Errors at the time of the issue.

    You can use the diagnostic steps here:
    https://learn.microsoft.com/en-us/azure/azure-functions/functions-diagnostics#start-azure-functions-diagnostics

    Search for Azure Functions diagnostics.You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Anton M 1 Reputation point
    2025-06-14T05:34:02.16+00:00

    I had this issue. So I chose to delete the whole function app and create a new.

    I was creating the functions inside Azure. Now, in my new function app, only VS Code Desktop, and Other editors or CLI is enabled, not the option to create it on the azure site. so I cannot even do what I was doing before.

    The problem could be related to using existing resource group. Recommended is to always create a new resource group for new function apps

    Nevertheless, the only way I could get past the problem was to learn to do it from VS Code.

    0 comments No comments

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.