question

MariusHEnerud-9834 avatar image
0 Votes"
MariusHEnerud-9834 asked MikeUrnun answered

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

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
pic.jpg (126.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

MikeUrnun avatar image
0 Votes"
MikeUrnun answered

Hello @MariusHEnerud-9834

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.