Networking Basics¶
Azure Virtual Network (VNet) is the fundamental building block for your private network in Azure. It enables Azure resources to securely communicate with each other, the internet, and on-premises networks.
Core Components¶
| Component | Purpose | Scope |
|---|---|---|
| VNet | Provides logical isolation and private IP address space. | Region |
| Subnet | Segments VNet into smaller address ranges for management. | VNet |
| NIC | Connects a VM to a VNet to enable communication. | Subnet |
| NSG | Filters network traffic to and from Azure resources. | Subnet or NIC |
| Public IP | Provides internet connectivity to Azure resources. | Region |
| Load Balancer | Distributes incoming traffic across multiple VMs. | Region |
| Azure Bastion | Provides secure RDP/SSH access without public IPs. | VNet |
Inbound and Outbound Traffic Flow¶
Inbound traffic is evaluated by NSGs before reaching the VM, and outbound traffic is evaluated before route-table-based egress. NSGs can be associated at both subnet and NIC levels.
graph TD
Internet((Internet)) --> PIP[Public IP]
PIP --> SNSG[Subnet NSG]
SNSG --> NNSG[NIC NSG]
NNSG --> NIC[Network Interface]
NIC --> VM[Virtual Machine]
VM --> NIC
NIC --> NNSG
NNSG --> SNSG
SNSG --> UDR[Route Table]
UDR --> Internet Note
Network Security Group (NSG) rules are processed by priority, where lower numbers have higher priority. Default rules exist to allow basic communication but can be overridden by custom rules.