You need to ensure that you can use the Windows Azure Active Directory Sync tool to synchronize the local Active Directory with Office 365