What factors led to Azerbaijan, a Muslim nation having generally good relations with Israel?

by Succ425

Azerbaijan is unique in that it's one of the few Middle Eastern countries that has friendly relations with Israel. Is this due to being a part of the Soviet Union which de emphasized religious beliefs, or because of economic relations?

Holy_Shit_HeckHounds