How does one test Azure Service Bus Queues Locally?
1.I have to rename our Queue to something else, as some other developers or already running function may consume it
Example:
a) Original Queue: Product
b) Test Queue: Test
2.We also have Azure functions picking up queues, so also rename the Service Bus Trigger.
However, its still not working?
Does Anything else need to be changed?
I see Queue messages being sent with Service Bus Explorer, but they are not being event handle or responded with our process action.
[FunctionName(nameof(TestAsync))]
public async Task TestRollAsync(
[ServiceBusTrigger("test", Connection = "ServiceBusConnection", IsSessionsEnabled = false)] Message sbMessage)
{
var cmessage = Encoding.UTF8.GetString(sbMessage.Body);
Test msg = null;
try
{
msg = JsonConvert.DeserializeObject<Test>(cmessage);
}