0
votes

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 ?

1

1 Answers

3
votes

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).