At some point in the war between Iraq and Iran, we purchased weapons from the United States through Israel. Why did the US supply us with those weapons? Iran was acting more and more aggressively, out of desperation, against US interests (like the 1983 barracks bombing). The US wanted to transfer our money to Nicaragua and it figured: "To hell with all of them. The more Iraq and Iran fight and kill each other, the better". Their strategy was to keep both sides powerful enough to destroy each other for as long as possible. It was not out of alliance. For us, it was out of necessity because we were running out of ammunition. As for the attack on Osirak, Iraq had not shied away from using chemical weapons against Iranian soldiers and civilians. Did you expect us to allow Saddam become a nuclear state in the middle of war with us?
We are deploying our troops to ensure that Azerbaijan will not think of cutting Armenia-Iran borders completely. If Azerbaijan does not plan to do so, nothing will happen. They will stay there for a while and everything will end happily for both sides.
We have never claimed to be saints. We act based on our interests. As for Pakistan, anyone who follows the news knows that Iran has been reducing her ties with India after Modi came to power and India started to follow US dictates with regard to business with us. We have no incentive to destabilize Pakistan after our security agreements with Imran Khan.