When looking at the documentation for Azure AD password policy, I do not see any restriction on previous password history usage with the exception that it cannot be the last