【发布时间】:2018-02-21 13:57:18
【问题描述】:
我正在本地开发一个 azure 函数,并打开了 Storage Emulator 和 de Storage Explorer。
文件树
local.settings.json
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"AzureWebJobsDashboard": "UseDevelopmentStorage=true"
},
"ConnectionStrings": {
"PlantaoEntities": {
"ConnectionString": "CENSORED",
"ProviderName": "System.Data.EntityClient"
}
}
}
但 a 在尝试运行代码时收到以下消息:
local.settings.json 中 AzureWebJobsStorage 的值缺失。这对于除 HTTP 之外的所有触发器都是必需的。您可以运行“func azure functionapp fetch-app-settings”或在 local.settings.json 中指定连接字符串
它在重建解决方案之前工作,如果我尝试func azure functionapp fetch-app-settings <functionAppName>,它会尝试从 azure 门户本身检索信息。
【问题讨论】:
标签: azure visual-studio-2017 azure-functions