Hi @Jingkan He ,
Thanks for using Microsoft Q&A!!
You can refer to the documentation to understand the basic scenario of using Service Bus client library (.NET) for sending a batch of messages to a service bus queue and then receiving them. This tutorial provides step by step instructions to create a service bus queue and then using the .NET SDK.
You can also refer to the existing samples which covers various scenarios like "Authenticating, using CRUD operations, managing dead letter queues, etc." of Service Bus.
Please refer to Azure Service Bus trigger for Azure Functions which talks about using Azure Service Bus along with Azure Functions where Azure function is triggered by the Service Bus queue message. This documentation also talks about setting up the Service Bus connection string.
You basically need to use the "Connection" Property in Function bindings to define the function app setting name which holds Service Bus Connection String. (See Screenshot below)
Function App Bindings:
Function App Settings:
Azure function looks for app setting AzureWebJobsServiceBus
for the Service Bus connection string when the explicit Connection
property is not defined.
Please let me know if you have any other questions.
Thanks
Saurabh
Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.