...None that I know of...
Same here. We've only been down that coast the once, but I cannot recall
anchorage that would be tenable in anything other than a flat calm. In fact, not even then; we had a day when motoring in a F1, across glass-flat seas, where the swell 'grew' from 6" to 6' in about three hours; presumably generated from some weather
system way out in the Atlantic? which would've proved a bit of a wake-up call had we been anchored off the open beach.
The whole coastline is a relatively shallow lee shore, in addition, I believe that if not actually 'illegal' in Morocco, it is certainly not encouraged for foreign flagged vessels to anchor