Ariz. Rev. Stat. § 36-831
A. Except as provided pursuant to subsection I or J of this section, the duty of burying the body of or providing other funeral and disposition arrangements for a dead person devolves in the following order:
1. If the dead person was married, on the surviving spouse unless:
G. Notwithstanding the probate requirements of title 14, if a county is required to bury a person pursuant to subsection C of this section, the county may recover the burial costs from the decedent's estate. The county may record a lien on the decedent's estate and the lien takes priority over a beneficiary deed. A financial institution in possession of monies in an account in the decedent's name must reimburse the county for the burial costs on presentation by the county of an affidavit that certifies:
H. A person, a corporation or an agency of government that provides for the burial or other funeral and disposition arrangements on the instructions of a person described in subsection A of this section is immune from civil liability:
M. For the purposes of this section: