After imposing sentence or making an order deemed to be a final judgment in a criminal case on conviction after trial, or after imposing sentence following a revocation of probation, except where the revocation is after the defendant's admission of violation of probation, the court must advise the defendant of his or her right to appeal, of the necessary steps and time for taking an appeal, and of the right of an indigent defendant to have counsel appointed by the reviewing court.
Cal. R. Ct. 4.305