On June 17, 1918 Behbud Khan was appointed Minister of Internal Affairs of Azerbaijan Democratic Republic.
After establishment of Soviet rule in Azerbaijan, with the assistance of Azerbaijani communist leader Nariman Narimanov, Javanshir was able to avoid imprisonment by the Bolsheviks and was assigned to work in Soviet oil fields in Baku.