I have a pretty simple Function in progress using Service Bus Trigger to trigger the function. I'm attempting to take in a service bus message, do some processing based on the message attributes, then return a new message back to a different topic in my service bus. I've got the function receiving the message from the Topic currently. I've set up the output annotation, and configured the function to return a Service Bus Message, however it doesnt appear that it is sending on the topic. My connection string has read, write and manage permissions, im unsure what the issue is. I see github issues raised on this topic, but i have not been able to find a resolution yet. Basic code snip below to look at, mostly the boilerplate code from VS.
Thanks in advance!
[Function(nameof(Function1))]
[ServiceBusOutput("configupdates",Connection ="ServiceBus")]
public async Task<ServiceBusMessage> Run(
[ServiceBusTrigger("configupdates", "Requests", Connection = "ServiceBus")]
ServiceBusReceivedMessage message,
ServiceBusMessageActions messageActions)
{
_logger.LogInformation("Message ID: {id}", message.MessageId);
_logger.LogInformation("Message Body: {body}", message.Body);
_logger.LogInformation("Message Content-Type: {contentType}", message.ContentType);
// Complete the message
await messageActions.CompleteMessageAsync(message);
return new();
}