Azure function with EventHub trigger is not executing when an event is received on EventHub

Vinod Ramasubbu 6 Reputation points
2021-06-29T19:09:13.2+00:00

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"
}
]
}

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,909 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
719 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.