 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.Encouraged by his successes, many Armenians raised the banner of revolt against the Muslims and joined Davit's ranks.The "meliks" of Karabakh soon joined the cause for national liberation, lending Davit Bek men and "materiel"; Avan Yuzbashi, a military commander from Shusha who was to become one of Davit Bek's close supporters, contributed 2,000 men to the war effort.