I have decommissioned an old Windows Server 2008 server which was running Azure AD Connect.
A new Windows Server 2012 R2 Essentials server was promoted as DC on the existing domain.
I am trying to setup Office 365 integration using the inbuilt service utility but get the following "there was an issue configuring the integration" error message.
Can someone please help?
The log file SharedServiceHost-EmailProviderServiceConfig.log contains the error:
 181204.124303.7219: UpdateO365IntegrationDataTask: Failed to get all users : O365ConfigurationFault = NotActivatedMicrosoft.WindowsServerSolutions.O365Integration.O365ConfigureException: Operation cannot be called if O365 is not activated on the box yet at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.CheckState() at Microsoft.WindowsServerSolutions.O365Integration.O365ManagementCore.QueryAllOnlineUsersInternal(Boolean throwOnFault) at Microsoft.WindowsServerSolutions.O365Integration.UpdateO365IntegrationDataTask.Run()