Azure Virtual Network IP Addressing

Introduction to IP Addressing in Azure Virtual Networks

Azure Virtual Network (VNet) provides a flexible and robust platform for deploying and managing your cloud resources. A crucial aspect of VNet configuration is IP addressing. This document will guide you through the concepts and considerations for assigning IP addresses to resources within your Azure VNets.

IP Address Types

Azure supports two primary types of IP addresses for resources within a VNet:

Private IP Address Allocation

When you deploy a resource that supports IP addressing (like a Virtual Machine) into a subnet within a VNet, Azure assigns it a private IP address. You have two options for how this assignment occurs:

Subnet Considerations

Every subnet within a VNet is allocated a block of IP addresses. Azure reserves the first four and the last IP address in each subnet for protocol conformance. For example, a subnet with the address range 10.0.1.0/24 (256 addresses) has 251 usable IP addresses.

Important: Ensure your subnet address ranges are sufficiently sized to accommodate your current and future resource deployments. Overlapping address spaces between VNets can cause connectivity issues.

Public IP Address Assignment

Public IP addresses in Azure can be assigned to various resources to enable internet connectivity. There are two SKU types for Public IP addresses:

Public IP addresses can also be allocated dynamically or statically, similar to private IP addresses.

Use Cases for Public IPs

IP Addressing Best Practices

Security Note: Every public IP address assigned to a resource is a potential entry point from the internet. Always implement appropriate security measures like Network Security Groups (NSGs) and firewalls.