The rebuild function removes all data on the server and replaces it with the specified image. Server ID and IP addresses remain the same.