使用 azure ARM 模板配置逻辑应用程序故障警报

Congigure logic app failure alerts using azure ARM template

我已在 Azure 门户中手动添加警报规则和操作组,以便在失败时发送邮件。 是否可以使用 Azure 资源管理器模板创建这些东西?

是的,此 tutorial 将帮助您使用 ARM 模板创建警报。您可以参考本教程中的"simplestaticmetricalert.json"和"simplestaticmetricalert.parameters.json",将json中的参数替换为您的参数。然后使用 PowerShell 或 Azure CLI 部署模板。

顺便说一句,如果您对"simplestaticmetricalert.parameters.json"中的某些参数感到困惑,可以使用下面的command

az monitor metrics alert show [--ids]
                              [--name]
                              [--resource-group]
                              [--subscription]

显示您之前创建的提醒的属性,供您编辑新模板时参考。