I\'m trying to do list all the ports used on a application gateway then generate a random number. Match it against this list and if the number is available use it, if not ge