在本地测试 Azure Functions 时,我收到此错误:
"There was an error performing a read operation on the Blob Storage Secret Repository. Please ensure the 'AzureWebJobsStorage' connection string is valid."
我有 Azure Blob 存储设置,包括存储模拟器和存储资源管理器。如何解决这个问题?
最佳答案
我在 Azure Durable Functions 方面遇到了这个问题,我在这里找到了解决该问题的方法:https://github.com/Azure/azure-functions-host/issues/3795#issuecomment-430337085
在 local.settings.json
中,添加一个名为 AzureWebJobsSecretStorageType
的新设置,并将其设置为"file"。
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet",
"AzureWebJobsSecretStorageType": "files"
}
}
关于.net - Azure函数: There was an error performing a read operation on the Blob Storage Secret Repository,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67728499/