Share via

How to fix "No job functions found" error in Azure Functions (Python v2)?

Julian Starks 0 Reputation points
2025-06-23T16:17:25.0333333+00:00

Greetings!

I'm in the Pegasus Accelerator Program. I'm at the point of Creating a simple MVP of my Translation APP. i was awarded a $2000 Microsoft Azure Grant, so I decided to go through Azure to achieve this next step. I have been guided through this process with the help of Chat GPT 4, but these last steps are proving hard to fix with Chat GPT 4's help. I'm not a Tech guy, so could anyone please chime in to help me through this last step?

Details: I’m trying to run an Azure Functions v2 app in Python and keep getting this error:

No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code.


My directory structure is as follows:

vocabrio-function/
├─ translateText/
│  └─ __init__.py
│  └─ function.json
├─ host.json
├─ local.settings.json
├─ requirements.txt

I’ve added the main() method with the required func.HttpRequest and configured the binding correctly. However, when I run:

func start

I get:

No job functions found

I’ve tried:

Updating requirements.txt

Installing Azure Functions tools (npm install -g azure-functions-core-tools@4)

Verifying that the __init__.py contains a valid main() method

Adding the function.json binding

Environment:

Azure Functions v2

Python 3.10

macOS 14.5

Azure Functions Core Tools v4.0.7317

Would appreciate any suggestions or guidance on resolving this error.


Sincerely,

Julian

******@vocabrio.com

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Ranashekar Guda 2,905 Reputation points Moderator
    2025-06-23T18:59:52.53+00:00

    Hello @Julian Starks,
    To resolve the "No job functions found" error in your Azure Functions v2 app using Python, you can follow these steps:

    • Verify Directory Structure: Ensure that your directory structure is correct. You should have a host.json at the root level and a folder for each function (like translateText) containing a function.json file.
    • Check function.json: Make sure that your function.json file is correctly configured. It should define the trigger and bindings for your function. For example, if you're using an HTTP trigger, it should look something like this:
           {
           "bindings": [
             {
               "type": "httpTrigger",
               "direction": "in",
               "authLevel": "function",
               "methods": ["get", "post"]
             },
             {
               "type": "http",
               "direction": "out"
             }
           ]
         }
      
    • Ensure __init__.py Contains main(): Confirm that your __init__.py file contains a valid main() method that handles the incoming request. It should look something like this:
           import logging
         import azure.functions as func
         
         def main(req: func.HttpRequest) -> func.HttpResponse:
             logging.info('Python HTTP trigger function processed a request.')
             return func.HttpResponse("Hello, World!")
      
    • Check for Errors in Logs: Use the Azure Functions Core Tools to check for any errors in the logs that might provide more insight into the issue. You can run func start --verbose to get more detailed output.
    • Update Azure Functions Core Tools: Ensure that you are using the latest version of Azure Functions Core Tools. You can update it using the command:
           npm install -g azure-functions-core-tools@4
      
    • Reinstall Dependencies: If you've updated your requirements.txt, make sure to reinstall the dependencies by running:
           pip install -r requirements.txt
      

    By following these steps, you should be able to resolve the "No job functions found" error and successfully run your Azure Functions app.

    Hope this helps. Do let us know if you any further queries.

    Was this answer helpful?

    0 comments No comments

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.