change to handle no public IP assigned to VM