.net - Azure函数: There was an error performing a read operation on the Blob Storage Secret Repository

标签 .net azure .net-core azure-functions

在本地测试 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/

相关文章:

.net - 默认实例的连接字符串,例如命名实例

azure - 使用 for_each 将 RAC 角色分配范围限定为文件共享

java - 带有 AMQP 的 Azure 服务总线 - 如何指定 session ID

c# - 如何列出 ASP.NET Core 中的所有配置源或属性?

c# - 如何将通用类型数据列表转换为另一个通用类型数据列表

c# - 为什么整数零不等于长零?

javascript - 语音服务 Azure - 服务器连接失败

wcf - .Net Core 不支持 WSHttpBinding

c# - .Net Core、Portable、Standard、Compact、UWP 和 PCL 之间的区别?

c# - MSIL 是否与 .NET 中的托管代码相同?