Part to update app hostnames on vm. This is necessary because apps may call each other using http.