Hi srikanth t,
It looks like your Azure Function is set up to read from one Service Bus queue and write to another, but the output message isn't being sent correctly.
Here's what to check:
Output Binding Configuration:
Make sure the queueName
in your output binding is correctly set to the name of the second Service Bus queue (the target queue where you want to send the message). It seems you are using the same queue name (poctestqueue
) for both input and output. Change the output queue name to the correct target queue name.
Setting the Output Message:
In your index.js
, you should not declare a new outputSbMsg
variable. Instead, directly assign the message to the context’s bindings
object like this:
context.bindings.outputSbMsg = mySbMsg;
This will ensure the message is sent to the output queue.
After making these changes, test your function again to ensure everything works.
For your reference, please review the following documentation for further clarification:
Service Bus Trigger Binding in Azure Functions
Also, please refer to these thread for more clarity on the issue.
I hope this addresses your query. Please let me know if you need any further assistance or clarification.