Communism is most likely to take hold in a country that is in the midst of economic and political turmoil, and the conditions in Germany after WW1 were very favorable for it. Hitler was very pro German, and found the willingness of the Communists to take directives from Moscow abhorrent. Germany belonged to the Germans in Hitler's mind, and the Bolsheviks were people who were subhuman. The Germans were the master race destined to rule inferior types, not the other way around. Also there was a connection with the Bolsheviks to Jews, and Hitler hated Jews. Communism offered promise of equality and fairness to the Jews, who have been generally disliked
throughout history, and discriminated against because of it. A fairly high proportion of Jews as compared to the overall population did tend to favor it, but being Jew and Bolshevik have never actually been one in the same thing. Hitler seemed to think so. The hatred and opposition of the Communists, as well as the Jews, was a part of the Nazi's propaganda campaign. It gave the German people scapegoats for their problems.