Ariz. Rev. Stat. § 28-3171
A. Except as provided in subsection B, D or E of this section and unless medical restrictions require a shorter expiration period, a driver license is:
B. Notwithstanding subsection A of this section, on presentation of satisfactory proof of qualification, the director may issue a class D, G or M license or permit for a period of up to five years to:
E. The department may extend the expiration date of a class D or M license for a resident if the applicant is not in this state at the time the license expires and will not be in this state for at least thirty consecutive days after the expiration of the driver license. On payment by the applicant of the fee prescribed in section 28-3002, the department shall issue a certificate of extension that is valid only if accompanied by the applicant's previous license. An applicant for extension of a license shall comply with the following: