Networking Best Practices¶
Networking decisions define who can reach the VM, how traffic behaves under load, and how hard it will be to prove root cause during connectivity incidents.
This page's baseline at a glance — the recommended practices and the validation gate:
flowchart TD
T["Networking Best Practices"]
P1["Keep administration private by default"]
T --> P1
P2["Use Accelerated Networking deliberately"]
T --> P2
P3["Design for failure domains and latency together"]
T --> P3
P4["Link to platform detail instead of duplicating it"]
T --> P4
V["Validation Checklist"]
P1 --> V
P2 --> V
P3 --> V
P4 --> V Why This Matters¶
VM networking debt often stays hidden until one of three moments: an audit finds public management exposure, an application tier starts dropping packets under load, or a failover test proves that the network path was never really designed for recovery.
Recommended Practices¶
Keep administration private by default¶
- Prefer Bastion, VPN, or ExpressRoute over direct public SSH or RDP exposure.
- Treat public management ports as an exception that requires explicit expiry and review.
- Keep the management path separate from the application path when possible so incident response can continue during frontend failures.
Use Accelerated Networking deliberately¶
- Check whether the selected VM size supports Accelerated Networking before standardizing it.
- Enable it for traffic-sensitive workloads where latency, jitter, or host CPU overhead matter.
- Remember that enabling it on an existing VM requires the VM to be stopped and deallocated.
Design for failure domains and latency together¶
- Use zonal placement or scale-set distribution when the workload needs resilience to single-zone failure.
- When low-latency east-west traffic matters, review placement strategy alongside availability requirements instead of treating them as separate topics.
- Validate NSGs, routes, DNS, and load balancer dependencies as one connectivity system.
Link to platform detail instead of duplicating it¶
- For network building blocks, see Networking Basics.
- For higher-level resilience choices, see Availability and Resiliency.
Common Mistakes / Anti-Patterns¶
Anti-Pattern 1: Defaulting to public management ports¶
This turns routine scanning into a standing exposure and makes later hardening much more disruptive.
Anti-Pattern 2: Assuming a larger VM automatically fixes network symptoms¶
If the real issue is missing Accelerated Networking, bad route design, or load-balancer behavior, resizing alone only adds cost.
Anti-Pattern 3: Treating availability placement and latency placement as unrelated¶
Zone strategy, load balancing, and proximity expectations affect each other. Reviewing only one of them creates surprise tradeoffs later.
Validation Checklist¶
- [ ] The administration path is private by default.
- [ ] Accelerated Networking support was checked for the selected VM size.
- [ ] The team knows whether the VM should be zonal, regional, or part of a scale set.
- [ ] NSGs, routing, DNS, and load-balancer dependencies were reviewed together.
- [ ] The final networking design is documented in terms responders can validate during an outage.