> ## Documentation Index
> Fetch the complete documentation index at: https://notes.kodekloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> Guide to Azure NAT Gateway explaining outbound-only internet access, when to use it versus public IPs or load balancers, and how to configure and associate it with subnets.

Welcome to the module on configuring internet access with Azure Virtual NAT Gateway.

This lesson explains how Azure NAT Gateway provides secure, scalable outbound-only internet access for resources in your Azure Virtual Network (VNet). By centralizing egress through a NAT Gateway, you avoid assigning public IPs to individual virtual machines, reduce management overhead, and achieve predictable outbound (egress) behavior that improves your security posture and simplifies auditing.

By the end of this module you will be able to:

* Describe the purpose of Azure NAT Gateway and how it enables outbound-only internet connectivity for selected subnets.
* Explain when to prefer NAT Gateway over assigning public IP addresses directly to VMs or using load balancers for egress.
* Understand how NAT Gateway and Azure Load Balancer can work together to support both inbound and outbound connectivity for applications.
* Configure and associate a NAT Gateway with one or more subnets to provide scalable, efficient outbound traffic for your workloads.

<Frame>
  <img src="https://mintcdn.com/kodekloud-c4ac6d9a/OMkQqgpN2jgRj5WR/images/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions/Configure-Internet-Access-with-Azure-Virtual-NAT/Introduction/nat-gateway-learning-objectives-diagram.jpg?fit=max&auto=format&n=OMkQqgpN2jgRj5WR&q=85&s=72f42851c4fc9a9a4753f985cd4cdab5" alt="The image outlines four learning objectives related to NAT Gateway, including its purpose, ideal scenarios, interaction with load balancers, and configuration for scalable traffic." width="1920" height="1080" data-path="images/AZ-700-Designing-and-Implementing-Microsoft-Azure-Networking-Solutions/Configure-Internet-Access-with-Azure-Virtual-NAT/Introduction/nat-gateway-learning-objectives-diagram.jpg" />
</Frame>

<Callout icon="lightbulb" color="#1CB2FE">
  Before you proceed, ensure you have a basic understanding of Azure Virtual Networks, subnets, Network Security Groups (NSGs), and public IP addressing. For a quick primer, see the [Azure networking fundamentals](https://learn.microsoft.com/azure/virtual-network/virtual-networks-overview) documentation.
</Callout>

Learning objectives (mapped to outcomes and why they matter):

| Learning objective                    |                                                               What you'll be able to do | Why it matters                                                                                                       |
| ------------------------------------- | --------------------------------------------------------------------------------------: | -------------------------------------------------------------------------------------------------------------------- |
| Describe NAT Gateway purpose          |    Explain how NAT Gateway provides outbound-only internet access for specified subnets | Centralizes egress, removes need for per-VM public IPs, and supports predictable source IPs for outbound connections |
| Choose the right egress pattern       |  Decide when to use NAT Gateway vs. VM public IPs or Load Balancer for outbound traffic | Helps meet security, cost, and scalability requirements for different application architectures                      |
| Combine NAT Gateway and Load Balancer | Architect solutions that handle both inbound (load-balanced) and outbound (NAT) traffic | Enables hybrid traffic patterns—public entry points plus secure, controlled egress                                   |
| Configure and associate NAT Gateway   |     Create and attach a NAT Gateway to subnets to enable scalable outbound connectivity | Provides a repeatable, supported deployment pattern for production workloads                                         |

References and further reading:

* [Azure NAT Gateway documentation](https://learn.microsoft.com/azure/virtual-network/nat-gateway)
* [Azure Load Balancer overview](https://learn.microsoft.com/azure/load-balancer/load-balancer-overview)
* [Azure Virtual Network overview](https://learn.microsoft.com/azure/virtual-network/virtual-networks-overview)

<CardGroup>
  <Card title="Watch Video" icon="video" cta="Learn more" href="https://learn.kodekloud.com/user/courses/az-700-designing-and-implementing-microsoft-azure-networking-solutions/module/5fa34fd1-903f-422e-8fc1-12a89731ebb9/lesson/e24792c1-6629-4864-89f8-86a3d3b4c786" />
</CardGroup>
