Public IP Addresses in Azure

This document provides a comprehensive overview of public IP addresses in Azure, including their purpose, types, and management.

Tip: Public IP addresses are essential for communicating with resources in Azure over the internet.

What are Azure Public IP Addresses?

A public IP address is an IPv4 or IPv6 address that is configurable, routable over the internet, and assigned to a supported Azure resource. Azure provides public IP addresses to enable communication between an Azure resource and the internet, or between Azure resources and other internet-facing resources.

Key Features and Concepts

Types of Public IP Addresses

Basic SKU Public IP Addresses

The Basic SKU is the default SKU for public IP addresses. It offers core functionality for internet connectivity but lacks some advanced features and a direct SLA. Resources with Basic SKU public IPs are not protected by default by Network Security Groups (NSGs), which can pose a security risk.

Standard SKU Public IP Addresses

The Standard SKU provides enhanced features, including better security through mandatory NSG association, zone redundancy options, and a dedicated SLA. Standard SKU public IPs are the recommended choice for production workloads.

Diagram illustrating Azure Public IP Address association
Conceptual diagram of Azure Public IP Address association with Azure resources.

Managing Public IP Addresses

Creating a Public IP Address

You can create a public IP address using the Azure portal, Azure CLI, Azure PowerShell, or ARM templates. When creating, you'll specify:

Associating with Resources

Public IP addresses are associated with specific Azure resources. For example, when creating a VM, you can choose to create and associate a new public IP address or use an existing one.

Disassociating and Deleting

You can disassociate a public IP address from a resource, making it unassigned. This can be useful for troubleshooting or reassigning the IP. Deleting a public IP address releases the IP address back to Azure's pool of available addresses.

Use Cases

Best Practices

For detailed steps and advanced configurations, please refer to the official Azure documentation for creating and managing public IP addresses.