Although vital to proper DevOps practice, there is surprisingly little information around adding metric alerts (and action groups) through ARM templates. Below is an example on how to do it, in addition, here’s a good resource for the available metric types and their “ARM names”.