Safavids was from Ardebil in Azerbaijan, not Azerbaijan Republic but Azerbaijan neverthless. They were Azeris and spoke Azeri Turkish, including their military. Shah Ismail wrote poems and divans in Azeri language. This is a very well known fact. No one talks about Azerbaijan Republic here, check your eyes please. You cannot falsify history of the Azeri people.
And no one said they weren't Iranian, but if your definition of Iranian are Persian, then you are waay off. Safavids were the ones that established Iran, if there would not be Safavids, there wouldn't be any Iran. And yes we are proud that they were Azeris.
Regarding this mosque, it was built during period of Irevan Khanate, which was an Azeri Khanate. You know, you cannot have an Persian or Armenian Khanate, because Khanate is Turkic. At first I tought it was built by Safavids, but I was wrong. Anyway, the point is, Irevan is historical lands of Azeris.
And thank's for showing your opinion, insulting Azeri people and praising Armenians. You are not only insulting Azerbaijan Republic, you are insulting all of Azeris, you are insulting followers of Imam Ali and talk about Armenians as your brother.
You should remove the avatar pic you are using.