 Davit was successful in preventing the various Muslim tribes from making proper territorial gains.In 1727, in order to put a halt to the Ottoman approach in the area, king Tahmasp II appointed Davit as the governor of the area, and gave him the right to administer the area as a vassal Armenian principality under Iranian control.In 1726-28, the local Armenians under the leadership of Davit Bek went to war with Turkish armies at Halidsor and had showed great military competence and valor by defeating them easily.