Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blob Input is assigned out direction #51

Closed
MarekLani opened this issue May 26, 2017 · 5 comments
Closed

Blob Input is assigned out direction #51

MarekLani opened this issue May 26, 2017 · 5 comments
Assignees
Milestone

Comments

@MarekLani
Copy link

MarekLani commented May 26, 2017

I have been trying to define Blob input for function like this:
public static void Run([EventHubTrigger("functioneventhub", Connection = "EventHubConnectionString")]Message myEventHubMessage, [Blob("samples-workitems/{name}")] string myInputBlob, TraceWriter log)

However the generated functions.json file is assigning out direction:

{
      "type": "blob",
      "path": "samples-workitems/{name}",
      "direction": "out",
      "name": "myInputBlob"
 }
@lindydonna
Copy link

Should add the parameter AccessMode for Blob attribute

@MarekLani
Copy link
Author

@lindydonna thank you. I was not aware of existence of this parameter. I am however getting into next problem. I am trying to bind Blob input to CloudBlockBlob or ICloudBlob object, but I am getting following error: Microsoft.Azure.WebJobs.Host: Can't bind Blob to type 'Microsoft.WindowsAzure.Storage.Blob.ICloudBlob'. I find that in order to bind CloudBlockBlob I need to use direction inout so I set access to ReadWrite, but this also did not help. I found that you were pointing to this issue in WebJob sdk repo: Azure/azure-functions-host#89 so please is it even supported scenario?

@lindydonna
Copy link

@MarekLani You're right, I just filed #52

@MikeStall
Copy link

This will get solved with Azure/azure-functions-host#1508

@lindydonna lindydonna added this to the 1.0 milestone Jul 12, 2017
@lindydonna
Copy link

Closing as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants