update port handling for Azure deploy