Armenians-Christian
Azerbaijanis-Muslim
all you need to know.
Russia supports Armenia, Muslim countries support Azerbaijan.
Stalin created artificial borders between Armenia and Azerbaijan, leaving a lot of Armenians in Azerbaijan. Since fall of Soviet union, there is a war going on there with bloody massacres of Armenians.
With Russia tight up in Ukraine, Azerbaijan smells a chance to fight again.