1
votes

I've been banging my banging my head on this one all day but just can't get my local VSCode dev environment to handle EventHub triggering with the Python worker.

Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.myfunctionname'. Microsoft.Azure.WebJobs.EventHubs: Value cannot be null. Parameter name: receiverConnectionString.

Function 'Functions.myfunctionname' failed indexing and will be disabled. [10/22/2018 1:17:40 AM] No job functions found. Try making your job classes and methods public. If you're using binding extensions (e.g. Azure Storage, ServiceBus, Timers, etc.) make sure you've called the registration method for the extension(s) in your startup code (e.g. builder.AddAzureStorage(), builder.AddServiceBus(), builder.AddTimers(), etc.)

The documentation is pretty lite when it comes to this stuff so I'm not sure if these event trigger just aren't supported or if I'm just not setting it up correctly.

This is a what my local.settings.json looks like:

{
  "IsEncrypted": false,
  "Values": {
    "FUNCTIONS_WORKER_RUNTIME": "python",
    "AzureWebJobsStorage": "{AzureWebJobsStorage}",
    "EventHub":"Endpoint=sb://privatename.servicebus.windows.net/;SharedAccessKeyName=SharedAccessKey;SharedAccessKey=key here"
  }
}
1

1 Answers