Karabakh Khanate
Karabakh Khanate never had a permanent army, but those who were a certain age and had the ability to serve in the military were written in a special register. When it was necessary, soldiers were called together with local landlords, meliks and beks. The persons whose names were included in the register with along with volunteers formed the army of the Karabakh Khanate, but they were deployed only in cases of war or emergency. Sometimes, especially in urgent circumstances, soldiers from Dagestan were invited to join the army of the Karabakh Khanate. For example, when Agha Muhammad Khan Qajar seized Shusha for 33 days, part of the soldiers who were defending Shusha were from Dagestan. During the rule of Ibrahim Khalil Khan, the Army Register contained more than 12,000 names. All expenses of the army during the campaign were paid by Ibrahim Khan.