Router Shaping in Azure Virtual WAN

Router shaping lets you control the bandwidth allocated to each type of traffic flowing through a Virtual WAN hub. By configuring shaping policies, you can ensure critical applications receive the required throughput while preventing less‑important traffic from consuming excess capacity.

When to Use Router Shaping

Key Concepts

TermDescription
Shaping PolicyA collection of rules that define bandwidth limits per traffic class.
Traffic ClassA grouping based on protocol, port, or custom tags (e.g., “Video”, “Backup”).
Maximum Bandwidth (Mbps)Upper limit for a traffic class on a specific hub.
Guaranteed Bandwidth (Mbps)Minimum reserved bandwidth; traffic will be prioritized up to this value.

Creating a Shaping Policy

  1. Navigate to Virtual WAN > Hubs in the Azure portal.
  2. Select the hub you want to configure.
  3. Click Router Settings > Shaping Policies.
  4. Press Create Policy and fill in the following fields:
    • Name: Descriptive identifier (e.g., Video_Streaming_Policy).
    • Traffic Class: Choose from predefined or create a custom class.
    • Maximum Bandwidth: Enter the ceiling value.
    • Guaranteed Bandwidth: Enter the floor value.
  5. Save the policy. The hub will apply the shaping rules within a few minutes.

Example: Prioritizing VoIP Traffic


{
  "policyName": "VoIP_Priority",
  "trafficClass": "VoIP",
  "maxBandwidthMbps": 500,
  "guaranteedBandwidthMbps": 200
}
    

This policy guarantees 200 Mbps for VoIP traffic and caps it at 500 Mbps, ensuring consistent call quality even during peak usage.

Monitoring & Diagnostics

Use the Metrics Explorer to view real‑time bandwidth consumption per traffic class. The RouterShapingPolicy log provides audit information whenever a policy is added, modified, or deleted.

Best Practices

Related Articles