Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure Service Bus queue based function doesn't trigger locally #502

Closed
SeanFeldman opened this issue Sep 20, 2017 · 6 comments
Closed

Azure Service Bus queue based function doesn't trigger locally #502

SeanFeldman opened this issue Sep 20, 2017 · 6 comments

Comments

@SeanFeldman
Copy link

VS2017 15.3.5

Function

[FunctionName("AzureServiceBusTriggeredFunc")]
public static Task Run([ServiceBusTrigger("myqueue", AccessRights.Manage, Connection = "ASB.ConnectionString")]string myQueueItem, TraceWriter log)
{
	log.Info($"C# ServiceBus queue trigger function processed message: {myQueueItem}");
	return Task.CompletedTask;
}

local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "<strage connection string>",
    "AzureWebJobsDashboard": "<strage connection string>",
    "ASB.ConnectionString": "<asb connection string>"
  }
}

When running in debugger, function is executed, no errors in console, but it's never triggered for the messages I drop on myqueue queue.

@SeanFeldman
Copy link
Author

Possibly a duplicate of #478

@SeanFeldman
Copy link
Author

PEBCAK

@lindydonna
Copy link
Contributor

@SeanFeldman glad you figured it out! Thanks for following up. :)

@jkoehring
Copy link

@SeanFeldman I am experiencing the same problem. Can you tell me how you resolved it? Thank you!

@SeanFeldman
Copy link
Author

I think (can't recall the detail) I had the actual connection string rather than connection string name from the settings in the ServiceBusTrigger.

@asifaziz30
Copy link

Hi,

Can you reopen this issue for Azure.Messaging.ServiceBuss version 7.2.0 is also not trigger on local IIS to receive messages or I have to post new issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants