Azure Virtual WAN Documentation

How to Monitor Azure Virtual WAN Network Performance

This guide provides step-by-step instructions and best practices for monitoring the performance of your Azure Virtual WAN deployment. Effective monitoring is crucial for ensuring optimal network connectivity, identifying potential bottlenecks, and troubleshooting issues proactively.

Pro Tip: Regularly review your monitoring data to establish baseline performance metrics. This will make it easier to detect anomalies and deviations from the norm.

Key Performance Indicators (KPIs) to Monitor

Azure Virtual WAN Monitoring Dashboard Example

Leveraging Azure Monitor for Virtual WAN

Azure Monitor is your primary tool for collecting, analyzing, and acting on telemetry from your Azure Virtual WAN resources.

Step 1: Enable Diagnostics Settings

To collect performance metrics, you need to configure diagnostic settings for your Virtual WAN hub.

  1. Navigate to your Virtual WAN resource in the Azure portal.
  2. Under the "Monitoring" section, select Diagnostics settings.
  3. Click Add diagnostic setting.
  4. Select the desired metrics and log categories (e.g., AzureDiagnostics, VpnConnectionDiagnostics).
  5. Choose a destination for your logs and metrics:
    • Log Analytics workspace: For interactive querying and analysis.
    • Storage account: For long-term archival.
    • Event Hubs: For integration with third-party SIEM or monitoring tools.
  6. Click Save.

Step 2: Explore Metrics in Azure Monitor

Azure Monitor provides a rich set of metrics for Virtual WAN components. You can view these directly or pin them to dashboards.

  1. Go to Azure Monitor in the Azure portal.
  2. Select Metrics.
  3. In the "Resource type" dropdown, select Virtual WAN or specific components like Virtual Hub or VPN Gateway.
  4. Choose the desired metric (e.g., BgpPeeringStatus, TunnelStatus, InboundTraffic, OutboundTraffic).
  5. Apply filters and splitting options to analyze data by region, connection, or device.

Common metrics for Virtual WAN include:

Step 3: Utilize Log Analytics for Deeper Insights

Log Analytics allows you to query your diagnostic logs using Kusto Query Language (KQL) for advanced analysis and troubleshooting.

  1. Navigate to your Log Analytics workspace.
  2. Select Logs.
  3. Query tables like AzureDiagnostics, AzureNetworkAnalytics, or specific tables related to VPN or ExpressRoute.

Example KQL query to check VPN tunnel status over the last hour:

AzureDiagnostics
    | where TimeGenerated > ago(1h)
    | where ResourceProvider == "MICROSOFT.NETWORK" and Category == "VpnConnectionDiagnostics"
    | where Properties.StatusCode == "Connected" or Properties.StatusCode == "Disconnected"
    | project TimeGenerated, Resource, Properties.TunnelName, Properties.StatusCode, Properties.LatencyInMs
    | order by TimeGenerated desc

Step 4: Set Up Alerts

Proactive alerting is essential for immediate notification of performance degradation or connectivity issues.

  1. Go to Azure Monitor.
  2. Select Alerts.
  3. Click Create > Alert rule.
  4. Scope: Select your Virtual WAN or relevant resource.
  5. Condition: Choose the metric or log search that triggers the alert (e.g., TunnelStatus is not Connected, PacketLossRate exceeds a threshold).
  6. Actions: Configure action groups to send notifications (email, SMS, webhook) or trigger automated remediation tasks.
  7. Details: Define the alert name, severity, and description.

Additional Monitoring Tools and Techniques

Best Practice: Automate the creation of monitoring dashboards and alerts during the deployment phase of your Virtual WAN to ensure immediate visibility.

Troubleshooting Common Performance Issues

By implementing a robust monitoring strategy with Azure Monitor and Network Watcher, you can ensure the reliability, performance, and security of your Azure Virtual WAN network.