Demo 02: Monitor an Azure Linux virtual machine

Credential tasks

  • Create a virtual machine (Quickstart template).
  • Configure VM Insights.
  • Create an alert.  
  • Identify performance issues. 
  • Resize a virtual machine. 

Resource requirements

  • Linux virtual machine (create using a custom template)

Reference slides

  • Azure Resource Manager templates
  • Azure Monitor key capabilities
  • Azure Monitor components
  • Metrics and logs

Reference steps

Detailed steps are provided in these links.

Reference slides (optional)

Use these slides for additional context.

Discussion points

  1. Use Deploy a custom template for a simple Linux Ubuntu machine. This is how the students will create the VM in the exercise. Discuss the use of templates.

  2. Enable VM Insights. Review how to use a data collection rule and how to select a Log Analytics workspace.

  3. Create an alert based on metrics. For example, create a new alert rule based on CPU percentage usage.

  4. Discuss the use of action groups and how to assign an action group to the alert.

  5. Review how to monitor an alert when it is triggered.

  6. Close with how to export the resource template.