Interview Prep/Networking/Cloud networking: VPC, firewalls, NAT, VPN and proxies

In Azure, the NSG on a VM's NIC allows inbound 443, but traffic is still blocked.

IntermediateTroubleshootingCloud networking: VPC, firewalls, NAT, VPN and proxies
Answer

Likely causes → Azure evaluates NSGs at both the subnet and the NIC level; inbound traffic must be allowed by both. A subnet-level NSG (or a lower-numbered deny rule) is blocking. A UDR sending traffic to a firewall appliance can also drop it.

Diagnose →

az network nic list-effective-nsg -g <rg> -n <nic>
az network watcher test-ip-flow -g <rg> --vm <vm> --direction Inbound \
  --protocol TCP --local <vm-ip>:443 --remote <client-ip>:50000
az network nic show-effective-route-table -g <rg> -n <nic> -o table

Fix → Allow 443 in the subnet NSG too, or remove the conflicting deny rule; fix the UDR/firewall policy if traffic is forced through an NVA.

Prevent → Pick one level (usually subnet) for NSGs as a team convention, and use IP flow verify in troubleshooting runbooks.

All Networking questions Roadmap: Networking for DevOps

More on Cloud networking: VPC, firewalls, NAT, VPN and proxies