Q. Can an Azure VM have more than one public IP?
A. No. While an Azure VM can have multiple vmNICs, only the primary adapter can be assigned a public IP. With an ARM load balancer it is possible to have multiple front end IP configurations and each configuration can have a public IP enabling multiple public IPs to be used with a load balancer. For example:
#Get the Load Balancer $slb = Get-AzureRmLoadBalancer -Name "LB1" -ResourceGroupName $rgname #Create new public VIP $vip2 = New-AzureRmPublicIpAddress -Name "PublicIP2" -ResourceGroupName $rgname -Location $loc -AllocationMethod Dynamic #Create new Frontend IP Configuration using new VIP $feipconfig2 = New-AzureRmLoadBalancerFrontendIpConfig -Name "IPLB-FE2" -PublicIpAddress $vip2 $slb | Add-AzureRmLoadBalancerFrontendIpConfig -Name "IPLB-FE2" -PublicIpAddress $vip2
You would then create a new backend pool then create a new load balancer rule using the new front end configuration and the new backend configuration and finally update the load balancer with the new configuration.