Marinate the chicken legs for a minimum of a few hours, and preferably overnight. Rub the meat thoroughly with salt and harissa paste, also under the skin. Place the meat in an oven proof casserole dish, cover it with a plastic foil, put in the fridge, leave to marinate.
Preheat the oven to 180 °C / 350 F / Gas Mark 4, no fan (if you have a convection oven reduce the temperature by about 20°). Remove the chicken from the refrigerator.
When the oven is ready, pour about a ½ cup of water into the dish (you should have about 1/2-inch / 1 cm water in the baking dish), cover the dish with a lid or seal tightly with aluminum foil, put in the oven, bake for 45 minutes.
About 10 minutes before the end of this time, prepare the vegetables (slice thinly the carrots and shallots).
Add the carrots, onions, and raisins to the baking dish, pour in the additional water, if necessary. The vegetables should be at least half-covered with the liquid.
Bake uncovered for another 45 minutes. At the end of the baking keep an eye on the thighs and if they brown too quickly cover them loosely with an aluminum foil. If the skin is not crispy, move the baking dish to the top shelf of the oven and bake until crispy.
Remove the chicken from the oven, it’s ready when the skin is browned and crispy and the meat easily falls off the bone.