PKR vice-president Azmin Ali will replace Khalid Ibrahim as the party Selangor chief, in an apparent compromise to make peace between the duo.