Virtual machines and other resources such as Azure Application Gateways, Azure Load Balancers, Azure VPN Gateways require an IP address.
Create an IP – Portal
- Click Create a resource and search for Public IP address
- Fill out required fill, selecting if it is going to be a Dynamic or Static IP address
Create an IP – PowerShell
The command to do this in PowerShell is:
New-AzPublicIpAddress -ResourceGroupName RG1 -Name VM2_PIP -AllocationMethod Dynamic -Location westus