Ariz. Rev. Stat. § 13-3017
A. Any prosecuting attorney or investigating peace officer of this state or its political subdivisions may apply to any justice of the supreme court, judge of the court of appeals, judge of the superior court or magistrate for an ex parte order authorizing the installation and use of a pen register or a trap and trace device. The application shall be made in writing and under oath and shall state:
B. On proper application pursuant to subsection A, the judge shall issue an ex parte order authorizing the installation and use of a pen register or trap and trace device or process if the judge finds that the applicant has certified that the information likely to be obtained by the installation and use is relevant to an ongoing criminal investigation. On service, the order applies to any person or entity that provides wire or electronic communication service in this state or that does business in this state and whose assistance may facilitate the execution of the order. If an order is served on any person or entity that is not specifically named in the order and on request of the person or entity, the prosecuting attorney or peace officer who serves the order shall provide written or electronic certification that the order applies to the person or entity being served. An order that is issued under this subsection shall specify all of the following: