In the following example, we are going to create a static public IP address using PowerShell:
- Navigate to the Azure Portal by opening https://portal.azure.com/.
- Open the Azure Cloud Shell and make sure PowerShell is selected.
- 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"
- 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. ...