skip to Main Content

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’).enter image description here

2

Answers


  1. Chosen as BEST ANSWER

    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.


  2. Function App: Azure.Storage.Blobs: Value cannot be null

    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.

    • Verify that the AzureWebJobsStorage connection string is correctly set in your Azure Functions configuration.
    • The connection string is copied correctly from your Storage Account > Access keys into the Azure Functions configuration like below:

    enter image description here

    • Must be add storage connection string in function app environment variables.

    enter image description here

    • 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.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search