most ham recipes should be glazed towards the end of cooking, so the sugar doesn't have a chance to caramelize too much. when there's about 20-30 minutes of total time left to your baked ham, pour the brown sugar glaze over the top and put back in the oven to bake uncovered.