Function created from Function App doesn't want to load

NT 25 Reputation points
2024-02-09T16:20:29.5433333+00:00

User's image

Hi, after creating a function in the Azure Portal from the Function Application ressource, the function I created doesn't want to load. This is weird as I created another one that worked prior and now that I create the exact same it doesn't load, even after one hour of wait time. Please let me know if this is an error on my side or on Azure's side and how to solve this. I already tried reloading and creating a new function and even a new function app, but this doesn't solve the issue. Thanks in advance.

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

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,856 Reputation points Microsoft Employee
    2024-02-09T17:33:01.22+00:00

    Hello @NT - Thanks for reaching out, and engaging us on the MS Q&A community.

    For the Portal to display the list of functions and other info, the host process needs to be up and running the Admin API. However, It looks like you had a common ModuleNotFoundError with the azure.cognitiveservices package during deployment which caused the Python worker to throw an unhandled exception which then shut down the Host process.

    Here's a similar thread on SO: Python ModuleNotFoundError: No module named 'azure.cognitiveservices'

    Once you address the issue & redeploy, you should be able to see the details in Portal.

    If you need assistance resolving the dependency issue, please share your requirements.txt, Python code, and other relevant info and we'd be happy to help.


    Please "Accept Answer" if the answer is helpful so that others in the community may benefit from your experience.


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.