Challenge 03 - Azure Monitor for Virtual Machines
November 16, 2023 ยท View on GitHub
< Previous Challenge - Home - Next Challenge >
Introduction
In this challenge you will explore VM Insights - an additional solution to monitor virtual machines.
VM Insights monitors the performance and health of your Virtual Machines and Virtual Machine Scale Sets. It monitors their running processes and dependencies on other resources. VM insights can help deliver predictable performance and availability of vital applications by identifying performance bottlenecks and network issues. It can also help you understand whether an issue is related to other dependencies. VM insights stores its data in Azure Monitor Logs, which allows it to deliver powerful aggregation and filtering and to analyze data trends over time. You can view this data in a single VM from the Virtual Machine blade directly. Or, you can use Azure Monitor to deliver an aggregated view of multiple VMs.
Different installation methods are available for enabling VM Insights: Azure Portal, ARM/Bicep Templates, Azure Policy, PowerShell/Azure CLI. Azure Policy lets you set and enforce requirements for all new resources you create and resources you modify. VM insights policy initiatives, which are predefined sets of policies created for VM Insights, install the agents required for VM insights and enable monitoring on all new virtual machines in your Azure environment. In this challenge you will explore how to enable VM insights manually in the Azure Portal and by using predefined VM Insights policy initiatives.
Description
In this challenge you need to complete the following management tasks:
- Configure VM Insights for the SQL Server VM manually in Azure Portal.
Note Make sure you select Azure Monitor agent and NOT Log Analytics agent. Use the same Log Analytics workspace as previously
law-wth-monitor-d-xx.
- Explore VM Insights workbooks, determine how much free disk space is left for the SQL Server VM.
- For the SQL Server VM pin the Available Memory chart from the VM Insights workbook to your Azure dashboard.
Bonus task:
- Set up Azure Policy to automatically enable VM Insights on VMs and VM Scale Sets within the scope of the main hackathon Resource Group
xxx-rg-wth-monitor-d-xx.
Note Azure Policy lets you set and enforce requirements for all new resources you create and resources you modify. To remediate already existing resources, you need to run a remediation task after resource compliance status is available (this can take from several minutes to several hours. There's no pre-defined expectation of when the compliance evaluation cycle completes).
Success Criteria
- Demonstrate that VM Insights is enabled for the SQL Server VM.
- Show your Azure dashboard with VM Insights performance chart.