Rediģēt

Kopīgot, izmantojot


Quickstart: Create a public IP address using the Azure portal

In this quickstart, you learn how to create Azure public IP addresses, which you use 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. You can also set the routing preference of a public IP address when you create it: Microsoft network or Internet.

Diagram of an example use of a public IP address. A public IP address is assigned to a load balancer.

Prerequisites

Sign in to Azure

Sign in to the Azure portal.


A public IP address with a Standard SKU is recommended for production workloads. For more information about SKUs, see Public IP addresses.

Create a Standard SKU public IP address

Follow these steps to create a public IPv4 address with a Standard SKU named myStandardPublicIP. To create an IPv6 address instead, choose IPv6 for the IP Version:

  1. In the portal, search for and select Public IP addresses.

  2. On the Public IP addresses page, select Create.

  3. On the Basics tab of the Create public IP address screen, enter or select the following values:

    • Subscription: Keep the default or select a different subscription.
    • Resource group: Select Create new, and then name the group TestRG.
    • Region: Select (US) East US 2.
    • Name: Enter myStandardPublicIP.
    • IP Version: Select IPv4.
    • SKU: Select Standard.
    • Availability zone: Select No Zone.
    • Tier: Select Regional.
    • IP address assignment: Only option is Static.
    • Routing preference: Select Microsoft network.
    • Idle timeout (minutes): Keep the default of 4.
    • DNS name label: Leave the value blank.
    • Domain name label scope (preview): Leave the value blank.

    Screenshot that shows the Create public IP address Basics tab settings for a Standard SKU.

  4. Select Review + create. After validation succeeds, select Create.

Note

In regions with availability zones, you have the option to select No Zone (default), a specific zone, or Zone-redundant. The choice depends on your specific domain failure requirements. In regions without availability zones, this field doesn't appear.

You can associate the public IP address you created with a Windows or Linux virtual machine. For more information, see Associate a public IP address to a virtual machine. You can also associate a public IP address with an Azure Load Balancer by assigning it to the load balancer front-end configuration. The public IP address serves as a load-balanced virtual IP address (VIP).

Clean up resources

When you're finished, delete the resource group and all of the resources it contains:

  1. In the portal, search for and select TestRG.

  2. From the TestRG screen, select Delete resource group.

  3. Enter TestRG for Enter resource group name to confirm deletion, and then select Delete.

Next steps

Advance to the next article to learn how to create a public IP prefix: