C# 从逻辑应用程序调用Azurefunction会抛出;运行时密钥存储在blob存储上。此API不支持';不支持此配置。”;

C# 从逻辑应用程序调用Azurefunction会抛出;运行时密钥存储在blob存储上。此API不支持';不支持此配置。”;,c#,azure,azure-functions,C#,Azure,Azure Functions,我有一个逻辑应用程序,它调用了几个FunctionPP。 这工作得非常好,但当logic应用程序调用该函数时,我突然出现了一个错误。错误是: { "Message": "The 'code' query parameter provided in the HTTP request did not match the expected value." } 我们没有重新生成密钥,并且密钥是有效的,因为我们可以使用postman执行webhook函数 但是,当我导入listkeys操作上获取的活

我有一个逻辑应用程序,它调用了几个FunctionPP。 这工作得非常好,但当logic应用程序调用该函数时,我突然出现了一个错误。错误是:

{
  "Message": "The 'code' query parameter provided in the HTTP request did not match the expected value."
}
我们没有重新生成密钥,并且密钥是有效的,因为我们可以使用postman执行webhook函数

但是,当我导入listkeys操作上获取的活动日志时,出现以下错误:

{
    "Message": "An error has occurred.",
    "ExceptionMessage": "Runtime keys are stored on blob storage. This API doesn't support this configuration.",
    "ExceptionType": "System.InvalidOperationException",
    "StackTrace": "   at Kudu.Core.Functions.FunctionManager.<GetKeyObjectFromFile>d__9`1.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Kudu.Core.Functions.FunctionManager.<GetFunctionSecretsAsync>d__12.MoveNext()\\r\\n--- End of stack trace from previous location where exception was thrown ---\\r\\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\\r\\n   at Kudu.Services.Functions.FunctionController.<GetSecrets>d__12.MoveNext()"
}
{
“消息”:“发生错误。”,
“ExceptionMessage”:“运行时密钥存储在blob存储上。此API不支持此配置。”,
“异常类型”:“System.InvalidOperationException”,
“StackTrace”:“在Kudu.Core.Functions.FunctionManager.d_u9`1.MoveNext()\\r\\n--从引发异常的上一个位置开始的堆栈结束跟踪---\\r\\n在System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n在System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\\r\\n位于Kudu.Core.Functions.FunctionManager.d_u12.MoveNext()\\r\\n--从引发异常的上一个位置开始的堆栈结束跟踪---\\r\\n位于System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\\r\\n位于System.Runtime.CompilerServices.TaskWaiter.HandleNonSuccessAndDebuggerNotification(任务任务)\\r\\n位于Kudu.Services.Functions.FunctionController.d_u12.MoveNext()
}
有没有办法更改钥匙的存储?为什么我一分钟又一分钟突然收到了这条信息,却没有任何改变?

我解决了我的问题

它发现Appsetting是这个错误的指示器

当您将应用程序设置“AzureWebJobsCretstorageType”设置为“blob”时,您将得到上面的错误


删除此设置为我解决了此问题

这可能是在启用插槽时设置的。请注意,如果没有此选项,插槽将无法正常工作。底线是插槽不能很好地与逻辑应用程序配合使用。事实上,门户网站明确表示:“当插槽(预览)启用时,逻辑应用程序与功能的集成不起作用。选择此预览功能将重置任何预先存在的机密。可以在每个功能的“管理”节点下找到功能机密。”