This is the first time to use Azure and I am trying to make a pipeline using Azure. What I want to do is to make multiple outputblobs so that I can duplicate a file.
def main(inputblob: func.InputStream,
outputblob_first: func.Out[func.InputStream],
outputblob_second: func.Out[func.InputStream],
outputblob_third: func.Out[func.InputStream]):
outputblob_first.set(inputblob)
outputblob_second.set(inputblob)
outputblob_third.set(inputblob)
This is init.py.
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "inputblob",
"type": "blobTrigger",
"direction": "in",
"dataType": "binary",
"path": "blobcontainer/{name}",
"connection": "AzureWebJobsStorage"
},
{
"name": "outputblob_first",
"type": "blob",
"path": "uploadblobcontainer/{blobtrigger}-first",
"dataType": "binary",
"connection": "AzureWebJobsStorage",
"direction": "out"
},
{
"name": "outputblob_second",
"type": "blob",
"path": "uploadblobcontainer/{blobtrigger}-second",
"dataType": "binary",
"connection": "AzureWebJobsStorage",
"direction": "out"
},
{
"name": "outputblob_third",
"type": "blob",
"path": "uploadblobcontainer/{blobtrigger}-third",
"dataType": "binary",
"connection": "AzureWebJobsStorage",
"direction": "out"
}
]
}
and this is the json file, function.json
However, it does not work what I expected. I could not find where I did mistake and I want to solve this problem. Can you guys give me some solutions?

func.Out[str]instead offunc.Out[func.InputStream]? If not try it out. PS:Host lock lease acquired by instance ID and Singleton lock acquiredis always there. Post full log instead of what YOU think is irrelevant.