I get this error:
Microsoft.Azure.WebJobs.Host: Only the 'Read' FileAccess mode is supported for blob container bindings.
And according to docs, the out should be supported?
I initially tried it with Attributes
added in the method definition. However, I get the same error, so I removed all the attributes in my method definition, so the new method definition is:
public static async Task RunAsync(CloudBlockBlob myBlob, string name,
IAsyncCollector<ProfilePictureUrl> client, CloudBlockBlob resizedBlob, TraceWriter log)
Here's my function.json
{
"bindings": [
{
"type": "blobTrigger",
"path": "profile-pictures/{name}",
"direction": "in",
"name": "myBlob"
},
{
"type": "documentDB",
"databaseName": "TestDB",
"collectionName": "ResizedProfilePictures",
"createIfNotExists": true,
"direction": "out",
"name": "client"
},
{
"type": "blob",
"path": "resized-profile-pictures",
"direction": "out",
"name": "resizedBlob"
}
],
"disabled": false,
"scriptFile": "..\\Test.Functions.dll",
"entryPoint": "Test.Functions.ResizeImage.RunAsync"
}
I'm using Azure CLI beta 100. If I removed resizedBlob
from method definition and function.json, then it works fine.