Blob input binding showing up as output

William Ritchie 40 Reputation points
2025-05-23T14:47:03.8433333+00:00

Hi,

I am new to Azure functions. I can't seem to solve this issue.

I followed the guide here: Azure Blob storage input binding for Azure Functions

They give the following example for Python. The only things I changed are the connections which are stored in an environment variable and the file paths:

import logging
import os
import azure.functions as func

app = func.FunctionApp()

@app.function_name(name="BlobOutput1")
@app.route(route="file")
@app.blob_input(arg_name="inputblob",
                path="form-data/test1.txt",
                connection=os.getenv("AzureWebJobsStorage"))
@app.blob_output(arg_name="outputblob",
                path="form-data/test2.txt",
                connection=os.getenv("AzureWebJobsStorage"))
def main(req: func.HttpRequest, inputblob: str, outputblob: func.Out[str]):
    logging.info(f'Python Queue trigger function processed {len(inputblob)} bytes')
    outputblob.set(inputblob)
    return "ok"

Whenever I deploy and try to trigger this function, I get an error, and when I look at the integration section, it shows both bindings to be outputs:
User's image

Am I doing something wrong?

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

Accepted answer
  1. Ranashekar Guda 2,590 Reputation points Microsoft External Staff Moderator
    2025-05-26T19:10:20.9533333+00:00

    Hello @William Ritchie,
    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue: Blob input binding showing up as output

    Solution: switching to a v1 function and created the bindings in function.json and was able to get it working.

    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.


0 additional answers

Sort by: Most 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.