Ariz. Rev. Stat. § 28-3305
A. If a person is convicted of an offense or if a judgment is entered against the person for which revocation of the driver license of the person by the department is mandatory pursuant to this chapter, the court that ordered the conviction or judgment shall: