Azhar, a prominent figure in Pakistan cricket, started his career at the ICC U19 Cricket World Cup in 2002 before progressing to the senior national team. Between 2010 and 2022, he played 97 Tests and 53 ODIs, captaining Pakistan in nine Tests and 31 ODIs. He was also a crucial member of Pakistan's historic ICC Champions Trophy victory squad in 2017.