首页 > 解决方案 > local.settings.json 中 AzureWebJobsStorage 的缺失值

问题描述

尝试在本地运行时收到此错误消息。在此之前完全没有问题。

Missing value for AzureWebJobsStorage in local.settings.json. This is required for all triggers other than httptrigger, kafkatrigger. You can run 'func azure functionapp fetch-app-settings <functionAppName>' or specify a connection string in local.settings.json.

我的 local.settings.json

{
  "IsEncrypted": false,
  "Values": {
    "AzureWebJobsStorage": "",
    "FUNCTIONS_WORKER_RUNTIME": "python"
  }
}

标签: azureazure-functions

解决方案


您没有给出 AzureWebJobsStorage 的值。

本地默认值:UseDevelopmentStorage=true

之所以需要提供,是因为除了httptrigger之外,其他所有的trigger都需要先启动storage emulator。


推荐阅读