Alerts and Network Watcher
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
- Metric, log search and activity log alerts
- Action groups and their rate limits
- Alert processing rules for maintenance windows
- Choosing the right Network Watcher tool
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 type | Fires on | Example |
|---|---|---|
| Metric alert | A metric crossing a threshold (static or dynamic) | CPU above 90% |
| Log search alert | The result of a KQL query | More than 2 System errors in an hour |
| Activity log alert | A control plane or Service Health event | A 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.
| Notification | Rate limit |
|---|---|
| No more than 100 per hour | |
| SMS | No more than 1 every 5 minutes (12 per hour) |
| Voice | No 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 asking | Tool |
|---|---|
| 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 packets | Packet 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