Azjur himself eventually became one of the senior amirs of the Abbasid state,[1] and in 867 he was appointed as chief of security (shurtah) of Egypt by the governor Muzahim ibn Khaqan.
[2] During Muzahim's governorship, Azjur assisted in quelling the revolt of Jabir ibn al-Walid, and fought a battle against him in the area of Giza in June 867.
He soon made himself unpopular, however, when he introduced a number of new ritual practices in place of those traditionally used in Egypt.
During his administration he sent the rebel Jabir, who had been imprisoned in al-Fustat by Muzahim, to Iraq, and also defeated an 'Alid rebellion that broke out in Upper Egypt.
[4] Ibn Taghribirdi claims that he then returned to Iraq, where he was received by the caliph and became one of his officers (quwwad);[5] al-Kindi, on the other hand, reports that he left Egypt to go on the Hajj.