Detect port for Azure deployment