Andrey M.
Andrey M.

Reputation: 3806

Upload file to blob storage with azure functions

In my scenario, the function needs to poll a remote service and when new item appears the function should upload a new file to blob storage. There is an example in the documentation of how to save data to blob storage Blob binding example in Node.js:

// Copy blob from input to output, based on a queue trigger
module.exports = function(context) {
    context.log('Node.js Queue trigger function processed', context.bindings.myQueueItem);
    context.bindings.myOutputBlob = context.bindings.myInputBlob;
    context.done();
};

But it is not clear how to specify a different name for the uploaded file?

Upvotes: 1

Views: 3891

Answers (1)

evilSnobu
evilSnobu

Reputation: 26414

Currently the name of the output blob is controlled by the WebJobs SDK you're running atop of. There's no IBinder exposed yet for JS to do this imperatively (like you can do for C#).

outblob

This is a better answer that links to the GitHub issue where the upcoming feature is being tracked.

Upvotes: 2

Related Questions