Head over to the forums to search for your questions and issues or post a new one.
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
x-azure-settings:
name: item #<string>, default - "myQueueItem", specifies which name it's 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();
};