Hiring Partners
Segilola Resources Operating LimitedTaviatech TechnologiesFCMBMTN NigeriaAdvans La Fayette Microfinance BankAboki AfricaFirst Bank of NigeriaOPay
โ† Microsoft AZ 104 Azure Adminstrator ยท Lesson 7 of 9

Module Six

๐Ÿ“– Every lesson in this course is free to read right here, no account needed. Create a free account to track your progress, take the exam, and earn your certificate.
7
Module Six: Monitoring & Backup โ€“ The Cloud Guardian

๐Ÿ›ก๏ธ Module Six: Monitoring & Backup โ€“ The Cloud Guardian

Module Introduction
Hello, cloud hero! ๐Ÿ‘‹ In Module Five, we built the superhighways (networks). Now we need to protect and watch over everything. Think of monitoring as a security camera that watches your cloud resources. Backup is like a safety net โ€“ if something goes wrong, you can restore your data. In this module, we will learn about Azure Monitor, alerts, backups, and disaster recovery. You will become the guardian of the cloud! ๐Ÿฆธ

๐ŸŽฏ Learning Objectives

  • Understand Azure Monitor and what it does.
  • Create alerts to get notified about issues.
  • Explain Log Analytics and how to query logs.
  • Describe Azure Backup and Recovery Services vault.
  • Understand Azure Site Recovery for disaster recovery.
  • Know how to monitor performance and set up dashboards.

๐Ÿ“– Warm-up Story: The Castle of Cloudshire

In the kingdom of Cloudshire, there was a magnificent castle with many rooms (resources). The castle had a guardian who watched every room through magical mirrors (Azure Monitor). If anything went wrong โ€“ a fire in the kitchen or a broken window โ€“ the guardian would ring a bell (alerts). The castle also had a magical vault (Backup) where copies of all treasures were kept. If anything was stolen, the guardian could instantly restore it from the vault. That's exactly what monitoring and backup do in Azure! ๐Ÿฐ


๐Ÿ“š Main Lessons

Lesson 1: What is Azure Monitoring?

Definition: Azure Monitor is a service that collects, analyses, and visualises data from your Azure resources. It's like a security camera for your cloud.

Why important: It helps you understand how your resources are performing and if there are any issues.

Simple explanation: It's like a doctor checking your health โ€“ it tells you if everything is okay.

Real-life example: A website uses Azure Monitor to see if it's running slowly.

School example: The school uses monitoring to see if the Wi-Fi is working.

Home example: You check your phone's battery percentage โ€“ that's monitoring.

Nigerian example: A fintech uses Azure Monitor to track transaction performance.

+------------------+
|  AZURE MONITOR   |
|  (watches your   |
|   resources)     |
+------------------+

Mini summary: Azure Monitor watches your resources and collects data.

Lesson 2: Metrics โ€“ The Numbers

Definition: Metrics are numerical values that measure something, like CPU usage, memory, or requests per second.

Why important: Metrics tell you how your resources are performing.

Simple explanation: It's like a speedometer in a car โ€“ it tells you how fast you're going.

Real-life example: CPU usage of a VM shows how busy it is.

School example: The number of students in a class is a metric.

Home example: Your electricity bill is a metric.

Nigerian example: A bank monitors the number of transactions per second.

+------------------+
|  METRICS         |
|  CPU: 45%        |
|  Memory: 60%     |
|  Requests: 100/s |
+------------------+

Mini summary: Metrics are numbers that show performance.

Lesson 3: Logs โ€“ The Diary

Definition: Logs are detailed records of events that happen in your resources. They are like a diary that writes down everything.

Why important: Logs help you investigate what happened in the past.

Simple explanation: It's like a diary that records every event.

Real-life example: A web server logs every request it receives.

School example: The school keeps a log of visitors.

Home example: Your phone logs your call history.

Nigerian example: A fintech logs all user login attempts.

+------------------+
|  LOGS            |
|  Time: 10:00am   |
|  User: Chidi     |
|  Action: Login   |
+------------------+

Mini summary: Logs are detailed records of events.

Lesson 4: Alerts โ€“ The Warning Bell

Definition: Alerts are notifications that fire when a metric or log meets a condition. It's like a bell that rings when something goes wrong.

Why important: Alerts help you react quickly to issues.

Simple explanation: Like a fire alarm โ€“ it rings when there's a fire.

Real-life example: An alert goes off when CPU usage exceeds 90%.

School example: The school bell rings at the end of class.

Home example: Your alarm clock wakes you up.

Nigerian example: A bank alerts when a transaction fails.

+------------------+
|  ALERT           |
|  Condition: CPU> |
|  90%             |
|  Action: Email   |
+------------------+

Mini summary: Alerts notify you when something needs attention.

Lesson 5: Action Groups โ€“ The Response Team

Definition: Action groups define what happens when an alert is triggered โ€“ like sending an email, SMS, or running a function.

Why important: They ensure that the right people are notified.

Simple explanation: Like calling the fire department when the alarm rings.

Real-life example: An action group sends an email to the IT team.

School example: The school calls parents when a student is absent.

Home example: Your parents call you when it's time for dinner.

Nigerian example: A company sends SMS alerts to the on-call engineer.

+------------------+
|  ACTION GROUP    |
|  Email: admin@   |
|  SMS: +234...    |
|  Function: fix   |
+------------------+

Mini summary: Action groups define the response to alerts.

Lesson 6: Log Analytics โ€“ The Search Tool

Definition: Log Analytics is a tool that lets you query and analyse log data using a language called KQL (Kusto Query Language).

Why important: It helps you find patterns and troubleshoot issues.

Simple explanation: Like a search engine for your logs.

Real-life example: An admin searches logs for error messages.

School example: The librarian searches for a book in the library.

Home example: You search for a lost toy in your room.

Nigerian example: A company queries logs to find security breaches.

+------------------+
|  LOG ANALYTICS   |
|  Query: find     |
|  errors in logs  |
+------------------+

Mini summary: Log Analytics lets you search and analyse logs.

Lesson 7: Azure Backup โ€“ The Safety Net

Definition: Azure Backup is a service that creates copies of your data and resources so you can restore them if something goes wrong.

Why important: It protects against data loss due to accidents, viruses, or disasters.

Simple explanation: Like having a spare key in case you lose your main key.

Real-life example: A company backs up its database every night.

School example: The school backs up student records.

Home example: You back up your photos to the cloud.

Nigerian example: A bank uses Azure Backup to protect customer data.

+------------------+
|  AZURE BACKUP    |
|  (copies your    |
|   data)          |
+------------------+

Mini summary: Azure Backup protects your data by creating copies.

Lesson 8: Recovery Services Vault โ€“ The Safe

Definition: A Recovery Services Vault is a container that holds your backups. It's like a safe where you store your valuable items.

Why important: It's where all your backup copies are stored.

Simple explanation: Like a bank vault where you keep your treasures.

Real-life example: A company stores all backups in a Recovery Services Vault.

School example: The school stores report cards in a safe.

Home example: You keep your important documents in a drawer.

Nigerian example: A fintech stores backup data in a Recovery Services Vault.

+------------------+
|  RECOVERY VAULT  |
|  (holds backups) |
+------------------+

Mini summary: A Recovery Services Vault stores your backups.

Lesson 9: Backup Policies โ€“ The Schedule

Definition: Backup policies define when and how backups are taken. For example, daily backups at 2 AM, kept for 7 days.

Why important: Policies automate the backup process.

Simple explanation: Like a schedule for brushing your teeth โ€“ you do it every day.

Real-life example: A company sets a policy to back up every day at midnight.

School example: The school backs up data every Friday.

Home example: You back up your photos every Sunday.

Nigerian example: A bank has a policy to back up at 3 AM daily.

+------------------+
|  BACKUP POLICY   |
|  Daily at 2AM    |
|  Keep for 30 days|
+------------------+

Mini summary: Backup policies automate when backups happen.

Lesson 10: Restore โ€“ The Undo Button

Definition: Restore is the process of recovering data from a backup. It's like hitting the undo button.

Why important: It allows you to recover from disasters or mistakes.

Simple explanation: Like restoring a deleted file from the recycle bin.

Real-life example: A company restores a database after an accidental deletion.

School example: A teacher restores a lesson plan from a backup.

Home example: You restore your phone from a backup.

Nigerian example: A bank restores transaction data after a system failure.

+------------------+
|  RESTORE         |
|  (undo delete)   |
|  +----------+    |
|  | restored |    |
|  | data     |    |
|  +----------+    |
+------------------+

Mini summary: Restore allows you to recover data from backups.

Lesson 11: Azure Site Recovery โ€“ The Disaster Plan

Definition: Azure Site Recovery (ASR) replicates your VMs and workloads to another region, so you can failover during a disaster.

Why important: It keeps your business running even if a whole region fails.

Simple explanation: Like having a backup school in another town in case the main school burns down.

Real-life example: A company replicates its VMs to a secondary region.

School example: The school has a backup plan for exams.

Home example: You keep a spare key at a neighbour's house.

Nigerian example: A bank uses ASR to replicate to a different data centre.

+------------------+
|  SITE RECOVERY   |
|  (disaster plan) |
|  Region1 -> Reg2 |
+------------------+

Mini summary: Site Recovery replicates resources for disaster recovery.

Lesson 12: Failover and Failback โ€“ The Switch

Definition: Failover is switching from the primary region to the secondary region during a disaster. Failback is switching back when the primary is restored.

Why important: These actions keep your business running during emergencies.

Simple explanation: Like switching to a spare tyre when you get a flat, and putting the good tyre back later.

Real-life example: A company fails over to its backup region during an outage.

School example: The school moves to a backup classroom during construction.

Home example: You use a backup charger when your main one breaks.

Nigerian example: A bank fails over to a secondary data centre during a power outage.

+------------------+
|  FAILOVER        |
|  Primary -> Sec  |
|  FAILBACK        |
|  Sec -> Primary  |
+------------------+

Mini summary: Failover switches to backup; failback returns to normal.

Lesson 13: Application Insights โ€“ The App Doctor

Definition: Application Insights is a service that monitors your web applications. It tracks performance, errors, and user behaviour.

Why important: It helps you understand how users interact with your app and where it breaks.

Simple explanation: Like a doctor checking your health, but for your app.

Real-life example: An e-commerce site uses Application Insights to see which pages load slowly.

School example: The school uses it to track the performance of its learning portal.

Home example: You check which app uses the most battery.

Nigerian example: A fintech uses Application Insights to monitor its mobile app.

+------------------+
|  APP INSIGHTS    |
|  (app monitoring)|
|  +----------+    |
|  | performance|  |
|  | errors    |  |
|  +----------+    |
+------------------+

Mini summary: Application Insights monitors web applications.

Lesson 14: Dashboards โ€“ The Control Panel

Definition: A dashboard is a customisable view that displays metrics and logs in charts and graphs. It's like a car dashboard.

Why important: Dashboards give you a quick overview of your system's health.

Simple explanation: Like the dashboard in a car that shows speed and fuel.

Real-life example: An admin creates a dashboard showing CPU, memory, and requests.

School example: The school has a dashboard for attendance.

Home example: Your fitness app shows a dashboard of your steps.

Nigerian example: A company has a dashboard for transaction volumes.

+------------------+
|  DASHBOARD       |
|  [CPU] [Memory]  |
|  [Requests]      |
+------------------+

Mini summary: Dashboards provide a visual overview of your resources.

Lesson 15: Workbook โ€“ The Report

Definition: A workbook is an interactive report that combines metrics, logs, and text. It's like a school report card for your cloud.

Why important: Workbooks help you create detailed reports for analysis.

Simple explanation: Like a project report with tables and graphs.

Real-life example: A company creates a workbook showing monthly performance.

School example: The school creates a workbook for exam results.

Home example: You create a report of your savings.

Nigerian example: A company creates a workbook for audit reviews.

+------------------+
|  WORKBOOK        |
|  (report)        |
|  +----------+    |
|  | graphs   |    |
|  | tables   |    |
|  +----------+    |
+------------------+

Mini summary: Workbooks are interactive reports.


๐Ÿ”‘ Key Vocabulary

WordSimple meaning
MonitorWatch your resources
MetricA number that shows performance
LogRecord of events
AlertNotification of an issue
Action GroupResponse to an alert
BackupCopy of your data
Recovery VaultContainer for backups
RestoreRecover data from backup
Site RecoveryDisaster recovery tool
FailoverSwitch to backup region

๐Ÿงฉ Important Concepts

  • RPO (Recovery Point Objective): How much data you can afford to lose (e.g., 1 hour).
  • RTO (Recovery Time Objective): How quickly you need to recover (e.g., 2 hours).
  • Retention: How long you keep backups (e.g., 30 days).

๐Ÿ“ Step-by-step Explanations

  1. Set up a metric alert: Azure Monitor โ†’ Alerts โ†’ Create โ†’ Select metric (CPU) โ†’ Set condition โ†’ Add action group.
  2. Create a backup: Recovery Services Vault โ†’ Backup โ†’ Select VM โ†’ Choose policy โ†’ Enable.
  3. Restore a VM: Recovery Services Vault โ†’ Backup Items โ†’ VM โ†’ Restore โ†’ Select restore point.
  4. Configure Site Recovery: Recovery Services Vault โ†’ Site Recovery โ†’ Enable replication โ†’ Choose target region.
  5. Query logs: Log Analytics โ†’ New Query โ†’ Write KQL query (e.g., "Event | where Level == 'Error'").

๐ŸŒ Real-life Examples

  • Microsoft 365 uses Azure Monitor to track service health.
  • BMW uses Azure Site Recovery for disaster recovery.
  • Nigerian banks use Azure Backup to protect financial data.

๐Ÿ‡ณ๐Ÿ‡ฌ Nigerian Examples

  • A fintech in Lagos uses Azure Monitor to track API performance.
  • A school in Abuja uses Azure Backup for student records.
  • A bank in Port Harcourt uses Site Recovery for business continuity.

๐Ÿงธ Fun Examples for Kids

  • Monitoring is like a parent watching you play โ€“ they know if you're okay.
  • Backup is like saving your game progress.
  • Restore is like loading a saved game.

๐Ÿ  Everyday Examples

  • Your phone's battery percentage is a metric.
  • Your phone's call log is a log.
  • Your alarm clock is an alert.
  • Your family photos backed up to Google Photos is a backup.

๐Ÿง‘โ€๐Ÿซ Teacher Notes

  • Use the "castle guardian" analogy to explain monitoring and backup.
  • Have students create their own dashboard on paper.
  • Show the Azure Portal to create a simple alert (if possible).

๐Ÿ‘ช Parent Tips

  • Explain that monitoring helps keep cloud systems safe.
  • Discuss why backups are important for family photos.
  • Show them how to check storage usage on their devices.

โœจ Interesting Facts

  • Azure Monitor can process over 10 petabytes of data per day.
  • Azure Backup can back up petabytes of data.
  • Azure Site Recovery supports over 20 different workload types.

๐Ÿ’ก Did You Know?

  • Azure Monitor can be used to monitor not just Azure, but also on-premises resources.
  • You can set up alerts that trigger automated actions, like starting a VM.

๐Ÿง  Remember This

  • Monitor = Watch your resources.
  • Alerts = Notify you about issues.
  • Backup = Copy your data.
  • Restore = Recover your data.
  • Site Recovery = Disaster plan.

โš ๏ธ Common Mistakes

  • Not setting up alerts, so issues go unnoticed.
  • Forgetting to test backups โ€“ you should regularly restore to test.
  • Not setting retention policies, leading to data being deleted too soon.

โœ… Best Practices

  • Set up alerts for critical metrics (CPU, memory, disk).
  • Regularly test backup restores.
  • Use Azure Site Recovery for mission-critical workloads.
  • Define clear RPO and RTO objectives.

๐Ÿ“Š Comparison Tables

ServiceWhat it doesEveryday item
Azure MonitorWatches resourcesSecurity camera
Azure BackupCopies dataSpare key
Site RecoveryDisaster recoveryBackup school
Log AnalyticsSearch logsLibrary catalog

๐Ÿ“ Summary After Every Lesson

Each lesson includes a mini summary, as shown above.

๐Ÿ“ฆ End-of-Module Summary

In this module, we explored monitoring and backup in Azure. We learned that Azure Monitor watches your resources and collects metrics and logs. We set up alerts with action groups to notify us of issues. We discovered Log Analytics for advanced queries. We protected our data with Azure Backup and stored it in a Recovery Services Vault. We also learned about Azure Site Recovery for disaster recovery, including failover and failback. Finally, we saw how Application Insights, Dashboards, and Workbooks help us understand our applications. You are now a true cloud guardian! ๐ŸŽ‰

โ“ Frequently Asked Questions (10)

  1. What is Azure Monitor? โ€“ A service that watches your resources.
  2. What are metrics? โ€“ Numbers that show performance.
  3. What are logs? โ€“ Records of events.
  4. What are alerts? โ€“ Notifications about issues.
  5. What is Azure Backup? โ€“ A service that copies your data.
  6. What is a Recovery Services Vault? โ€“ A container for backups.
  7. What is restore? โ€“ Recovering data from backup.
  8. What is Site Recovery? โ€“ A disaster recovery service.
  9. What is failover? โ€“ Switching to a backup region.
  10. What is Application Insights? โ€“ Monitoring for web apps.

๐Ÿ“ Review Questions (15)

  1. What is Azure Monitor?
  2. What are metrics?
  3. What are logs?
  4. What are alerts?
  5. What are action groups?
  6. What is Log Analytics?
  7. What is Azure Backup?
  8. What is a Recovery Services Vault?
  9. What is a backup policy?
  10. What is restore?
  11. What is Site Recovery?
  12. What is failover?
  13. What is failback?
  14. What is Application Insights?
  15. What is a dashboard?

โœ๏ธ Fill-in-the-Blank

  1. Azure Monitor watches your ______. (resources)
  2. ______ are numbers that show performance. (Metrics)
  3. ______ are records of events. (Logs)
  4. ______ are notifications about issues. (Alerts)
  5. Azure Backup copies your ______. (data)

โœ”๏ธ True or False

  1. Azure Monitor only watches VMs. (False)
  2. Alerts can send emails. (True)
  3. Backups are only for VMs. (False)
  4. Site Recovery is for disaster recovery. (True)
  5. Log Analytics can query logs. (True)

๐Ÿงช Multiple Choice Questions (15)

  1. What is Azure Monitor?
    a) Monitoring service b) Storage c) Compute
    Answer: a
  2. What are metrics?
    a) Numbers b) Names c) Passwords
    Answer: a
  3. What are logs?
    a) Records b) Numbers c) Alerts
    Answer: a
  4. What are alerts?
    a) Notifications b) Storage c) VMs
    Answer: a
  5. What is an action group?
    a) Response to alerts b) Storage c) VM
    Answer: a
  6. What is Log Analytics?
    a) Query tool b) Storage c) VM
    Answer: a
  7. What is Azure Backup?
    a) Copies data b) Deletes data c) Creates VMs
    Answer: a
  8. What is a Recovery Services Vault?
    a) Container for backups b) VM c) Storage
    Answer: a
  9. What is a backup policy?
    a) Schedule b) VM c) Storage
    Answer: a
  10. What is restore?
    a) Recover data b) Delete data c) Create VM
    Answer: a
  11. What is Site Recovery?
    a) Disaster recovery b) Storage c) VM
    Answer: a
  12. What is failover?
    a) Switch to backup b) Delete data c) Create VM
    Answer: a
  13. What is Application Insights?
    a) App monitoring b) Storage c) VM
    Answer: a
  14. What is a dashboard?
    a) Visual overview b) Storage c) VM
    Answer: a
  15. What is a workbook?
    a) Interactive report b) Storage c) VM
    Answer: a

๐Ÿ”— Matching Exercises

TermMatch
Azure MonitorWatch resources
AlertNotification
BackupCopy data
Recovery VaultContainer
Site RecoveryDisaster plan

๐Ÿ“ Short Answer Questions

  1. What is the difference between metrics and logs?
  2. Why would you use Azure Backup?
  3. Explain what a failover is in one sentence.

๐ŸŽญ Scenario-based Exercises

  1. Scenario: A company wants to be notified when a VM's CPU exceeds 80%. What should they set up? (Answer: An alert with a metric condition).
  2. Scenario: A school wants to protect student data and be able to restore it if accidentally deleted. What should they use? (Answer: Azure Backup).

๐Ÿ‘ฅ Group Activity

In groups, design a monitoring and backup plan for a company. Include what to monitor, alerts, backup frequency, and disaster recovery strategy. Present your plan.

๐Ÿง‘โ€๐Ÿ’ป Individual Activity

Draw a diagram showing how Azure Monitor collects metrics, triggers an alert, and sends a notification. Include Action Groups and Log Analytics.

๐Ÿ—ฃ๏ธ Classroom Discussion Questions

  1. Why is it important to test your backups?
  2. How would you decide between Azure Backup and Site Recovery?
  3. Can you think of a time when monitoring would have helped you?

๐Ÿ› ๏ธ Mini Project

Build a poster that shows the flow of monitoring: Metrics โ†’ Alert โ†’ Action Group โ†’ Notification. Also show the backup flow: VM โ†’ Backup โ†’ Recovery Vault โ†’ Restore.

๐Ÿ“‹ Practical Assignment

With a free Azure account, create a metric alert for CPU usage on a VM. Set up an action group to send an email. Test by stressing the VM.

๐Ÿ† Challenge Exercise

Without looking at the portal, write the steps to set up a backup for a VM. Then, check your steps against the portal.

๐Ÿ”‘ Quiz Answers

All answers are provided within each question section above.

๐Ÿ“Œ Key Takeaways

  • Azure Monitor watches your resources and collects metrics and logs.
  • Alerts with action groups notify you about issues.
  • Azure Backup protects your data by creating copies.
  • Recovery Services Vault stores backups.
  • Azure Site Recovery provides disaster recovery capabilities.

โžก๏ธ Preparation for the Next Module

In Module Seven, we will dive into Azure Governance and Cost Management. We'll learn how to set up policies, manage budgets, and keep your Azure environment organised. You'll become a wise cloud ruler! ๐Ÿ‘‘


End of Module Six โ€“ You are now a cloud guardian! ๐Ÿ›ก๏ธ

๐Ÿ† Get Certified

๐Ÿ”’

Earn this certificate

Every lesson is already free to read. Sign up, finish the lessons, pass the exam (โ‚ฆ2,000 or 20,000 coins), and get a verified certificate with your name on it.

๐ŸŽ“ Sign Up to Get Certified
๐Ÿ› ๏ธ Practice Tools
Hands-on simulators & labs - subscription required.
โ†’
๐ŸŽฏ Internship Tasks
Real-world tasks to build your portfolio - unlock them with a subscription.
โ†’