Ariz. Rev. Stat. § 12-348
A. In addition to any costs that are awarded as prescribed by statute, a court shall award fees and other expenses to any party other than this state or a city, town or county that prevails by an adjudication on the merits in any of the following:
B. In addition to any costs that are awarded as prescribed by statute, except as provided in subsection C of this section, a court may award fees and other expenses to any party, other than this state or a city, town or county, that prevails by an adjudication on the merits in an action brought by the party against this state or a city, town or county challenging:
C. The court in its discretion may deny the award provided for in this section or may reduce the award if it finds that any of the following applies:
E. The court shall base any award of fees as provided in this section on prevailing market rates for the kind and quality of the services furnished, except that:
H. This section does not:
I. For the purposes of this section: