Azure Networking
Cheat sheet · https://pcornel.dk/topic.php?topic=6296
Answer
Azure networking is built from virtual networks (VNets) divided into subnets, filtered by network security groups, steered by route tables, connected by peering, VPN or ExpressRoute, and exposed through load balancers, gateways and private endpoints.
Remember
NSGs are stateful; inbound traffic is checked by the subnet NSG and then the NIC NSG (outbound: NIC, then subnet). Effective routes and effective NSG rules on the NIC are the truth. Peering is not transitive. Private endpoints need private DNS. New VNets created with recent API versions and the portal have no default outbound internet access — use NAT Gateway.
First checks
az network nic list-effective-nsg -g <rg> -n <nic>— effective rules.az network nic show-effective-route-table -g <rg> -n <nic> -o table— effective routes.az network watcher test-ip-flow ...— would NSG allow this 5-tuple?az network watcher show-next-hop ...— next hop for a destination.nslookup <account>.blob.core.windows.netfrom the VM — private endpoint resolves to a private IP?
Verify in this order
source → NIC/subnet NSG (outbound) → effective route (system, BGP, UDR) → peering/gateway/NVA → destination subnet NSG → NIC NSG (inbound) → guest firewall → application
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=6296