I have a very frustrating issue
[FunctionName("MyFunction")]
public async Task MyFunctionAsync(
[ServiceBusTrigger("%AzureTopicName%", "mysubscription", Connection = "event-bus-connection")] Message message)
{
//My logic here
}
This never gets hit
I have checked and verified all configuration and there are no issues
Messages are being written to the service bus which would not happen if there was a config issue
However, my trigger never gets fired even though messages are in the subscription
Has anyone ever seen this?
This is local execution not Azure
Paul
I have followed below steps and able to trigger the Service Bus Topic Triggered Azure function.
Created a Service Bus Topic trigger Azure Function.
Created a Service Bus, Topic and a subscription inside the Topic.
Code Snippet:
local.settings.json:
Console Output: