Creating a public IP address

In the following example, we are going to create a static public IP address using PowerShell:

  1. Navigate to the Azure Portal by opening https://portal.azure.com/.
  2. Open the Azure Cloud Shell and make sure PowerShell is selected.
  3. Add the following command:

If necessary, select the right subscription:

Select-AzureRmSubscription -SubscriptionId "********-****-****-****-***********"

Create the IP address:

New-AzureRmPublicIpAddress -Name PublicPacktIP -ResourceGroupName PacktPub -AllocationMethod Static -Location "West Europe"
  1. This is the easiest way to create a static IP address. However, you still have to assign it to a Azure resource. It is only created now. I've used an existing resource group for this example. ...

Get Architecting Microsoft Azure Solutions - Exam Guide 70-535 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.