Lesson 3 of 5 Azure Virtual Networks and Routing

Configuring Public IP Addresses

This lesson explains public IP SKUs, zone options, routing preference and public IP prefixes.

Learning outcomes

After completing this lesson, you will be able to:

  • Describe the Standard public IP SKU and the retirement of Basic.
  • Explain zone-redundant and zonal public IPs and routing preference.
  • Describe public IP prefixes.

SKUs and allocation

A public IP address is its own resource, associated with a VM network interface, a public load balancer frontend, a VPN or application gateway, a NAT gateway, Azure Firewall or Azure Bastion. The Standard SKU is the only SKU for new addresses: it always uses static allocation (the address is kept until the resource is deleted), is secure by default (inbound traffic is blocked unless an NSG allows it), and supports availability zones. The Basic SKU, which offered dynamic allocation and was open by default, retired on 30 September 2025; new Basic addresses could not be created after 31 March 2025, and remaining ones are unsupported and should be upgraded to Standard.

Standard addresses can be zone-redundant (served from all zones in the region, the default where zones exist), zonal (pinned to one zone) or have no zone. The tier is Regional or Global, used by cross-region load balancers. An optional DNS name label creates label.region.cloudapp.azure.com, and a reverse FQDN can be set for PTR lookups.

The following diagram shows why requests to a web server behind a new Standard public IP time out, and the fix.

Why a web server behind a new Standard public IP times out. Standard public IPs are secure by default: inbound traffic is denied unless an NSG explicitly allows it, and here there is no NSG at all. An NSG allowing TCP 80 from the internet, associated with the NIC or subnet, opens it.
The scenario is illustrative.
Troubleshooting

An unreachable address

Exam skills 4.1.3

Find the fix for each public IP problem.

Log in to try this activity Interactive activities are free with an account.

Routing preference and prefixes

The routing preference decides how traffic travels between Azure and the internet. Microsoft network (the default) carries traffic on Microsoft's global network to the edge nearest the user, which gives better performance. Internet hands traffic to ISP networks close to the Azure region, at a lower data transfer price. Routing preference is chosen when the address is created.

A public IP prefix reserves a contiguous block of static addresses, such as a /28, from which individual public IPs are created. Partners can allow-list the whole range, and NAT gateways can use a prefix for outbound traffic. Public IPs are associated or dissociated on the resource's IP configurations page; a static address can move to another network interface without changing.

Standard (current)
AllocationStatic only
Inbound by defaultBlocked until an NSG allows it
Availability zonesZone-redundant or zonal
StatusSupported
Choose when All new deployments
Basic (retired)
AllocationStatic or dynamic
Inbound by defaultOpen
Availability zonesNot supported
StatusRetired 30 September 2025
Choose when Upgrade existing addresses to Standard
Scenario questions

Routing preference and prefixes

Exam skills 4.1.3

Choose the public IP option for each requirement.

Log in to try this activity Interactive activities are free with an account.
Worked example

An unreachable VM

An administrator creates a Standard public IP and associates it with the network interface of a Linux VM that runs a web server on port 80. The NIC and subnet have no NSGs. Requests to the public IP time out. What is the cause?

Standard public IPs are secure by default: inbound traffic is denied unless an NSG explicitly allows it, and here no NSG exists at all. Create an NSG with an inbound rule allowing TCP 80 from the internet and associate it with the NIC or subnet. Changing to dynamic allocation is not possible with Standard, and the Basic SKU is retired.

Check yourself

Which allocation method do Standard public IP addresses use?

Show answer

Static only.

Exam Tips

Remember for the exam

  • Standard public IPs are static and closed to inbound traffic until an NSG allows it.
  • Basic public IPs retired on 30 September 2025.
  • Zone-redundant public IPs survive a zone failure.
  • A public IP prefix gives a contiguous range for allow-listing.