Working with Metrics and Alerts
There are several ways to consume and analyze alerts and metrics across Azure Monitor. You can do this directly from the Monitor service as well as from the associated resource blade. In the upcoming exercises, you will set up a VM, then configure a metric view with two charts, analyze them, and create a dashboard. You will also configure an alert rule to fire off an email when CPU usage percentage has been observed to exceed 80% usage over 5 minutes. Finally, you will synthetically push your VM to trigger the alert to experience the completed flow and prove a successful configuration.
The following diagram illustrates the full exercise you will embark on:
Figure 21.12: Analyzing metrics exercise diagram
In order to follow along, complete the steps in the following sections.
Creating a VM
For this part of the exercise, you will be deploying a new VM to monitor against. Run the script labeled as Analyzing_Metrics_Exercise...