Azure Function App works locally. When deployed, Azure cannot detect my function. No errors, no indication as to why.

Tyler Suard 55 Reputation points
2025-10-31T02:43:14.1933333+00:00

As the headline says, my app works perfectly locally. I am using the same runtime and environment variables in my Azure function app. The app will not detect my function. I understand this is usually because of an error, but there is no error in the deployment logs, no error in the streaming logs for the runtime, and there are no application logs.

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

Answer accepted by question author
  1. Pravallika KV 1,230 Reputation points Microsoft External Staff Moderator
    2025-11-03T03:13:59.6233333+00:00

    Hi Tyler Suard,

    Thanks for reaching out to Microsoft Q&A.

    When this issue happens, most of the times it's a code structure or configuration issue preventing Azure from discovering the function during deployment.

    1. Function not placed correctly or missing files:

    Azure discovers functions by scanning subfolders under wwwroot for all the function related files.

    If the files are missing or malformed, no functions are registered.

    • Check after deployment (via Kudu or VS Code’s “Remote Explorer”): /site/wwwroot/<your_function_name>/
    • If missing: The deployment didn't pack the function properly.
    1. Check all the required App Settings are available in Azure function app.
    2. Make sure deployed directory contains the main function files.
    3. Make sure there are no particular differences in the environment or configuration settings between local and Azure deployments
    4. If your function is Python V2, most of the times the deployment issue occurs because of missing required modules in requirements.txt or code structure.
    • Add all the modules required to run your function are added in requirements.txt file to get installed during deployment.
    1. Check the activity log or Kudu console for any startup errors:
    • Navigate to Application insights of your function app=>Run query Exceptions=>check if there are any errors or exceptions recorded which may be leading to deployment issues.

    Hope it helps!


    Please do not forget to click "Accept the answer” and Yes, this can be beneficial to other community members.

    User's image

    If you have any other questions, let me know in the "comments" and I would be happy to help you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.