w2olves
w2olves

Reputation: 2329

Azure functions to Azure Servicebus connection

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

Answers (1)

Mikhail Shilkov
Mikhail Shilkov

Reputation: 35124

The easiest way to do this is to create a new function from ServiceBusQueueTrigger-CSharp template:

enter image description here

Your existing function is probably configured for Blob Storage Queue trigger (QueueTrigger-CSharp template).

Upvotes: 3

Related Questions