An alert can be defined in three parts:

  • Target: Specific Azure resource, which is to be monitored
  • Criteria: Specific condition or logic that when seen in Signal, should trigger action
  • Action: Specific call sent to a receiver of a notification - email, SMS, webhook etc.

Steps to follow in azure portal:

  1. In the portal, select Monitor and under the MONITOR section - choose Alerts.
  2. Select the New Alert Rule button to create a new alert in Azure.
  3. The Create Alert section is shown with the three parts consisting of: Define alert condition, Define alert details, and Define action group.
  4. Define the alert condition by using the Select Resource link and specifying the target by selecting a resource. Filter by choosing the Subscription, Resource Type, and required Resource.
  5. log Alerts: Ensure Resource Type is an analytics source like Log Analytics or Application Insights and signal type as Log, then once appropriate resource is chosen.
  6. Log Alerts: Once selected, query for alerting can be stated in Search Query field; if the query syntax is incorrect the field displays error in RED.
  7. Log Alerts: With the visualization in place, Alert Logic can be selected from shown options of Condition, Aggregation and finally Threshold.
  8. As the second step, define a name for your alert in the Alert rule name field along with a Description detailing specifics for the alert and Severity value from the options provided.
  9. As the third and final step, specify if any Action Group needs to be triggered for the alert rule when alert condition is met. You can choose any existing Action Group with alert or create a new Action Group.