Ariz. Rev. Stat. § 12-349
A. Except as otherwise provided by and not inconsistent with another statute, in any civil action commenced or appealed in a court of record in this state, the court shall assess reasonable attorney fees, expenses and, at the court's discretion, double damages of not to exceed five thousand dollars against an attorney or party, including this state and political subdivisions of this state, if the attorney or party does any of the following: