Azerbaijan's Interior Ministry has detained around 40 people it suspects of being part of an Iranian spy network that used religion to push pro-Iranian propaganda.
Local media reported on February 1 that the suspects were arrested in Baku and other regions of the country as a result of the operation conducted by the ministry. Some reports a day earlier put the number of people detained at seven.
Law enforcement bodies have neither confirmed nor rejected the reports.
Lawmaker Elman Mammadov, a member of the parliamentary Defense, Security, and Anti-Corruption Committee, accused Iran of being "quite active" in defending Iranian Supreme Leader Ayatollah Ali Khamenei for many years.
"I can't say whether it is a network or not, but there are such people. Even in certain media organizations and social networks, there are such people who from time to time speak in favor of Iran and against us express their opinions," he said.
Tehran has not commented on the reports.
Azer Qasimli, the director of the Baku-based Political Management Institute, said that while Iranian spies were most likely operating in the country, Russia has a bigger undercover network in the country.
Still, he said Azerbaijani authorities had to be careful, as "Iran is a state that has used terrorism in different countries and is characterized by very aggressive actions."
"It can be dangerous from this point of view," he added.
Relations between Iran and Azerbaijan appeared relatively calm until recent days.
Baku ordered the evacuation of staff and family members from its embassy in Iran on January 29, two days after a gunman shot dead a security guard and wounded two other people at the embassy in an attack Baku branded an "act of terrorism."
Police arrested a suspect and Iranian authorities have condemned the January 27 incident. They have said the suspect appeared to have had a personal, not a political, motive for the attack.