Reputation: 13856
How do we pump out messages from service bus topic's subscription. I have been able to receive from service bus queue successfully.
public class Functions
{
public static void ProcessQueueMessage([ServiceBusTrigger("mseoikeyword")] BrokeredMessage message, TextWriter log)
{
string strMsg;
strMsg = message.GetBody<string>();
log.WriteLine(strMsg);
}
}
Upvotes: 0
Views: 928
Reputation: 25994
Using the same trigger with topic path and subscription name as per documentation.
Ensure topic and subscription exist as they will not be created by the trigger.
Upvotes: 1