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.
- Deploy a simple Ubuntu Linux VM
- Enable VM insights for Azure Monitor Agent
- Tutorial: Create a metric alert for an Azure resource
Reference slides (optional)
Use these slides for additional context.
Discussion points
-
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.
-
Enable VM Insights. Review how to use a data collection rule and how to select a Log Analytics workspace.
-
Create an alert based on metrics. For example, create a new alert rule based on CPU percentage usage.
-
Discuss the use of action groups and how to assign an action group to the alert.
-
Review how to monitor an alert when it is triggered.
-
Close with how to export the resource template.