Iran needs to focus on Israel only.
You can never fight with whole world. Any attack on Azerbaijan means attack on Azerbaijan + NATO Turkey. They are one and same. They both along with many other countries will fight Iran, Israel will also join the party. Even Russia may join against Iran. Pakistan too have deep defense collaborations with both Turkey and Azeris.
See, Iran needs to learn geopolitics and diplomacy. Even if you don't like certain countries or their role, you can NEVER take a drastic step that will join whole of the region practically against you with full force. We in Pakistan knows that Russia and Israel both give weapons to india and same weapons are eventually used by India against us. But we don't start a war with everyone or even see them as enemies. If we start seeing every country as enemy who supported india and start acting against them then we will become alone and isolated.
As far as Israeli plane using Azerbaijan airspace is concerned. You have to ask youself, that there are so many countries whose airspace was used, not just Baku. That does not make all of those as your enemy. You cannot fight all of them. Secondly, Azeris do not have kind of advance aircrafts to intercept Israeli jets at the moment. Sometimes it can happen that few aircrafts buzz through your airspace uninvited and you just can't do anything about it.
This is what Israel is looking for. That Iran starts fighting with other countries of the region. You have to go against the real enemy, the real culprit. Not the ones who's airspace may or may not be violated and for which they literally cannot do anything about. They cannot have kind of air forces or air alert levels to shoot israeli airforce. Even if they had modern fighters right now, nobody would want to shoot israeli fighters and face their wrath. Every country looks for its own citizens safety and their own national interests.