Author : MD TAREQ HASSAN | Updated : 2022/11/11
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
Create 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 using azure portal:
- Go to: https://portal.azure.com/#create/Microsoft.PublicIPAddress-ARM
- Fillup details (i.e. name
xyz-pip-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
Add tags to public IP address
Azure portal does not give option to add tags during creation time. Tags can be added after creating Public IP address.
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