In June 2012, an Azerbaijan court sentenced him to two years' imprisonment on a charge of drug possession. Bayramli's family and several human rights organizations have described the charges as politically motivated. Bayramli's arrest came in a year of growing tension between Azerbaijan and Iran.