Alerts and Network Watcher

AZ-104 Azure AdministratorMonitor and maintainAbout 20 minutesBy Cloud Hands On

Turn data into action with alert rules and action groups, and troubleshoot networks with the right Network Watcher tool.

In this lesson you'll learn

1. Anatomy of an alert

New to alerts? Start here

An alert watches a signal and acts when a condition is met, like a smoke detector wired to a phone call. Every alert rule has three parts: what to watch (scope), when to fire (condition) and what to do (action group).

Alert rule: scope and condition fire, then an action group notifies people and runs automation Scopevm-web1 ConditionCPU > 90% for 5 min Action group Email and SMS on-callRun an automation runbookCreate an ITSM ticket
One action group can be reused by many alert rules.
Alert typeFires onExample
Metric alertA metric crossing a threshold (static or dynamic)CPU above 90%
Log search alertThe result of a KQL queryMore than 2 System errors in an hour
Activity log alertA control plane or Service Health eventA VM was deallocated

2. Action groups and rate limits

Notifications: email, SMS, push and voice. Actions: Automation runbook, Azure Function, Logic App, webhook, Event Hubs and ITSM connector.

NotificationRate limit
EmailNo more than 100 per hour
SMSNo more than 1 every 5 minutes (12 per hour)
VoiceNo more than 1 every 5 minutes

Alert processing rules sit between alerts and action groups. Use them to suppress notifications during a maintenance window, or add an action group to every alert in a resource group.

Example

Every Sunday at 1 am, SS Kaiser patches its servers and the on-call engineer gets 40 alerts about VMs going offline. An alert processing rule now suppresses notifications for the production resource group from 1 am to 3 am on Sundays. Alerts are still recorded, but nobody is woken up.

3. Network Watcher: pick the right tool

Question you are askingTool
Which NSG rule is blocking this packet?IP flow verify
Where does traffic from this VM go next?Next hop
What rules apply to this NIC overall?Effective security rules
Can this VM reach that host right now?Connection troubleshoot
What is the latency and packet loss over time?Connection monitor
I need the actual packetsPacket capture (up to 5 hours)
Why is the VPN tunnel down?VPN troubleshoot
What traffic flows through my network?Flow logs plus Traffic Analytics

Exam focus

"Average round-trip time between two VMs" means Connection monitor. "Identify the rule that blocks" means IP flow verify. "Suspected hackers and bots" means Traffic Analytics.

Exam traps to remember

  • Guest event log alerts need a Log Analytics workspace as the source, not the VM.
  • SMS is limited to 12 per hour, email to 100 per hour.
  • Traffic Manager has nothing to do with Traffic Analytics.

Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.

Practise in the app

Keep going