Share:
Twitter
LinkedIn
Facebook
Google+
Reddit
Whatsapp
Follow by Email

In this article I am going to walk through how to create a Public IP Range in Azure, I will also show you how to then create a public IP address from within that range. I will go through creating it in the Azure Portal, PowerShell and CLI. At the time of writing this article, this feature is in preview. As it is in preview their are some restrictions.

Restrictions

  • imited SLA
  • Only available in certain regions (at the time of writing this is West Central US, West US, West US 2, Central US, North Europe, West Europe, and Southeast Asia).
  • You do not get to choose the IP address space you get. IPs are allocated from the Azure IP pool for your region.
  • IPv4 addresses only
  • Ranges are per region, if you need to deploy in multiple regions you will need to create a prefix per region
  • You can create between a /31 (2 addresses) and a /24 (256 addresses)
  • Standard SKU only

Create an Azure IP Prefix

Via the Portal

In the Azure Portal lick All Services and search for Public IP Prefix.

In this new blade click on the + Add button or if this is your first range click on the big blue button in the middle.

In this blade select the Subscription and Resource Group you want this Public IP Prefix to reside in. Enter a Name and select the Region you want the resource to be in. Then select the Prefix size and then click Next: Tags.

Enter some Tag details and then click Next: Review and Create.

Once validation has completed click on Create.

The deployment will then start.

Once finished click on Go to resource.

You will now see that you have an IP prefix. In my case its 104.45.68.16/28.

Via the Cloud Shell

PowerShell

In the Cloud Shell use the following to create a Public IP Prefix. Just make sure you change the parameters to what you need.

Azure CLI

In the CloudShell make sure you are in the Bash mode and use the following.  Just make sure you change the parameters to what you need.

If we look in  the Azure Portal we can see that we now have 3 Public IP Prefixes.

Now let’s use the IP Prefix

Now that we have our Public IP Prefixes we can start to create Public IP addresses ready to assign to resources.

Via the Azure Portal

<strong>Note:</strong> 

When creating a Public IP Address via the Portal, the Public IP Address Resource will be created in the same Resource Group as the Public IP Prefix.

Navigate to the Public IP Prefix and then click Add IP Address.

In this new blade, enter a Name and a DNS name label. You can change the Idle timeout if needed. Once finished click Add.

You have now created a Public IP resource that you can associate to a Network adapter resource.

Via the Cloud Shell

PowerShell

In the CloudShell make sure you in the PowerShell version and then use the following to create a public IP. Just make sure you change the parameters to what you need.

<strong>Note:</strong>

At the time of writing this article the PowerShell method is not working.

Azure CLI

There you have it you can not create IP Ranges in Azure. I hope you found this article helpful. If you have any questions please reach out.

Share:
Twitter
LinkedIn
Facebook
Google+
Reddit
Whatsapp
Follow by Email
Categories: Azure

Pixel Robots.

I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

I agree