Public IP addresses

Public IP addresses allow Internet resources to communicate inbound to Azure resources. Public IP addresses enable Azure resources to communicate to Internet and public-facing Azure services. The address is dedicated to the resource, until it's unassigned by you. A resource without a public IP assigned can communicate outbound. Azure dynamically assigns an available IP address that isn't dedicated to the resource. For more information about outbound connections in Azure, see Understand outbound connections.

In Azure Resource Manager, a public IP address is a resource that has its own properties. Some of the resources you can associate a public IP address resource with:

  • Virtual machine network interfaces
  • Internet-facing load balancers
  • Virtual Network gateways (VPN/ER)
  • NAT gateways
  • Application gateways
  • Azure Firewall
  • Bastion Host

For Virtual Machine Scale Sets, use Public IP Prefixes.


The following table shows the property a public IP can be associated to a resource and the allocation methods. Note that public IPv6 support isn't available for all resource types at this time.

Top-level resource IP Address association Dynamic IPv4 Static IPv4 Dynamic IPv6 Static IPv6
Virtual machine Network interface Yes Yes Yes Yes
Internet-facing Load balancer Front-end configuration Yes Yes Yes Yes
Virtual Network gateway (VPN) Gateway IP configuration Yes (non-AZ only) Yes (AZ only) No No
Virtual Network gateway (ER) Gateway IP configuration Yes No Yes (preview) No
NAT gateway Gateway IP configuration No Yes No No
Application gateway Front-end configuration Yes (V1 only) Yes (V2 only) No No
Azure Firewall Front-end configuration No Yes No No
Bastion Host Public IP configuration No Yes No No

IP address version

Public IP addresses can be created with an IPv4 or IPv6 address. You may be given the option to create a dual-stack deployment with a IPv4 and IPv6 address.


Public IP addresses are created with one of the following SKUs:


Standard SKU public IP addresses:

  • Always use static allocation method.
  • Have an adjustable inbound originated flow idle timeout of 4-30 minutes, with a default of 4 minutes, and fixed outbound originated flow idle timeout of 4 minutes.
  • Designed to align with the "secure by default" model and be closed to inbound traffic when used as a frontend. Allowlisting data plane traffic with network security group (NSG) is required (for example, on the NIC of a virtual machine with a Standard SKU Public IP attached).
  • Can be zone-redundant (which is advertised from all three zones), zonal (which is guaranteed in a specific pre-selected availability zone), or "no-zone" (which isn't associated with a specific pre-selected availability zone). To learn more about availability zones, see Availability zones overview and Standard Load Balancer and Availability Zones. Zone redundant IPs can only be created in regions where three availability zones are live. IPs created before zones are live won't be zone redundant.
  • Can be utilized with the routing preference to enable more granular control of how traffic is routed between Azure and the Internet.
  • Can be used as anycast frontend IPs for cross-region load balancers (preview functionality).


Inbound communication with a Standard SKU resource fails until you create and associate a network security group and explicitly allow the desired inbound traffic.


Basic SKU addresses:

  • For IPv4: Can be assigned using the dynamic or static allocation method. For IPv6: Can only be assigned using the dynamic allocation method.
  • Have an adjustable inbound originated flow idle timeout of 4-30 minutes, with a default of 4 minutes, and fixed outbound originated flow idle timeout of 4 minutes.
  • Are open by default. Network security groups are recommended but optional for restricting inbound or outbound traffic.
  • Don't support Availability Zone scenarios. Use standard SKU public IP for Availability Zone scenarios in applicable regions. To learn more about availability zones, see Availability zones overview and Standard Load Balancer and Availability Zones.
  • Don't support routing preference or cross-region load balancers functionality.


Basic SKU IPv4 addresses can be upgraded after creation to Standard SKU. To learn about SKU upgrade, refer to Public IP upgrade.


Matching SKUs are required for load balancer and public IP resources. You can't have a mixture of Basic SKU resources and standard SKU resources. You can't attach standalone virtual machines, virtual machines in an availability set resource, or a virtual machine scale set resources to both SKUs simultaneously. New designs should consider using Standard SKU resources. Please review Standard Load Balancer for details.

IP address assignment

Standard public IPv4, Basic public IPv4, and Standard public IPv6 addresses all support static assignment. The resource is assigned an IP address at the time it's created. The IP address is released when the resource is deleted.


Even when you set the allocation method to static, you cannot specify the actual IP address assigned to the public IP address resource. Azure assigns the IP address from a pool of available IP addresses in the Azure location the resource is created in.

Static public IP addresses are commonly used in the following scenarios:

  • When you must update firewall rules to communicate with your Azure resources.
  • DNS name resolution, where a change in IP address would require updating A records.
  • Your Azure resources communicate with other apps or services that use an IP address-based security model.
  • You use TLS/SSL certificates linked to an IP address.

Basic public IPv4 and IPv6 addresses support a dynamic assignment. The IP address isn't given to the resource at the time of creation when selecting dynamic. The IP is assigned when you associate the public IP address with a resource. The IP address is released when you stop, or delete the resource. For example, a public IP resource is released from a resource named Resource A. Resource A receives a different IP on start-up if the public IP resource is reassigned. Any associated IP address is released if the allocation method is changed from static to dynamic. Set the allocation method to static to ensure the IP address remains the same.


Azure allocates public IP addresses from a range unique to each region in each Azure cloud. You can download the list of ranges (prefixes) for the Azure Public, US government, China, and Germany clouds.

DNS Name Label

Select this option to specify a DNS label for a public IP resource. This functionality works for both IPv4 addresses (32-bit A records) and IPv6 addresses (128-bit AAAA records). This selection creates a mapping for to the public IP in the Azure-managed DNS.

For instance, creation of a public IP with:

  • contoso as a domainnamelabel
  • West US Azure location

The fully qualified domain name (FQDN) resolves to the public IP address of the resource.


Each domain name label created must be unique within its Azure location.

If a custom domain is desired for services that use a Public IP, you can use Azure DNS or an external DNS provider for your DNS Record.

Other public IP address features

There are other attributes that can be used for a public IP address.

  • The Global Tier allows a public IP address to be used with cross-region load balancers.
  • The Internet Routing Preference option minimizes the time that traffic spends on the Microsoft network, lowering the egress data transfer cost.


At this time, both the Tier and Routing Preference feature are available for standard SKU IPv4 addresses only. They also cannot be utilized on the same IP address concurrently.


Azure provides an default outbound access IP for Azure Virtual Machines which aren't assigned a public IP address, or are in the backend pool of an internal Basic Azure Load Balancer. The default outbound access IP mechanism provides an outbound IP address that isn't configurable.

The default outbound access IP is disabled when a public IP address is assigned to the virtual machine or the virtual machine is placed in the backend pool of a Standard Load Balancer with or without outbound rules. If a Azure Virtual Network NAT gateway resource is assigned to the subnet of the virtual machine, the default outbound access IP is disabled.

For more information on outbound connections in Azure, see Using Source Network Address Translation (SNAT) for outbound connections.


The limits for IP addressing are listed in the full set of limits for networking in Azure. The limits are per region and per subscription. Contact support to increase above the default limits based on your business needs.


Public IP addresses have a nominal charge. To learn more about IP address pricing in Azure, review the IP address pricing page.

Limitations for IPv6

  • VPN gateways cannot be used in a virtual network with IPv6 enabled, either directly or peered with "UseRemoteGateway".
  • Public IPv6 addresses are locked at an idle timeout of 4 minutes.
  • Azure doesn't support IPv6 communication for containers.
  • Use of IPv6-only virtual machines or virtual machines scale sets aren't supported. Each NIC must include at least one IPv4 IP configuration (dual-stack).
  • When adding IPv6 to existing IPv4 deployments, IPv6 ranges can't be added to a virtual network with existing resource navigation links.
  • Forward DNS for IPv6 is supported for Azure public DNS. Reverse DNS isn't supported.
  • Routing Preference and cross-region load-balancing isn't supported.

For more information on IPv6 in Azure, see here.

Next steps