The building blocks of an Azure network, with the on-premises and AWS names beside them.
🖨 Print or save as PDF
If you know data centers or AWS Idea Data center Azure AWS Private network Your LAN Virtual network (VNet) VPC Segment VLAN / subnet Subnet Subnet Packet filter Access list Network security group (NSG) Security group / network ACL Static route Static route User-defined route (route table) Route table Layer 4 balancer Load balancer Azure Load Balancer Network Load Balancer Layer 7 balancer Application delivery controller Application Gateway Application Load Balancer Private circuit MPLS / leased line ExpressRoute Direct Connect Site VPN IPsec tunnel VPN Gateway Site-to-site VPN Join two networks Routed link VNet peering VPC peering Hub for many networks Core / WAN edge Virtual WAN Transit gateway
Virtual networks and subnets peering peering VPN / ExpressRoute Hub VNet firewall + gateway Spoke VNet 1 application A Spoke VNet 2 application B On-premises data center Spokes do not talk to each other directly. Traffic goes through the hub. The usual enterprise layout A VNet lives in one region and has one or more address ranges. Subnets divide the VNet. Unlike AWS, an Azure subnet spans all availability zones in the region. Azure reserves five addresses in every subnet: the first four and the last. A /29 gives you 3 usable addresses. Some services need a subnet with an exact name, for example GatewaySubnet and AzureFirewallSubnet. Subnets in the same VNet can reach each other by default. Use NSGs to restrict them. Network security groups Inbound: subnet first, then network interface Packet arrives Subnet NSG checked first NIC NSG checked second VM delivered Rules are processed by priority. The lowest number wins. Outbound runs in the opposite order. Both NSGs must allow the traffic Attach to a subnet, a network interface, or both. Inbound traffic is checked at the subnet first, then the interface. Stateful: allow the request and the reply is allowed automatically.Rules have a priority from 100 to 4096. Lowest number wins , first match stops processing. Rules can allow or deny. Default rule Effect AllowVnetInBound Anything inside the VNet and peered VNets is allowed AllowAzureLoadBalancerInBound Health probes are allowed DenyAllInBound Everything else inbound is blocked AllowInternetOutBound Outbound to the internet is allowed
Routing System routes exist by default: within the VNet, to peered VNets, and to the internet.A user-defined route overrides them, typically to send traffic through a firewall (next hop: virtual appliance). Routes learned by BGP from a gateway are added automatically. Route Server lets a network virtual appliance exchange BGP routes with the VNet. Order of preference for the same prefix: user-defined, then BGP, then system. Longest prefix match always comes first. Load balancing: which one? Service Layer Scope Use for Load Balancer 4 Regional Any TCP or UDP, public or internal Application Gateway 7 Regional Web apps: path and host routing, TLS termination, WAF Front Door 7 Global Web apps for users worldwide, with caching and WAF Traffic Manager DNS Global Steering users to a region by DNS
Connecting to your own network Option Path Good to know Point-to-site VPN Internet, encrypted One laptop to the VNet Site-to-site VPN Internet, encrypted Quick to build. Often the backup path. ExpressRoute Private circuit through a provider Not over the internet and not encrypted by default. Uses BGP. Virtual WAN Microsoft-managed hub Joins many branches, VPNs and ExpressRoute circuits
Connecting VNets Peering joins two VNets over the Microsoft backbone, in the same or different regions.Peering is not transitive : if A peers with B and B with C, A cannot reach C through B without a routing device in B. Hub and spoke: shared services and the firewall sit in a hub VNet, and each application gets a spoke peered to it.Reaching Azure services privately Option What it does Service endpoint Keeps traffic to a service on the Azure backbone. The service still has a public address. Private endpoint Gives the service a private address inside your subnet
Cannot connect? Check in this order NSG on the destination subnet and interface: is the port allowed from the source? (Network Watcher: IP flow verify) Effective routes on the source interface: where is the next hop? (Network Watcher: next hop) Is a user-defined route sending traffic to a firewall that is dropping it? Peering: is it connected on both sides, and is forwarded traffic allowed? For on-premises: is the gateway connection up and is the prefix advertised by BGP? The operating system firewall on the virtual machine. Commands Command Shows az network vnet list -o tableVirtual networks az network vnet subnet list -g RG --vnet-name VNET -o tableSubnets in a VNet az network nsg rule list -g RG --nsg-name NSG -o tableRules in an NSG az network nic show-effective-route-table -g RG -n NIC -o tableRoutes actually applied to an interface az network nic list-effective-nsg -g RG -n NICNSG rules actually applied to an interface az network vnet peering list -g RG --vnet-name VNET -o tablePeerings and their state
CCIE Journals cheat sheet. Free to print and share for study.
0 Comments
Post a Comment