Azerbaijan is a accomplice to this war against Iran
Anyone with a single brain cell can see it
Therefore Iran has the right to attack Azerbaijan just like GCC
As Pakistanis I get we like Azeri’s but in this case aid the enemy is unacceptable
Israel and Azerbaijan are allies but I really don't understand the point why Azerbaijan would take such a huge risk. Its like inviting your country for missile attacks. So, Its quite possible that Israelis put up a covert base without Azeris knowledge. How about we think it this way, that Israel setup a trap and wanting Iran to strike at Baku. So Israel's war will be fought by other countries. It was a master planning by Israel and we all know they are quite capable of doing such things.
Also, you need to understand the status of current relations between Azerbaijan and Iran.
Azerbaijan and Iran relations are complex, based on rivalry and deep-seated mutual suspicion.
Iran has a deep military cooperation with Armenia (non-muslim country). and you know Armenia and Azerbaijan have fought several wars. Its their main military and national security front.
Azerbaijan has tremendous economic benefits with its ties with Israel. Economic benefits comes first.
Geopolitics is often not very simple. We tend to think that Iran and Azerbaijan should be brotherly nation because both are muslims and not be partners with Armenia and Israel but both have their own reasons, both have their own point of views. Many Iranians consider Azerbaijan to be captured, (as it was under its control partially or completely at some in history), so ofcourse Azeris have their own security concerns from Iran too.
We Pakistanis are outsiders in their mutual relationship. As we are outsider or only a mediator in this conflict. Let them solve their issues. We are not party to it. Also remember Turkey is a BIG military ally of Pakistan, both countries have deep military ties and Turkey is absolutely a big time ally of Azerbaijan. Turkey will come to help Azerbaijan if its under attack. So, your suggestion may inadvertently put whole of islamic world against each other. Its already a sensitive situation.
We all have to know that root cause and root evil to all of the problems is Israel. Entire region should be aware of it and be lased focused at it.