Creating and applying a service profile template