I am currently using python in azure functions to create a timer trigger that aggregates data from blob storage, and puts the result in cosmosDB.
My problem is as follows: When I use a specific file in the path binding the functions runs as expected. Whenever I change it (so as to take all blobs in the container) I get the following error:
Microsoft.Azure.WebJobs.Host: No value for named parameter 'test'.
Below is my function.json bindings
{
"bindings": [
{
"name": "blobTrigger",
"type": "timerTrigger",
"direction": "in",
"schedule": "0 0 * * * *",
"connnection": "AzureWebJobsStorage",
"path": "blob/{test}"
},
{
"type": "blob",
"name": "inputBlob",
"path": "blob/{test}",
"connection": "AzureWebJobsStorage",
"direction": "in"
},
{
"type": "documentDB",
"name": "outputDocument",
"databaseName": "database1",
"collectionName": "functioncollection",
"createIfNotExists": false,
"connection": "development_DOCUMENTDB",
"direction": "out"
}
],
"disabled": false
}
Unsure if connection to storage is supposed to be in the trigger binding also, but when ive tried without it i still get the same error.
Do any of you have any idea how to solve this?
Thanks.