Microsoft.Azure.WebJobs.Extensions.Storage: Storage account connection string for 'xx' is invalid

Marius H Enerud 1 Reputation point
2020-06-22T15:11:17.453+00:00

Hi,
I have created a Azure Function App were I want to add a incoming message to another queue in the same service bus namespace.
Here is my function:

10497-pic.jpg

I store all my connection strings (to service bus namespace and storage account) in a local.settings.json file.

When I debug this azure function app locally, I keep getting this exception:

The 'retriggercompleteworkorder' function is in error: Microsoft.Azure.WebJobs.Host: Error indexing method 'retriggercompleteworkorder'. Microsoft.Azure.WebJobs.Extensions.Storage: Storage account connection string for 'AzureWebJobscompleteworkorderConnSendListenAK' is invalid.

My problem is that I haven't defined any connection string anywhere that has the name "AzureWebJobscompleteworkorderConnSendListenAK".
If I comment out the parameters that I have marked in yellow, everything works - so I know that this issue is related to that parameter.

Anyone having any clue on what is wrong here?

regards,
Marius H. Enerud

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,263 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Mike Urnun 9,666 Reputation points Microsoft Employee
    2020-06-23T06:54:34.543+00:00

    Hello @Marius H Enerud

    It looks like the completeworkorderConnSendListenAK setting defined in your local.settings.json is mixed up with AzureWebJobsStorage setting?

    Also, I believe what you're trying to do may be possible with Binding Expressions

    0 comments No comments