Azure 函数 - 报告失败

标签 azure azure-functions azure-functions-runtime azure-functions-core-tools

我开发了一个azure函数并将其部署在我的订阅中。最初,我很难设置正确的连接字符串,这导致 Azure Functions 功能失败。但 Azure 报告它成功,因为代码生成的异常已得到处理。

Azure Function Monitoring

如何向 Azure 功能状态报告故障?

状态应该是“失败”而不是通过。

问题是,运营团队除非检查每个日志,否则不会知道失败!

最佳答案

如果存在未捕获的异常,函数执行将被标记为失败。如果出现异常,但您在函数内部处理了它,那么运行时仍然是成功的。

要将执行标记为失败,请不要吞下异常。

关于Azure 函数 - 报告失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50137543/

相关文章:

c# - 如何启动Azure Function

django - 用于 Django 部署的 Azure Web 应用程序不起作用

ios - 如何为 iOS Swift 项目安装 Azure SDK?

azure - 在 Windows Azure 帐户中找不到订阅

C# 并行复制 - 小文件问题

Azure Functions - 事件中心不触发函数

asp.net-mvc - "Login failed for user ' <用户> '."在 SQL Azure 上的 MVC 5 中使用 DefaultConnection 时

azure - 如何从 Azure 上的 NearBySearch 检索所有结果?

c# - Azure 函数(服务总线): Unable to connect to remote server

Azure 函数 "General Settings"丢失