Azure Functions queue storage trigger lets you listen on Azure Queue Storage. Full documentation can be found on azure.com.
This setup specifies that the hello
function should be run when a new queue
storage item appears on the queue "hello".
Here's an example:
# serverless.yml
functions:
example:
handler: handler.hello
events:
- queue: hello
name: item #<string>, default - "myQueueItem", specifies which name is available on `context.bindings`
connection: AzureWebJobsStorage #<string>, default - "AzureWebJobsStorage", environment variable which contains Storage Account Connection String
// handler.js
'use strict';
module.exports.hello = function (context, item) {
context.log('Received item: ${item}');
context.done();
};
Product