They are Muslim, full stop. We need to know nothing more, Islamically.
When there is a conflict between any Muslim and Non-Muslim state, as is the case here, it is HARAM to support a Kuffar state (esp one occupying Muslim land.)
Azerbaycan is blocked from Pakistan and other potential oil costumers by Iran, so they are not in a position to be picky.
Plus, to maintain military deterrence capacity against its enemies, it is forced to by Israeli arms.
However, we see in Israel itself, the view is shifting to be more pro-Armenia as Azerbaycan gets stronger.
They have a common Islamophobic culture, so Israeli and Armenian fascists get along quite well, they support each other in the US for example.
Be careful of Iranian propaganda, because the situation is much larger.
Turkey is the main patron of Azerbaycan, that is the real problem for every enemy of Azerbaycan.
You have the wrong flags, buddy. Please change them.