Learn › Cloud

Cloud Networking for Windows Admins: VNets, VPCs, Subnets and Security Groups

Azure VNet and AWS VPC networking explained: address planning, subnets, routing, NSGs and security groups, on-premises connectivity and DNS.

Intermediate 12 min read
By Gopinath Karthikeyan

Most cloud problems that look like “the server is down” are really networking: a missing rule, a wrong route, or DNS pointing the wrong way. The concepts are the same as on-premises – the controls just live in different places.

Address planning first

  • Give each VNet/VPC its own non-overlapping private range (e.g. 10.20.0.0/16 for one environment, 10.21.0.0/16 for another).
  • Never overlap with on-premises ranges – once you connect them, overlapping networks can’t route to each other.
  • Split into subnets by tier or purpose: snet-web, snet-app, snet-data, snet-mgmt.
  • Leave room to grow; resizing later is painful.

Filtering traffic

Control Azure AWS Notes
Per-NIC / per-instance firewall NSG (on subnet or NIC) Security Group Stateful – return traffic is allowed automatically
Subnet-level stateless filter (NSG covers subnets) Network ACL Stateless – needs rules both directions
Central firewall Azure Firewall / NVA AWS Network Firewall / NVA For inspection and egress control

Azure NSG rules are evaluated by priority number, lowest first; the first match wins. Default rules allow traffic within the VNet and deny inbound from the internet.

AWS security groups have only allow rules; anything not allowed is denied. A neat feature: allow traffic from another security group (e.g. “app servers may reach the database SG on 1433”) instead of IP ranges.

Example design for a three-tier app:

From To Port
Load balancer Web tier 443
Web tier App tier 8443
App tier DB tier 1433
Management subnet / Bastion All tiers 3389, 5985/5986

Everything else denied.

Routing

  • Inside a VNet/VPC, subnets route to each other automatically.
  • Route tables decide where other traffic goes: internet gateway, NAT gateway (outbound-only internet for private servers), firewall appliance, or on-premises gateway.
  • Private servers should normally reach the internet (for updates) through NAT or a proxy – without public IPs.

Connecting to on-premises

Option Azure AWS Use
Site-to-site VPN VPN Gateway Site-to-Site VPN Quick, over the internet, encrypted
Private circuit ExpressRoute Direct Connect Higher bandwidth, more predictable latency
Between cloud networks VNet peering / Virtual WAN VPC peering / Transit Gateway Hub-and-spoke designs

DNS for Windows servers in the cloud

Domain-joined VMs must resolve your AD domain:

  • Point the VNet/VPC DNS settings (or DHCP options) to your domain controllers (on-premises or in the cloud), or
  • Use cloud DNS resolvers with conditional forwarding to your DCs (Azure DNS Private Resolver, Route 53 Resolver endpoints).

Wrong DNS is the most common reason a cloud VM can’t join the domain.

Troubleshooting checklist

  1. DNS: does the name resolve to the right private IP from the source? (DNS guide)
  2. Windows Firewall on the target – still applies in the cloud.
  3. NSG / security group on both source and destination – correct ports, direction and source?
  4. NACL (AWS) – stateless, so check outbound return traffic too.
  5. Route table – is there a route to the destination?
  6. Tools: Azure Network Watcher → IP flow verify / Connection troubleshoot; AWS Reachability Analyzer and VPC Flow Logs.

Test-NetConnection target -Port 443 from the source VM is still your quickest test.

What’s next

Next: Cloud storage and backup for Windows servers.

Practise this topic

Test yourself with free questions on this topic – instant answers and explanations.

Start practice questions

CloudNetworkingAzureAWSSecurityIntermediate

Gopinath Karthikeyan

Gopinath Karthikeyan – Windows Site Reliability Engineer with about 12 years in enterprise Windows Server infrastructure, and founder of WinOps Academy. YouTube · LinkedIn

More in Cloud