use Public Ip Address Permission
Parameters
value
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).
Indicates whether public IP addresses can be assigned to virtual machines on this subnet (i.e. Allow, Deny).