locating function.json file Azure function

Mohamed Hussein 610 Reputation points
2025-01-29T02:46:53.9666667+00:00

Good Day,

I've HTTP trigger based Python Azure function, i wanted to use durable function

As i far got i should use (starter) at the declaration of the function

async def HusAzFuncBulkUploadMSISDN(req: func.HttpRequest, starter: str) -> func.HttpResponse:

However, when i manually added starter: str, i got error

cannot load the HusAzFuncBulkUploadMSISDN function: the following parameters are declared in Python but not in function.json: {'starter'}

I can locate the hosted HusAzFuncBulkUploadMSISDN.json

but could not locate HusAzFuncBulkUploadMSISDN.json at the source code, to amend the binding

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

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 1,150 Reputation points Microsoft Vendor
    2025-01-29T06:20:34.34+00:00

    Hi @Mohamed Hussein ,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    To address the issue, you're experiencing with the starter parameter in your Azure Function, it's important to ensure that the function.json file accurately reflects the parameters defined in your function. The error message suggests that the starter parameter is not included in the function.json file.

    • In a Durable Functions configuration, the function.json file must contain the required bindings for the function, including the starter parameter. This file is usually generated automatically when you create the function, but if you can't find it in your source code, you may need to create or edit it manually.

    Here’s what you can do:

    • Find the function.json file: It should be located in the folder associated with your function, usually named after your function (e.g., HusAzFuncBulkUploadMSISDN/function.json).
    • Edit the function.json file: Make sure it includes a binding for the starter parameter. It should resemble the following structure:
      {
         "bindings": [
           {
             "type": "httpTrigger",
             "direction": "in",
             "authLevel": "function",
             "methods": ["post"],
             "route": "your-route"
           },
           {
             "type": "orchestratorTrigger",
             "direction": "in",
             "name": "starter"
           }
         ]
       }
    
    
    • Re-deploy your function: After implementing the required changes, re-deploy your function to ensure that the updates are applied.

    If you still encounter issues, make sure that your local development environment is properly configured and that you are using the correct templates for Durable Functions.

    To help you better understand, kindly refer to the documentation below:

    I hope this answers your query! Let me know if you require any additional help or clarification.

    1 person found this answer 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.