I am trying to research if it is possible to create alerts for azure functions via terraform.
My goal is to create a general rule that can be setup for on going functions that would alert us if an automated/timed function fails for x amount of times
2
Answers
Yes it’s possible. See the documentation here.
Sample taken from the docs is creating a metric alert:
I tried to reproduce the same in my environment to create the Alerts in Function app using Terraform:
Terraform code.
Terraform Plan:
Terraform Apply
Once ran the code resources are created.
Alert notification.
Successfully received email.