Top-ranked defending champion Ashleigh Barty advanced to the quarter-finals of the Miami Open on Monday by outlasting former world number one Victoria Azarenka 6-1, 1-6, 6-2.