In April 2015, the Joint Comprehensive Plan of Action (JCPOA) was struck that allowed Iran to pursue its nuclear program for peaceful purpose. Irans centrifuge and heavy water reactor program has been restricted so that it can only be used for peaceful programs and not for producing nuclear weapons. While one country, China has already sought to occupy a prominent position in Irans nuclear market, Russia, another ally of Iran is also aiming to gain its share in the nuclear energy market. During the nuclear negotiation process, Russia had also identified the right of the Iran to pursue peaceful use of nuclear program under the Non Proliferation Treaty (NPT) of which Iran is a signatory to.
However, this relationship is not as smooth as it appears to be and there is divergence in the ways both Russia and Iran deal with the crisis in Syria, though in August 2016, Russia had used the air-base near Hamedan in western Iran to launch air strikes on Syrian rebels to support the Syrian Army and Assad regime. For Iran, strengthening the Assad regime gives it the leverage to continue support to Hezbollah to contain the Israelis. For Russia on the other hand, defeat of the Assad regime would mean growing influence of the United States in the region as also a fragmented Syria that would only give rise to asymmetric organizations that could threaten Russias security like the case with ISIS.
Moreover, post the failed coup attempt in Turkey, Turkeys relations with Russia areslowly cooling down. During the G-20 Summit, the two countries met and discussed and exchanged opinions on the the Syrian crisis very candidly. They also discussed the possibility of lifting Russian ban on Turkish food items as a part of their rapprochement process. This growing relationship may not be viewed by Iran in positive light as Turkey and Iran both are vying to become regional powers in Middle East. For Turkey, Russia seems to be its new friend especially amid growing bitter relations with its NATO ally, the United States. For Russia, having Turkey by its side proves conducive as it would mean an ally of the United States now building stronger ties with Russia. Turkey on the other hand has no faith in the European Union, as evident from the Turkish President Racep Erdogans statement, The EU plays with us for 53 years. We consistently have been proving our honesty and expect the same from the EU. It should abandon the policy of double standards. Therefore, Turkey may view Russia as a strong partner to enter other economic forums like the Shanghai Cooperation Organisation (SCO).
However, as mentioned, Turkey is a NATO member, a Washington-led military organization and a staunch rival of Russia. Therefore, Russia too would be calculative in its approach towards Turkey and would not want to annoy Iran, which shares the same bitterness towards the United States and is also not a NATO member.