Azure function with EventHub trigger is not executing when an event is received on EventHub
Azure function with EventHub trigger is not executing when an event is received on EventHub.
Find below the function's configuration
Runtime : 3.0.15733.0 ( windows )
language: node js ~14
host.json:
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
},
"extensionBundle": {
"id": "Microsoft.Azure.Functions.ExtensionBundle",
"version": "[2.*, 3.0.0)"
}
}
local.settings.json:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "",
"FUNCTIONS_WORKER_RUNTIME": "node",
"xxxxxxxxxx_RootManageSharedAccessKey_EVENTHUB": "Endpoint=sb://xxxxxxxx.servicebus.windows.net/;SharedAccessKeyName=RootManageSharedAccessKey;SharedAccessKey=/lxxxxxxxjxU=;EntityPath=hub1"
}
}
function.json:
{
"bindings": [
{
"type": "eventHubTrigger",
"name": "eventHubMessages",
"direction": "in",
"eventHubName": "hub1",
"connection": "xxxxxxxxxx_RootManageSharedAccessKey_EVENTHUB",
"cardinality": "many",
"consumerGroup": "hub1cg"
}
]
}