Islam is the main religion of Azerbaijan. 99.2 percents of the country’s population are Muslims. About 85 percent Shia Islam while 15 percents are Sunni Muslims.
You are right about the calculation of realpotiks as Azerbaijan has become increasingly pro-Western aligned, and is an ally of Israel, Turkey and the United States (the latter two being NATO members) while the Islamic Republic of Iran is largely pro-Russian and pro-Chinese aligned due to its hostility towards the U.S. and has been targeted with sanctions. Iranian politicians, like Mohammad Hosseini, have called Azerbaijan an Israeli proxy.
The United States praised Armenia’s efforts to shelter displaced persons and refugees, and Armenia offered appreciation for the more than $21 million in humanitarian assistance the United States has provided to support displaced persons and refugees from Nagorno-Karabakh since September 2020.