Ariz. Rev. Stat. § 25-319
A. In a proceeding for dissolution of marriage or legal separation, or a proceeding for maintenance following dissolution of the marriage by a court that lacked personal jurisdiction over the absent spouse, the court may grant a maintenance order for either spouse for any of the following reasons if it finds that the spouse seeking maintenance:
B. The supreme court shall establish guidelines for determining and awarding spousal maintenance. The court may award spousal maintenance pursuant to the guidelines only for a period of time and in an amount necessary to enable the receiving spouse to become self-sufficient. The amount of spousal maintenance resulting from the application of the guidelines shall be the amount of spousal maintenance ordered by the court, unless the court finds in writing that applying the guidelines would be inappropriate or unjust. The supreme court shall base the guidelines and criteria for deviation from the guidelines on the following relevant factors listed in paragraphs 1 through 13 of this subsection and considered together and weighed in conjunction with each other: