Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure Functions: There was an error performing a read operation on the Blob Storage Secret Repository

In testing Azure Functions locally, I am receiving this error.

"There was an error performing a read operation on the Blob Storage Secret Repository. Please ensure the 'AzureWebJobsStorage' connection string is valid."

I have Azure Blob Storage setup, including Storage Emulator and Storage Explorer. How can this be fixed?

like image 218
mattsmith5 Avatar asked May 27 '21 19:05

mattsmith5


2 Answers

I had this issue with Azure Durable Functions, I found the way to resolve it here: https://github.com/Azure/azure-functions-host/issues/3795#issuecomment-430337085

In local.settings.json, add a new setting called AzureWebJobsSecretStorageType and set it to "files".

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "UseDevelopmentStorage=true",
    "FUNCTIONS_WORKER_RUNTIME": "dotnet",
    "AzureWebJobsSecretStorageType": "files"
  }
}
like image 191
Juliana Polo Avatar answered Oct 20 '22 12:10

Juliana Polo


My Two cents.

I am trying to run a durable function on my local computer.

I was getting this error.

There was an error performing a read operation on the Blob Storage Secret Repository. Please ensure the 'AzureWebJobsStorage' connection string is valid

I looked at this answer from the github issue.

I completely deleted my folder the path for which is as follows

C:\Users\YourUserName\AppData\Local\Temp\Azurite 

Now things are running fine again.

The folder looks like this.

Azurite folder on Windows

like image 11
VivekDev Avatar answered Oct 20 '22 12:10

VivekDev