His path to becoming the Sultan of Perak started when his father appointed him as raja kechil bongsu on 19 August 1962, which made him the 6th and last in line to the throne. Due to the death of his father the following year, he moved up a rank to become the raja kechil tengah. On 1 January 1978, he moved up to raja kechil sulong and later that year, on 1 August, he moved up to raja kechil besar. Raja Azlan Shah was installed Raja Muda (Crown Prince) of Perak by the then-Sultan of Perak,
Sultan Idris Almutawakkil Alallahi Shah II on 1 July 1983. During the long reign of Idris Shah, most of Raja Azlan Shah's elder brothers had died. His only surviving elder brother, Raja Baharom Shah, refused the office of Crown Prince and Raja Azlan Shah was suddenly heir to the throne. Within six months, Sultan Idris died and Azlan Shah ascended to the throne of Perak on 3 February 1984. He was officially installed as the 34th Sultan of Perak on 9 December 1985. In 1989, Sultan Azlan Shah was elected as the ninth
Yang di-Pertuan Agong of Malaysia, as the Ruler of Perak was the last of the
nine Malay Rulers of Malaysia who has not served as the
Yang di-Pertuan Agong for its first cycle. After the five-year term ended, he returned to his post as Sultan of Perak in 1994. Sultan Azlan Shah reigned for a total of 30 years and 114 days, the longest reign for a Sultan of Perak post-Malaysian independence, and the second longest reign in the history of the sultanate, behind only the 11th Sultan,
Sultan Mahmud Iskandar Shah. ==Perak constitutional crisis==