Read this on the main serverless docs site¶
Queue Storage Trigger¶
Azure Functions queue storage trigger lets you listen on Azure Queue Storage. Full documentation can be found on azure.com.
Queue Storage Events¶
Queue Storage Trigger¶
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