If you are a legal resident of AZ, when you are issued your AZ license, it should grant you multi-state privileges.
The Nursing License Compact (NLC)
works similar to a driver’s license. As long as you maintain residency in the state in which you maintain a NLC license with multi-state privileges, you can work in any of the other NLC states on that license. As residency is a requirement for a multi-state license, If/when you relocate, with a change of residency, what happens to your NLC multi-state license depends on which state you move to. If you move to a non-NLC state, then your original license remains active as a single state license, allowing you to practice in that state only. As you are moving to MD, another NLC state, when you apply for licensure, MD will allow you to work for 90 days
on your AZ license. When you receive your MD license, which should also be grant you multi-state privileges, your AZ license becomes inactive as you can only hold one NLC multi-state license at a time.
Best wishes on your upcoming relocation.