Jump into concepts and practice - no test required
or
Recommended
Test this pattern10 questions across easy, medium, and hard to know if this pattern is strong
Network Watcher for diagnostics
📖 Scenario: You are managing a small Azure environment. You want to set up Network Watcher to monitor and diagnose network issues in your virtual network.
🎯 Goal: Create an Azure Network Watcher resource named NetworkWatcher_eastus in the eastus region, enable it for your subscription, and configure a diagnostic setting to send logs to a storage account.
📋 What You'll Learn
Create a Network Watcher resource named NetworkWatcher_eastus in the eastus region
Verify Network Watcher is enabled for the subscription in eastus
Create a diagnostic setting named MyDiagSetting for NetworkWatcher_eastus
Configure the diagnostic setting to send logs to an existing storage account named mystorageaccount
💡 Why This Matters
🌍 Real World
Network Watcher helps monitor and diagnose network issues in Azure, essential for maintaining healthy cloud infrastructure.
💼 Career
Cloud engineers and network administrators use Network Watcher to troubleshoot connectivity and security issues in Azure environments.
Progress0 / 4 steps
1
Create Network Watcher resource
Create a Network Watcher resource named NetworkWatcher_eastus in the eastus region using Azure CLI syntax.
Azure
Hint
Use az network watcher configure with --locations eastus and --enabled true.
2
Verify Network Watcher for subscription
Verify Network Watcher for your subscription in the eastus region using Azure CLI.
Azure
Hint
Use az network watcher show with --name NetworkWatcher_eastus and --resource-group NetworkWatcherRG.
3
Create diagnostic setting for Network Watcher
Create a diagnostic setting named MyDiagSetting for the Network Watcher resource NetworkWatcher_eastus that sends logs to the storage account mystorageaccount using Azure CLI.
Azure
Hint
Use az monitor diagnostic-settings create with --name MyDiagSetting, --resource <resource ID>, and --storage-account mystorageaccount.
4
Verify and finalize Network Watcher diagnostics setup
Add the final command to verify the diagnostic settings for NetworkWatcher_eastus using Azure CLI.
Azure
Hint
Use az monitor diagnostic-settings list with --resource <resource ID> to verify.
Practice
(1/5)
1. What is the primary purpose of Azure Network Watcher?
easy
A. To monitor and diagnose network issues in Azure
B. To create virtual machines
C. To manage Azure subscriptions
D. To deploy web applications
Solution
Step 1: Understand Network Watcher role
Network Watcher is designed to monitor and diagnose network problems in Azure environments.
Step 2: Compare with other options
Creating VMs, managing subscriptions, and deploying web apps are unrelated to network diagnostics.
Final Answer:
To monitor and diagnose network issues in Azure -> Option A
Quick Check:
Network Watcher = Monitor and diagnose network issues [OK]
5. You want to monitor network traffic for multiple NSGs across different regions. Which combination of Azure resources and steps is best practice to set up Network Watcher diagnostics?
hard
A. Enable Network Watcher in each region, create one storage account per region, and configure flow logs for each NSG pointing to its region's storage
B. Create one storage account in any region and configure all NSGs to send flow logs there without enabling Network Watcher in regions
C. Enable Network Watcher only in one region and configure flow logs for NSGs in all regions to that single watcher
D. Use Azure Monitor instead of Network Watcher for NSG flow logs
Solution
Step 1: Understand regional scope of Network Watcher
Network Watcher must be enabled in each Azure region where you want to monitor NSGs.
Step 2: Storage account best practice
Creating a storage account per region reduces latency and complies with data residency rules.
Step 3: Configure flow logs per NSG
Each NSG's flow logs should point to the storage account in its region for efficient storage and retrieval.
Final Answer:
Enable Network Watcher in each region, create one storage account per region, and configure flow logs for each NSG pointing to its region's storage -> Option A
Quick Check:
Regional watchers + regional storage + per-NSG config = best practice [OK]
Hint: Enable watcher and storage per region for best flow log setup [OK]
Common Mistakes:
Using one watcher or storage for all regions
Skipping enabling Network Watcher in some regions
Confusing Azure Monitor with Network Watcher for flow logs