I have published a function from Visual Studio 22 but I get two errors. I go to the configuration in Function App to see the value of AzureWebJobsStorage. In this place I saw AzureWebJobsStorage ‘s value and It is same connectionString of my Visual Studio solution (the string I get from Storage Account > Access keys).
I don’t know why AzureWebJobsStorage return a fail: Microsoft.Azure.WebJobs.Script: Error configuring services in an external startup class. Azure.Storage.Blobs: Value cannot be null. (Parameter ‘connectionString’).
2
Answers
The solution: you have to go to Function Api > Environment variables > App settings and add the variables that we have in the project in the local.settings.json file.
Thank you very much for the help and sorry for the absence.
The above error message indicates that there might be a problem with how connection string is being utilized in code and the
AzureWebJobsStorage
connection string in your Azure Functions configuration.Storage Account > Access keys
into the Azure Functions configuration like below:environment variables
.After added the appsetting need to redeploy the function into portal.
The key must be same in local and portal configuration of storage connection string.