No mandatory vaccination for Morocco, except against yellow fever for travelers from sub-Saharan African and Latin American countries where the disease is present.
As always, it is recommended to be immune against diphtheria, tetanus, pertussis, poliomyelitis, hepatitis A and B, measles (for children). And, eventually, against typhoid and rabies.
Practically eradicated, it can be present in very localized areas of Morocco, in a benign form that does not require drug prevention but good personal protection against mosquito bites (insect repellents, covering clothing, impregnated mosquito nets).
Dietary risk exists in Morocco as anywhere else in the world. Follow the usual rules (frequent hand washing, hot and cooked food, capped drinks) and you will increase your chances of avoiding dietary risks.
The medical infrastructure is satisfactory in Casablanca, Rabat, Marrakech or Agadir. However, in case of urgent care, it will be important to consult your assistance company.