You recall correctly. Israel had negotiated with Azerbaijan to use its airspace and a couple of airfields if they decided to mount an attack on Iran.
However, the agreement was leaked by the U.S. State Department.
Now negotiating secret deals with Iran behind everyone’s back.