Azure - Customize Azure Log Search alerts using Automation Runbook

Introduction As you might know the Log Search Alert – V2 alert has been released and it’s rolled out globally. The v1 alerts were quite easy understand interms of what went wrong, but the v2 alerts have more information which can be ignored for the people who's working as NOC. By default this cannot be customized as it's not that matured enough to do that, so i have created this runbook which does the customization for v1 & v2 alerts. Benefits of this custom alert is, Both V1 & V2 alert is covered as part of this custom alert. All the existing alerts can also be routed through this custom script. All types of alerts like CPU, Disk, Memory & Event are supported by this custom alert. Additionally, Start & EndTime of the event, Search query, Fired data time & etc.. parameters are enabled for this custom alert. Finally, the Subject, Body of the email & affected details has been changed. Following component...