Oct 26 2020
- last edited on
Apr 08 2022
Struggling to find details on Smart Detect
Since the Smart Detect enabled Failure anomalies alert rules on all Applications insights instances and connects it to the Action group "application insights smart detection" that has mails sent to Roles monitor contributor and monitor reader.
I am looking to add additional mail to this Action group with ARM or PowerShell.
This is the docs for ARM... but it does not state how to add mail to the action group, just to the Alert rules....? proactive-arm-config
The section "Add additional email recipient for smart detection rule" sounds like a perfect fit but the example does not work, opened a github issue.
Anyone able to advise on this matter and maybe point to more docs?
@Harel Broitman maybe?
Oct 27 2020 10:46 AMSolution
Hi Michael, thanks for reaching out!
You may have received an answer already on a separate email but I will repeat the main points here for the community interest.
Every new Application Insights gets, by default, both Smart Detections and Failure Anomalies.
Failure Anomalies is an alert rule that is automatically created in the same resource group as the Application Insights resource. The Action group – “Application Insights Smart Detection” – is created once per subscription and is shared by all alert rules in the same subscription. And yes, it’s resource group is determined by the first Application Insights resource created in the subscription.
Aside from Failure Anomalies there are other types of Smart Detections, however these types are not implemented as alerts and no alert rules are created for them.
To modify the action group, please follow this example. The example in your email below is for configuring Smart Detections, which are not alert and do not trigger the action group, so it’s not the correct one.
Regarding Smart Detections which are not alerts, some of them are generating email notifications, but not using action groups. By default these notifications are sent to the subscription's monitoring contributors and monitoring readers. You can modify the email default through the Application Insights Smart Detections settings screen. You can enable/disable the default notification and/or add new email destinations of your choice. Note that Smart Detections which are in preview status do not support email notification, you can only view these detections by checking out the Smart Detections in the portal.
I hope this is clear – please let me know if you have any questions.
Regards, Yair Gil, Azure Monitor Program Manager