Author : HASSAN MD TAREQ | Updated : 2020/11/09
Public IP address
- Public IP addresses enable Azure resources to communicate to Internet and public-facing Azure services
- A resource without a public IP assigned can communicate outbound
- In Azure Resource Manager, a public IP address is a resource that has its own properties
- Resources that can be associated with public IP address:
- Virtual machine network interfaces
- Internet-facing load balancers
- VPN gateways
- Application gateways
- Azure Firewall
- Once assigned, the address is dedicated to the resource, until it’s unassigned
- The IP address is released when the resource is deleted
- Details: https://docs.microsoft.com/en-us/azure/virtual-network/public-ip-addresses
Creating Public IP address
Create Resource Group:
- Go to: https://portal.azure.com/#create/Microsoft.ResourceGroup (login to Azure portal first, then click the link)
- Fillup details (i.e. name ‘
demo-rg
’, select subscription etc.) - Create
Create IP address:
- Go to: https://portal.azure.com/#create/Microsoft.PublicIPAddress-ARM (login to Azure portal first and then click the link)
- Fillup details (i.e. name
pip-iaas-demo
, resource group, DNS label etc.) - Create
Notes:
- The portal doesn’t provide the option to assign a public IP address to the network interface when you create it (If you want to create a network interface with a public IP address, you must use the CLI or PowerShell to create the network interface)
- Public IP address can be assigned to the network interface after creating it
SKU
- When you assign a standard SKU public IP address to a virtual machine’s network interface, you must explicitly allow the intended traffic with a network security group
- https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-network-interface-addresses#skus