Getting Value cannot be null. (Parameter 'connectionString') error while running Azure Function app

落爺英雄遲暮 提交于 2021-02-11 12:24:21

问题


I am getting Value cannot be null. (Parameter 'connectionString') error while running Azure Function app for a TimeerTrigger.

This is my function output integration: - function output

This it the Code I have written to store a string in Blob storage when the function is triggered:- code run.csx This is the error I'm getting when I'm trying to Test the function: - Error logs


回答1:


It seems the connection is getting wrong. Check the "connection" field in function.json file.

Here is the description of this field:

The name of an app setting that contains the Storage connection string to use for this binding. If the app setting name begins with "AzureWebJobs", you can specify only the remainder of the name here. For example, if you set connection to "MyStorage", the Functions runtime looks for an app setting that is named "AzureWebJobsMyStorage." If you leave connection empty, the Functions runtime uses the default Storage connection string in the app setting that is named AzureWebJobsStorage.

If it is correct, navigate to your Function app and click the Configuration under settings, check the app setting contains your storage account connection string.

On my side (by default), it is AzureWebJobsStorage:



来源:https://stackoverflow.com/questions/64591810/getting-value-cannot-be-null-parameter-connectionstring-error-while-running

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!