Hello Prasenjit Paul (HCL Technologies Corporate Ser)
Based on the code you provided, it seems that you are using the ServiceBusOutput
binding to send messages to a Service Bus topic subscription.
One possible reason for this issue could be that the subscription rule is not configured correctly. You mentioned that the subject field in the message and subject for rule in subscription are the same, but it's possible that there is a typo or a mismatch in the subject name. Please double-check the subject name in both the message and the subscription rule to ensure that they match exactly.
Another possible reason could be that the messages are being sent to a different subscription or topic than the one you are expecting. Please verify that the topic2
and subscription1
variables in the ServiceBusOutput
and ServiceBusTrigger
attributes are set correctly.
Additionally, you mentioned that sending messages from a console application works fine. This suggests that the issue may be specific to the function app code. Please ensure that the function app is running correctly and that there are no errors or exceptions being thrown during message processing. If none of these suggestions resolve the issue, please provide more information such as any error messages or exceptions that you are seeing, and any additional code or configuration details that may be relevant.