Azhar Ali scored 100 for his maiden Test hundred. Misbah-ul Haq was unbeaten on 40 and with him nightwatchman Saeed Ajmal on five not out.