Эриванское ханство
As vizier, Vagif did much for the prosperity and political growth of the Karabakh khanate. Also, he played an important role in organizing the defence of Shusha during the incursions of Aga Muhammad shah Qajar of Persia in 1795 and 1797. He tried to cement an alliance of Karabakh, Georgia, Erivan Khanate and Talysh Khanate against Qajar unsuccessfully.