Selangor Menteri Besar Mohamed Azmin Ali has been told not to retain Anwar Ibrahim as the state's economic adviser.