This question already has an answer here:
I have to travel to Germany soon and there are no dates available at the German consulate for a visa appointment for a month. I was thinking of getting a Schengen visa via the French embassy since that's the only one with dates available. I would be spending 12 or more days in Germany and a couple of days in Switzerland and Spain. Sadly, none of those embassys have dates either. Is that something I can do or would it land me in trouble?