Designing Internet Connectivity
This lesson explains inbound and outbound patterns, and private access to platform services.
Learning outcomes
After completing this lesson, you will be able to:
- Choose an outbound method for a private subnet.
- Compare the NAT Gateway SKUs.
- Compare service endpoints with private endpoints.
Outbound connectivity
Default outbound access is no longer provided on new private subnets, so each design must select an outbound method. The preferred method is Azure NAT Gateway, a fully managed service that gives all resources in a subnet outbound access through static public IP addresses, with no inbound exposure. It also avoids SNAT port exhaustion, which occurs when many outbound connections share too few ports.
NAT Gateway has two SKUs at the same price. Standard is zonal or has no zone, and supports up to 50 Gbps with up to 16 IPv4 public addresses. StandardV2 is zone redundant, supports up to 100 Gbps, and adds IPv6 and flow logs. It needs StandardV2 public IP addresses, cannot be upgraded in place from Standard, and is not available in all regions.
Other outbound routes exist. Sending traffic through Azure Firewall adds inspection and filtering by name, and a NAT gateway can sit behind the firewall to supply more ports. Outbound rules on a Standard Load Balancer can also supply SNAT, although NAT Gateway takes precedence and is simpler.
The following diagram follows outbound traffic from a private subnet through a NAT gateway to a partner API.

NAT Gateway
Inbound connectivity
Good designs limit what is directly reachable. Virtual machines should generally have no public IP addresses. Instead, inbound traffic should arrive through a managed entry point, which can apply security controls.
- Azure Front Door is a global entry point for web applications.
- Azure Application Gateway is a regional web entry point with routing and a web application firewall.
- Azure Load Balancer is a layer 4 entry point for non-web traffic.
- Azure Firewall can publish services through destination NAT rules.
- Azure Bastion provides administrators with RDP and SSH without public IPs on machines.
Public IP addresses should be Standard SKU, which are secure by default and zone redundant; Basic SKU public IP addresses were retired on 30 September 2025. Azure DDoS Protection and a web application firewall are normally added to internet-facing endpoints, as explained in the network security lesson.
Reaching Azure PaaS services
Internet connectivity also involves platform services, which have public endpoints by default. Two features keep this traffic private. A service endpoint extends a virtual network's identity to a service, so that the service firewall can accept traffic from a subnet, while traffic stays on the Microsoft backbone. The service continues to use its public IP address. A private endpoint places a private IP address in a virtual network for a specific resource, and public access can then be disabled.
Microsoft recommends private endpoints. They work from peered networks and from on-premises, whereas service endpoints do not carry on-premises traffic. They are specific to one resource, which prevents data exfiltration to other accounts. Service endpoints remain simpler and free, which may be sufficient for low-risk traffic. A private endpoint needs DNS configuration, typically through a private DNS zone.
The following comparison recaps these two features.
Publishing a service with Private Link service
A private endpoint lets a consumer reach an Azure platform service privately. Azure Private Link service is the provider side of the same mechanism: it lets an organization offer its own application, running behind a Standard Load Balancer, to consumers in other virtual networks, subscriptions or Microsoft Entra tenants. Each consumer creates a private endpoint in its own virtual network and requests a connection, which the provider approves manually or through an auto-approval list of subscriptions. A visibility setting controls who can find the service, and consumers connect through a generated alias.
The design has three advantages over peering or a public endpoint. Traffic stays on the Microsoft network, and the provider exposes only one service rather than a whole network. Address spaces may overlap, because the service translates consumer traffic to NAT IP addresses from the provider's virtual network. Connections also work from the consumer's peered networks and from on-premises over VPN or ExpressRoute. The provider sees the NAT address as the source, so an application that needs the real client address must enable TCP proxy protocol v2. The service supports only Standard Load Balancer, IPv4, and TCP or UDP traffic, and it must be deployed in the same region as its load balancer. A scenario in which a software vendor must offer an application privately to many customers with overlapping address spaces points to Private Link service.
Offering a service privately
Designing outbound access
Application servers in a private subnet must call a partner API, which allows traffic only from known, static IP addresses. The servers must remain unreachable from the internet, and the design must stay available if an availability zone fails. Thousands of outbound connections are opened at peak. What should you recommend?
A StandardV2 NAT gateway meets all of the requirements. It offers static public IP addresses for the partner's allowlist, it gives no inbound path, it scales to many SNAT ports, and it is zone redundant, so a zone failure does not interrupt outbound access.
A public IP address on each server would expose them to the internet. A Standard NAT gateway is zonal, so it would not survive a zone failure unless additional zonal deployments were designed. Relying on default outbound access is not possible on a new private subnet, and would not provide stable addresses.
Why does a private endpoint need a DNS change?
Show answer
Clients must resolve the service name to the private address, usually through a private DNS zone.
Exam Tips
Remember for the exam
- New subnets are private: choose NAT Gateway, a firewall or a load balancer outbound rule.
- NAT Gateway StandardV2 is zone redundant; Standard is zonal.
- Private endpoints work from on-premises; service endpoints do not.
- Keep virtual machines free of public IP addresses.