Notwithstanding any other provision of the law to the contrary, a city or town magistrate may perform his duties as authorized by law without the corporate limits of the city or town of which he is the magistrate pursuant to an intergovernmental agreement authorized by title 11, chapter 7, article 3 or of the political subdivision in which a regional jail facility is located, provided that any such regional jail facility shall be created pursuant to a joint exercise of powers agreement authorized by title 11, chapter 7, article 3, in which the city or town is a participant.
A.R.S. § 22-427