Azhari worked at the CENTO. He was appointed chief of staff of homeland’s armed forces in 1971 and his tenure lasted until 1978. He served as interim prime minister of a military government until a civilian government could be chosen. He served as prime minister from 6 November 1978 to 31 December 1978.