Home › Studies › AZ-104 › Virtual Networking › Public IP Addresses

Public IP Addresses

Basic vs Standard · static vs dynamic · zones · prefixes · upgrade · outbound without a public IP

By the tools4free.dev team · Last reviewed November 13, 2026

Practice questions for this topic →

SKUs

BasicStandard
AllocationIPv4: Dynamic or Static. IPv6: Dynamic onlyAlways Static
Inbound trafficOpen by default; NSG optionalClosed by default: an NSG must allow traffic (for example on the NIC of a VM with a Standard public IP)
ZonesNoneNon-zonal, zonal or zone-redundant (Standard v2: zone-redundant only)
Global tier and Routing Preference InternetNoYes (not for Standard v2)
StatusRetired on Sep 30, 2025. Still operational, but unsupported and not covered by an SLACurrent

A public IP can't change its zone after creation. Standard IPs that were non-zonal are now zone-redundant in zone-enabled regions.

Allocation and naming

Public IP prefixes

Upgrade a Basic IP

Outbound without a public IP

Limits

ItemValue
Standard and Basic public IPs per subscription per region (default)10 for most offers (Enterprise Agreement 1,000; pay-as-you-go 20). More through support
Public IPs per NIC / per VM256 / 256
Public IP prefix length (default maximum)/28
NAT gateway public IPs16 maximum

CLI and PowerShell

TaskCommand
Standard zone-redundant IPv4 (CLI)az network public-ip create -g rg -n myStandardPublicIP --version IPv4 --sku Standard --zone 1 2 3
Zonal IP (CLI)az network public-ip create ... --zone 2
IPv6 (CLI)az network public-ip create ... --version IPv6
Global tier (CLI)az network public-ip create ... --tier global --sku Standard
Routing preference Internet (CLI)az network public-ip create ... --ip-tags 'RoutingPreference=Internet'
Show the address (CLI)az network public-ip show -g rg -n lb-frontend-ip --query ipAddress -o tsv
Static IP with a DNS label (PowerShell)New-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $rgName -AllocationMethod Static -DomainNameLabel $dnsPrefix -Location $location
Standard IP from a prefix (PowerShell)New-AzPublicIpAddress ... -AllocationMethod Static -PublicIpPrefix $publicIpPrefix -Sku Standard
Global tier (PowerShell)New-AzPublicIpAddress ... -AllocationMethod Static -Sku Standard -Tier Global

-AllocationMethod, -Location and -ResourceGroupName are mandatory for New-AzPublicIpAddress. With Static the address is allocated immediately; with Dynamic it is allocated when you start or create the associated resource.

Exam Tips

Tick each tip once you can answer it without looking.

“Public IP must survive a VM stop and start” → Static allocation (Standard is always static). Trap: Dynamic with a DNS label. The address is still released when you stop (deallocate) the VM.

“Standard public IP on a VM, RDP times out, no NSG” → Standard is closed by default: add an NSG that allows 3389 on the NIC or subnet. Trap: Changing the IP to Dynamic.

“Public load balancer is Standard; can it use a Basic public IP” → No: SKUs must match. Trap: Believing Basic IPs work with any load balancer.

“Which public IP SKU supports availability zones” → Standard. Trap: Basic with a zone parameter.

“Change a zonal public IP to zone 3” → Not possible: a public IP can't change zone after creation. Create a new one. Trap: Editing the zone in the portal.

“Allow-list 8 contiguous outbound IPs at a partner's firewall” → Create a /29 public IP prefix and assign IPs from it. Trap: Choosing /28. It gives 16 addresses, not 8.

“Resize a public IP prefix from /30 to /29” → Not possible: the size is fixed. Create a new prefix. Trap: Looking for an edit-size option.

“Public IP prefix with Basic SKU IPs” → Not allowed: only Standard static IPs come from a prefix. Trap: Assigning Basic dynamic IPs.

“Prefix on a load balancer for inbound rules” → Not for inbound: a prefix is used for load balancer outbound. Trap: Using the prefix for inbound frontends.

“Delete a prefix whose IPs are in use” → Blocked: dissociate the IPs first. Trap: Expecting the prefix delete to remove the IPs.

“Cross-region load balancer frontend” → Standard public IP in the Global tier. Trap: A regional Standard IP.

“Basic public IP retirement date” → Sep 30, 2025: still running but unsupported and not covered by an SLA. Trap: Assuming the IPs stopped working that day.

“Upgrade a Basic IP on a standalone VM” → Use the upgrade script, or detach and upgrade, and plan for downtime. Trap: Changing the SKU in place while attached.

“Public IP DNS label "contoso" in West US” → contoso.westus.cloudapp.azure.com. Trap: Leaving out the location.

“VPN gateway on an IPv6-enabled vnet” → Not supported. Trap: Assuming dual stack is fine.

“Subnet has a NAT gateway; a VM in it also has a Standard public IP” → The NAT gateway carries outbound traffic. Trap: The VM's own public IP. NAT gateway takes precedence over instance-level IPs, load balancers and Azure Firewall.

“VM has no public IP in a subnet of a vnet created after March 31, 2026, and no NAT gateway” → No outbound internet: add a NAT gateway, Standard public IP or load balancer outbound rules. Trap: Expecting the default outbound IP to keep working.

“After upgrading to Standard, inbound traffic to the VM stops” → Add an NSG that allows the traffic: Standard is closed by default. Trap: Reverting to Basic.

Sources

Checked against Microsoft Learn on November 13, 2026.

← VNet PeeringRouting & UDRs →