Quickstart: Create a public IP address prefix using the Azure portal
Learn about a public IP address prefix and how to create, change, and delete one. A public IP address prefix is a contiguous range of standard SKU public IP addresses.
When you create a public IP address resource, you can assign a static public IP address from the prefix and associate the address to virtual machines, load balancers, or other resources. For more information, see Public IP address prefix overview.
Prerequisites
- If you don't already have an Azure account, sign up for a free trial account.
Sign in to Azure
Sign in to the Azure portal.
Create a public IP address prefix
In this section, you'll create a public IP prefix using the Azure portal.
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP Prefixes.
Select + Create.
In Create public IP prefix, enter, or select the following information in the Basics tab:
Setting Value Project details Subscription Select your subscription Resource group Select Create new. Enter myRG. Select OK. Instance details Name Enter myPublicIPPrefix. Region Select (US) West US 2. IP version Leave the default of IPv4. Prefix ownership Leave the default of Microsoft owned Prefix size Select your prefix size. Availability Zone Leave the default of Zone-redundant Note
To create an IPv6 prefix, choose IPv6 for the IP Version.
Select the Review + create tab or the blue Review + create button at the bottom of the page.
Select Create.
Create a static public IP address from a prefix
Once you create a prefix, you must create static IP addresses from the prefix. In this section, you'll create a static IP address from the prefix you created earlier.
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP Prefixes.
In Public IP Prefixes, select myPublicIPPrefix.
In Overview of myPublicIPPrefix, select + Add IP address.
Enter myPublicIP in Name.
Leave the rest of the selections at the default.
Select Add.
Note
Only static public IP addresses created with the standard SKU can be assigned from the prefix's range. To learn more about public IP address SKUs, see public IP address.
Select Public IP addresses in Settings to view the created IP address.
Delete a prefix
In this section, you'll learn how to view or delete a prefix.
In the search box at the top of the portal, enter Public IP.
In the search results, select Public IP Prefixes.
In Public IP Prefixes, select myPublicIPPrefix.
Select Delete in the Overview section.
Note
If addresses within the prefix are associated to public IP address resources, you must first delete the public IP address resources. See delete a public IP address.
Clean up resources
In this article, you created a public IP prefix and a public IP from that prefix.
When you're done with the public IP prefix, delete the resource group and all of the resources it contains:
Search for and select QuickStartCreateIPPrefix-rg.
Select Delete resource group.
Enter QuickStartCreateIPPrefix-rg for TYPE THE RESOURCE GROUP NAME and select Delete.
Next steps
Advance to the next article to learn how to create a public IP address:
Feedback
Submit and view feedback for