Since I'm not an attorney, here is my opinion...
If you in fact have a valid lease and are in full compliance and without breach, it is legally binding upon the parties, and passes without interruption, in its entirety to the new owner.
Again, since I'm not an attorney - here is a link to the Arizona Department of Housing where you will find some great information, phone numbers and the Arizona Residential Landlord & Tenant Act...:
Finally...since I'm not an attorney - I suggest you speak with one if you have difficulty.
Best of luck!