Ariz. Rev. Stat. § 36-518
C. A minor may be admitted to a mental health agency as defined in section 8-201 by the written application of the parent, guardian or custodian of the minor, or a person designated by the court if the parent, guardian or custodian is without monetary resources to file an application or could not be located after reasonable efforts and the minor is under the supervision of an adult probation department after the following has occurred: