0
votes

I am trying to deploy an azure function, precisely a EventHubTrigger, but I am unable to run it, I get the following error message:

[16-10-2019 11:40:32] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Log10EventHubTrigger'. Microsoft.Azure.EventHubs: Illegal connection string parameter name 'DefaultEndpointsProtocol' [16-10-2019 11:40:32] Parameter name: connectionString. [16-10-2019 11:40:32] Error indexing method 'Functions.Log10EventHubTrigger' [16-10-2019 11:40:32] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.Log10EventHubTrigger'. Microsoft.Azure.EventHubs: Illegal connection string parameter name 'DefaultEndpointsProtocol' [16-10-2019 11:40:32] Parameter name: connectionString.

I have used both connections strings available on my storage, and the error is still there! Any idea what might be causing this issue and how to solve it? Thanks

1
Where did you set the connecting string?Cindy Pau

1 Answers

1
votes

Update:

enter image description here

enter image description here

Original Answer:

I can reproduce your problem.

enter image description here

From your description I guess you used Storage's Connecting String, but you also say you used EventHubTrigger. So that is the problem. I think you need to read the Offical doc[1][2] to learn the EventHubTrigger Clearly.

Solution is change the path of the Connecting string to EntityPath(your eventhub name).