Quickstart: Create a public IP address using the Azure portal
Article
5 minutes to read
In this quickstart, you'll learn how to create an Azure public IP address. Public IP addresses in Azure are used for public connections to Azure resources. Public IP addresses are available in two SKUs: basic, and standard. Two tiers of public IP addresses are available: regional, and global. The routing preference of a public IP address is set when created. Internet routing and Microsoft Network routing are the available choices.
Standard SKU public IP is recommended for production workloads. For more information about SKUs, see Public IP addresses.
Create a standard SKU public IP address
Use the following steps to create a standard public IPv4 address named myStandardPublicIP.
Note
To create an IPv6 address, choose IPv6 for the IP Version parameter. If your deployment requires a dual stack configuration (IPv4 and IPv6 address), choose Both.
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP addresses.
Select + Create.
In Create public IP address, enter, or select the following information:
Setting
Value
IP Version
Select IPv4
SKU
Select Standard
Tier
Select Regional
Name
Enter myStandardPublicIP
IP address assignment
Locked as Static
Routing Preference
Select Microsoft network.
Idle Timeout (minutes)
Leave the default of 4.
DNS name label
Leave the value blank.
Subscription
Select your subscription
Resource group
Select Create new, enter QuickStartCreateIP-rg. Select OK.
Location
Select (US) East US 2
Availability Zone
Select No Zone
Select Create.
Note
In regions with Availability Zones, you have the option to select no-zone (default option), a specific zone, or zone-redundant. The choice will depend on your specific domain failure requirements. In regions without Availability Zones, this field won't appear. For more information on availability zones, see Availability zones overview.
You can associate the above created public IP address with a Windows or Linux virtual machine. Use the CLI section on the tutorial page: Associate a public IP address to a virtual machine to associate the public IP to your VM. You can also associate the public IP address created above with an Azure Load Balancer, by assigning it to the load balancer frontend configuration. The public IP address serves as a load-balanced virtual IP address (VIP).
Note
Standard SKU public IP is recommended for production workloads. For more information about SKUs, see Public IP addresses.
Create a basic SKU public IP address
In this section, create a basic public IPv4 address named myBasicPublicIP.
Note
Basic public IPs don't support availability zones.
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP addresses.
Select + Create.
On the Create public IP address page enter, or select the following information:
Setting
Value
IP Version
Select IPv4
SKU
Select Basic
Name
Enter myBasicPublicIP
IP address assignment
Select Static
Idle Timeout (minutes)
Leave the default of 4.
DNS name label
Leave the value blank
Subscription
Select your subscription.
Resource group
Select Create new, enter QuickStartCreateIP-rg. Select OK.
Location
Select (US) East US 2
Select Create.
If it's acceptable for the IP address to change over time, Dynamic IP assignment can be selected by changing the AllocationMethod to Dynamic.
This section shows you how to configure routing preference via ISP network (Internet option) for a public IP address. After you create the public IP address, you can associate it with the following Azure resources:
Virtual machine
Virtual machine scale set
Azure Kubernetes Service (AKS)
Internet-facing load balancer
Application Gateway
Azure Firewall
By default, the routing preference for public IP address is set to the Microsoft global network for all Azure services and can be associated with any Azure service.
Note
To create an IPv6 address, choose IPv6 for the IP Version parameter. If your deployment requires a dual stack configuration (IPv4 and IPv6 address), choose Both.
Create a public IP with Internet routing
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP addresses.
Select + Create.
In Create public IP address, enter, or select the following information:
Setting
Value
IP Version
Select IPv4
SKU
Select Standard
Tier
Select Regional
Name
Enter myStandardPublicIP-RP
IP address assignment
Locked as Static
Routing Preference
Select Internet.
Idle Timeout (minutes)
Leave the default of 4.
DNS name label
Leave the value blank.
Subscription
Select your subscription
Resource group
Select Create new, enter QuickStartCreateIP-rg. Select OK.
Location
Select (US) East US 2
Availability Zone
Select Zone redundant
Select Create.
Note
Public IP addresses are created with an IPv4 or IPv6 address. However, routing preference only supports IPV4 currently.
Note
In regions with Availability Zones, you have the option to select no-zone (default option), a specific zone, or zone-redundant. The choice will depend on your specific domain failure requirements. In regions without Availability Zones, this field won't appear. For more information on availability zones, see Availability zones overview.
You can associate the above created public IP address with a Windows or Linux virtual machine. Use the CLI section on the tutorial page: Associate a public IP address to a virtual machine to associate the public IP to your VM. You can also associate the public IP address created above with an Azure Load Balancer, by assigning it to the load balancer frontend configuration. The public IP address serves as a load-balanced virtual IP address (VIP).
Public IP addresses are associated with a single region. The Global tier spans an IP address across multiple regions. Global tier is required for the frontends of cross-region load balancers.