Azure 函数:Microsoft.Azure.WebJobs.Extensions.FunctionMetadataLoader:必须声明至少一个绑定
Azure function : Microsoft.Azure.WebJobs.Extensions.FunctionMetadataLoader: At least one binding must be declared
将函数发布到 Azure 后出现以下错误。
我不知道这里缺少什么。功能基于 .net 5。
此函数正在调用图形 api 以获取用户详细信息。
我添加了 function.json 文件如下:
请检查是否是以下原因。
错误提示至少需要一个绑定。
您可能错过了将函数 app.According 中的包 Microsoft.Azure.WebJobs.Extensions.Storage 添加到 install-binding-extensions 中的步骤,如下所示:
因为根据 azure 函数 best practices
functions requires a storage account be associated with your function
app. The storage account connection is used by the Functions host for
operations such as managing triggers and logging function executions.
如果完成了,请在将 nuget 包的扩展添加到您的函数项目后不要错过添加 package reference。
如果不是这种情况,您可以提供更多关于相同配置的详细信息以供进一步调查。
问题已解决。问题是当我将代码发布到 Azure 时,'RUN FROM PACKAGE' 密钥被添加到应用程序设置中。
将函数发布到 Azure 后出现以下错误。
我不知道这里缺少什么。功能基于 .net 5。
此函数正在调用图形 api 以获取用户详细信息。
我添加了 function.json 文件如下:
请检查是否是以下原因。
错误提示至少需要一个绑定。 您可能错过了将函数 app.According 中的包 Microsoft.Azure.WebJobs.Extensions.Storage 添加到 install-binding-extensions 中的步骤,如下所示:
因为根据 azure 函数 best practices
functions requires a storage account be associated with your function app. The storage account connection is used by the Functions host for operations such as managing triggers and logging function executions.
如果完成了,请在将 nuget 包的扩展添加到您的函数项目后不要错过添加 package reference。
如果不是这种情况,您可以提供更多关于相同配置的详细信息以供进一步调查。
问题已解决。问题是当我将代码发布到 Azure 时,'RUN FROM PACKAGE' 密钥被添加到应用程序设置中。