DEV Community

Cover image for Microsoft Certified Azure Administrator Associate Exam (AZ-104) Lab Preparation #3: Monitor Alerts
David Au Yeung
David Au Yeung

Posted on

Microsoft Certified Azure Administrator Associate Exam (AZ-104) Lab Preparation #3: Monitor Alerts

Introduction

To pass the AZ-104 exam, you must complete several live online lab tests. This article focuses on monitoring your VM's CPU usage, demonstrating how to set up alerts in Azure Monitor. Alerts will help you proactively detect and address issues before they impact users.

Prerequisite

The Microsoft Insights is a prerequisite for this exercise.

Image description

Steps

Step 1: Navigate to Monitor
Open the Azure portal.
Click on "Monitor".
Select "Alerts".

Image description

Step 2: Create Action Groups
Click on "Action groups".
Click "Create".

Image description

Step 3: Configure Action Group
In the Basics tab:
Name it: "EmailToDavid".

Image description

In the Notifications tab:
Select Notification type: "Email/SMS message/Push/Voice".
Name the notification: "Send Email To David".

Image description

Step 4: Review and Create Action Group
Click Review + create.
Click Create.

Image description

Step 5: Set Up Alert Rules
Navigate back to "Monitor | Alerts".
Click on "Alert rules".

Image description

Click Create.

Image description

Step 6: Define Scope
In the Scope tab:
Select a resource: VM1.
Click Apply.

Image description

Step 7: Configure Condition
In the Condition tab:
Select "Percentage CPU".
Set the Threshold to 50 (suitable for testing).

Image description

Step 8: Link Action Group
In the Actions tab:
Select "Use action groups".
Choose "EmailToDavid" (the action group created earlier).

Image description

Step 9: Complete Alert Rule Details
In the Details tab:
Set the Alert rule name to MonitorCPUUsage.

Step 10
Click Review + create.
Click Create.

Testing

Install the tool CPU-Z from cupid.com on VM1.
Use the Stress CPU feature.
An alert email will be triggered and sent to David.

Image description

Image description

Image description

Conclusion

By following these steps, you have successfully set up an alert to monitor CPU usage on your virtual machine. This proactive monitoring will ensure that you can respond to potential issues before they affect end users. Remember, effective alerting is a key component of managing resources in Azure, aligning with best practices that will aid in your success on the AZ-104 exam.

Top comments (1)

Collapse
 
auyeungdavid_2847435260 profile image
David Au Yeung

More labs are coming!