-
Notifications
You must be signed in to change notification settings - Fork 451
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
Question: How to actually use outbound blob binding in Azure Functions? #975
Comments
This lacks documentation, but in the integration tab, go to advanced and change the 'direction' of your blob binding to |
Related to #49. We need to prioritize making this easier to use, I agree. This issue keeps falling onto the back burner. |
Duplicate of #49, which is moved to an earlier milestone. |
How do you set the binding to inout if I am using the attributes in VS2017 preview and don't have a function.json file? e.g. public static async Task Run([BlobTrigger("inputcontainer/{name}", Connection = "AzureWebJobsStorage")]CloudBlockBlob myBlob, [Blob("outputcontainer/{name}", Connection = "AzureWebJobsStorage")]CloudBlockBlob outputBlob, string name, TraceWriter log) |
@nzigel In the future, please open a new issue so it's not lost. That example should automatically use inout. If it doesn't, that's a bug . |
CloudBlockBlob output binding is not working for me? is this supported today? |
No there isn't an output binding to CloudBlockBlob. You could bind to CloudBlobContainer or CloudBlobDirectory and create blobs using the native SDK APIs. |
Here's the following blockers I've hit:
async
so cannot useout
paramsTask<Stream>
orTask<AnyMeaningfulCloudBlobTypes>
, using$return
binding. -Cannot bind parameter 'outputBlob' to type CloudBlockBlob. Make sure the parameter Type is supported by the binding.
. All the documentation so far I've seen for this only return aTask<string>
?CloudBlockBlob
as an out binding and use methods likeUploadFromStreamAsync(...)
to write to it -Cannot bind blob to CloudBlockBlob using access Write.
Stream
orCloubBlobStream
and then write to those streams - however, I have no way of setting the properties on the blob using these objects (for instance, I want to set theContentType
).There appears to be no way of writing to a blob and setting properties using bindings? Do I have to drop down to directly using the .Net Azure storage api?
The text was updated successfully, but these errors were encountered: