Cloud service · Azure · Updated

Azure Virtual Network - Azure Virtual Network provides logically isolated networks for connecting Azure resources to each other, the internet, and on-premises environments.

In short

Azure Virtual Network defines regional network address spaces, subnets, routing, and connectivity boundaries for Azure workloads. It works with network security groups, peering, private endpoints, gateways, and network appliances to implement application segmentation, private service access, and hybrid network architectures.

Cloud Services Hub →

9 key features of Azure Virtual Network

01
Custom address spaces and subnets

Define CIDR address spaces and divide them into subnets for workloads and platform services. Reserve capacity for growth, account for Azure-reserved IPv4 addresses, and check service-specific subnet sizing and delegation requirements.

02
Stateful network filtering

Associate network security groups with subnets or supported network interfaces to allow or deny traffic by direction, protocol, address, and port. Add explicit restrictions because subnet separation alone does not prevent communication.

03
User-defined routing

Associate route tables with subnets to steer traffic through gateways or network virtual appliances. The disable VNet peering route capability, in public preview, can suppress system-generated peering routes on associated subnets so summarized routes can direct inter-network traffic through an inspection appliance.

04
Regional and global peering

Connect virtual networks with non-overlapping address spaces within a region or across regions using private connectivity over the Microsoft backbone. Traditional peering is non-transitive, so design gateway transit and spoke-to-spoke routing explicitly.

05
Private access to platform services

Use private endpoints to access supported services through private IP addresses, or service endpoints to restrict supported service access to selected subnets. Private endpoints require appropriate DNS configuration, and public access settings remain a separate control.

06
Hybrid network connectivity

Connect virtual networks to external networks using Azure VPN Gateway, ExpressRoute gateways, or Azure Virtual WAN architectures. Plan address ranges, route propagation, gateway capacity, and redundant connectivity before deployment.

07
Configurable DNS resolution

Use Azure-provided DNS or configure custom DNS servers for workloads. Combine private DNS zones and Azure DNS Private Resolver when applications need private endpoint resolution or name resolution across Azure and on-premises networks.

08
Centralized network management

Use the separate Azure Virtual Network Manager service to apply connectivity configurations and security admin rules across groups of virtual networks. Its IP address management capabilities support coordinated allocation of non-overlapping ranges within managed pool hierarchies.

09
Connectivity diagnostics

Inspect effective routes and security rules, and use Azure Network Watcher to diagnose connectivity failures. Virtual network flow logs provide traffic metadata for investigation and analysis, with separate storage and analytics costs.

Where Azure Virtual Network is used

  1. 01
    Segmented application hosting

    Place application components in separate subnets and allow only required traffic between them. For example, expose a web frontend through an application gateway while restricting database access to the application tier.

  2. 02
    Hub-and-spoke landing zones

    Deploy shared gateways, DNS services, and inspection infrastructure in a hub, with workload networks in separate spokes. Configure peering and routes explicitly because peering alone does not provide transitive spoke-to-spoke connectivity.

  3. 03
    Hybrid workload migration

    Connect Azure workloads to existing datacenter services through VPN Gateway or ExpressRoute. Validate IP address compatibility, DNS forwarding, latency, and route advertisements before migrating dependent applications.

  4. 04
    Private access to managed services

    Give applications private connectivity to supported storage, database, and secrets services using private endpoints. Configure private DNS and restrict public network access separately to avoid unintended public access paths.

  5. 05
    Controlled internet egress

    Provide workloads with explicit outbound connectivity through NAT Gateway or an inspection service. Use NAT Gateway for scalable source NAT with predictable public addresses, or Azure Firewall when outbound policy enforcement is required.

  6. 06
    Multi-region application networks

    Create separate virtual networks in each application region and connect them through global peering or a managed transit architecture. Coordinate address allocation, DNS, routing, and regional failover rather than treating one VNet as a cross-region resource.

How Azure Virtual Network is priced

No charge for the core virtual network

Creating virtual networks and subnets does not incur a base hourly charge, and traffic between resources within the same virtual network is not charged as VNet data transfer. Workload resources and separately deployed networking services remain billable.

Metered peering data transfer

Virtual network peering is charged by data transferred, with ingress and egress metered at the participating ends. Regional and global peering have different rates, so estimate both directions and the applicable regions when comparing network topologies.

Separately billed connectivity and network services

Gateways, Azure Firewall, NAT Gateway, private endpoints, public IPv4 addresses, DNS services, and other attached capabilities have their own pricing meters. Depending on the service, charges can include provisioned hours, processed data, queries, and internet or inter-region data transfer.

Optional management and observability

Azure Virtual Network Manager and network monitoring capabilities can add management, collection, storage, and analytics charges. Include log retention and traffic analytics in operating-cost estimates rather than treating them as part of the free VNet resource.

Services Azure Virtual Network works with

A common application architecture places compute in workload subnets, exposes only the required frontend, and accesses managed data services through Private Link. Private DNS zones make service hostnames resolve to private endpoint addresses. Network security groups restrict traffic between tiers, while service identities and permissions control access to the data itself.

Enterprise deployments often use a hub-and-spoke topology. The hub contains Azure Firewall, hybrid connectivity gateways, and shared DNS infrastructure; spoke VNets contain application workloads. Peering supplies direct network connectivity, while route tables and gateway transit settings determine which traffic uses shared infrastructure. Because traditional peering is non-transitive, spoke-to-spoke connectivity and inspection require deliberate routing. VPN Gateway provides encrypted tunnels, while ExpressRoute supplies provider-based private connectivity.

For outbound access, associate NAT Gateway with subnets that need predictable public source addresses, or route traffic through Azure Firewall when inspection and policy enforcement are required. Keep DNS and return-path routing aligned with the chosen architecture. Network Watcher diagnostics and virtual network flow logs help engineers validate these paths and investigate failures after deployment.

Virtual Machines

Virtual machine network interfaces connect to subnets and receive private IP addresses from the subnet address range. For example, deploy application VMs without public IP addresses and permit connections only from an internal load balancer or application gateway. Apply subnet-level security rules and verify effective rules when interface-level network security groups are also present.

Azure Firewall

Deploy Azure Firewall in a dedicated AzureFirewallSubnet and use route tables to direct selected workload traffic through it. For example, route spoke internet-bound traffic to a hub firewall for centrally managed outbound policy. Ensure return paths are compatible with stateful inspection, and remember that a default route alone does not override more-specific inter-network routes.

Azure Private Link

Private Link uses private endpoints to make supported services reachable through private IP addresses in a VNet. For example, an application can access Azure Storage through a private endpoint while the storage account's public network access is disabled. Configure the relevant private DNS zones and retain service-level identity and authorization controls.

Azure VPN Gateway

VPN Gateway provides encrypted connectivity between a VNet and on-premises networks or individual remote clients, depending on the connection type. For example, configure a site-to-site IPsec tunnel so application VMs can reach an on-premises directory service. Deploy the gateway in GatewaySubnet and validate address ranges, supported tunnel settings, and route propagation.

Azure ExpressRoute

An ExpressRoute virtual network gateway connects a VNet to an ExpressRoute circuit through private peering. For example, an enterprise can connect Azure application networks to datacenter systems using provider-delivered private connectivity. Plan gateway sizing, BGP routing, and redundant paths; ExpressRoute private connectivity is not inherently end-to-end encrypted.

Azure DNS

Private DNS zones provide private name resolution to linked virtual networks. For example, link a private endpoint DNS zone to application VNets so service hostnames resolve to private endpoint addresses. Peering does not automatically share private DNS zone visibility, and networks using custom DNS need appropriate forwarding or resolution integration.

Azure NAT Gateway

Associate NAT Gateway with workload subnets to provide explicit outbound internet connectivity using configured public IP addresses or prefixes. For example, backend VMs can call an external API whose allowlist contains the gateway's public addresses without exposing inbound public endpoints on those VMs. NAT Gateway does not inspect application traffic or establish unsolicited inbound access.

Azure Network Watcher

Network Watcher supplies diagnostic capabilities for resources connected to virtual networks. For example, use connection troubleshooting and next-hop inspection to determine whether a failed application connection is caused by security rules or an unexpected route. Enable virtual network flow logs where traffic metadata is needed, and budget for the associated storage and analytics.

API Management

Azure Virtual Network can host an injected API Management gateway in supported tiers or carry outbound gateway traffic to private backends. For private inbound access without gateway injection, supported tiers can expose the gateway through a private endpoint in the VNet.

App Service

Azure Virtual Network gives App Service apps an outbound path to private resources through a delegated integration subnet. An App Service Environment deploys directly into the VNet, and a private endpoint can provide private inbound access to an app.

Alternatives to Azure Virtual Network in other clouds

AWS

Amazon VPCAmazon VPC

Amazon VPC and Azure Virtual Network provide isolated cloud networks with configurable address ranges, subnets, and routes. Amazon VPC uses stateless network ACLs for subnet-level filtering, while Azure Virtual Network uses stateful network security groups at the subnet level.

Compare fact by fact
Azure Virtual NetworkAmazon VPC
Subnet-level traffic filteringStateful network security groupsStateless network ACLs
Regional peering chargesIngress and egress at regional rates$0.01/GB each way across zones
Compared Nov 2026

What is Azure Virtual Network

2 min read

Azure Virtual Network, commonly called a VNet, is the foundation for private networking in Azure. Each virtual network belongs to one subscription and one Azure region, but it can span availability zones within that region. Resources connected to the network receive private IP addresses from its configured address space. Separate virtual networks are isolated unless you establish connectivity through peering, gateways, or another supported network architecture.

Start with an IP address plan that avoids overlap with other Azure networks and on-premises networks that must communicate. Define address spaces using CIDR notation, then allocate subnets for application tiers and infrastructure services. Leave unused address space for growth. Azure reserves five addresses in each IPv4 subnet, so size subnets for usable addresses rather than their nominal capacity. Managed services can require dedicated or delegated subnets and additional address capacity for scaling and upgrades.

Subnet boundaries do not automatically block traffic. Azure provides system routes that allow communication between subnets in the same virtual network, and default network security group rules allow virtual network traffic. Apply explicit network security group rules to restrict application flows, such as allowing an application subnet to reach a database subnet only on its database port. Network security groups provide stateful network filtering; use Azure Firewall or a network virtual appliance when you need centralized inspection or application-aware controls.

Route tables associated with subnets let you define user-defined routes to direct traffic toward gateways or appliances. Azure selects routes primarily by the longest matching destination prefix, so a broad default route does not override more-specific peering routes. Check effective routes when implementing centralized inspection, and design forward and return paths together to avoid asymmetric routing through stateful devices. Configure an explicit outbound connectivity method, such as NAT Gateway or Azure Firewall, rather than depending on implicit outbound access.

Virtual network peering connects networks within a region or across regions over the Microsoft backbone. Traditional peering is not transitive: connecting two spokes to a hub does not automatically provide connectivity between those spokes. Shared gateway access requires the appropriate gateway transit configuration, while routed spoke-to-spoke inspection typically requires an appliance and suitable routes. Cross-region applications need separate virtual networks and a deliberate connectivity and failover design.

For supported platform services, private endpoints place service-facing private IP addresses in a subnet through Azure Private Link. Service endpoints instead extend subnet identity to supported services while those services retain public endpoints. Neither option replaces service-level authorization. Configure private DNS zones or DNS forwarding so application hostnames resolve to the intended addresses, and manage public network access separately where required.

Deploy networks, security rules, and routes through infrastructure as code, and validate changes before production rollout. Use effective security rules, effective routes, Network Watcher connection troubleshooting, and virtual network flow logs to investigate connectivity. At larger scales, Azure Virtual Network Manager can centralize connectivity configurations, security admin rules, and IP address management across subscriptions.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.