Treaty of Saint Petersburg (1723)

In return the shah promised to permanently cede to Russia: ... the towns of Darband (Derbent), Baku, with all the territories belonging to them, as well as the provinces: Gilan, Mazandaran, and Astarabad, so that they might support the forces which His Imperial Majesty [the Tsar] will send to help His Shahian Majesty against rebels, without demanding money for it.

When the text of the treaty was brought to the temporary capital of Qazvin in April 1724 by Prince Boris Meshcherskii (a sub-lieutenant of the Preobrazhensky Guard regiment), the population was well aware of Russia's actions.

[9][10][11] This decision was made as it was clear that the Russians, though having occupied the Iranian territories, were too small to pose a major threat to Iran,[12][13] even though the latter had been seriously weakened through the frantic events of the early 1720s.

[14] There's also a possibility that Tahmasp II was aware of Russia's secret negotiations with the Ottoman Empire (see Treaty of Constantinople (1724)).

Ismail Beg was forced to flee punishment upon return, and died in exile in Astrakhan some twenty years later.