Hi, i’m trying to make un function that listen a Azure service bus queue, i used the example given here : https://serverless.com/framework/docs/providers/azure/events/servicebus/
But, after deploying on Azure, when i go to my function i have this message :
Error:
Function error (email) : The binding type(s) ‘serviceBusTrigger’ are not registered. Please ensure the type is correct and the binding extension is installed.
And of course my function don’t work.
Here is my serverless.yml :
service: email-consumer
provider:
name: azure
location: West Europe
plugins:
- serverless-azure-functions
package:
exclude:
- .idea/**
- node_modules/**
- .gitignore
- .git/**
functions:
email:
handler: handler.email
events:
- serviceBus:
x-azure-settings:
name: item
queueName: email-send-request
accessRights: listen
connection: ServiceBusConnection
package.json :
{
"name": "email-consumer",
"version": "0.1.0",
"description": "email consumer",
"main": "handler.js",
"author": "Dysnomia",
"license": "UNLICENSED",
"dependencies": {
"serverless-azure-functions": "^0.7.0"
}
}
email-function.json :
{
"disabled": false,
"bindings": [
{
"type": "serviceBusTrigger",
"direction": "in",
"name": "item",
"queueName": "email-send-request",
"connection": "ServiceBusConnection",
"accessRights": "listen"
}
],
"entryPoint": "email",
"scriptFile": "handler.js"
}