Reputation: 2329
I am trying to write an Azure function that calls a webapi every time a new message is added to an azure service bus queue. However in the connections section I am only able to connect to an Azure Storage queue and not a Service Bus queue. Can someone please share how I can connect an Azure Function to a Service Bus queue and read the messages ?
Upvotes: 0
Views: 1404
Reputation: 35124
The easiest way to do this is to create a new function from ServiceBusQueueTrigger-CSharp
template:
Your existing function is probably configured for Blob Storage Queue trigger (QueueTrigger-CSharp
template).
Upvotes: 3