One of my clients called me up and informed that they are facing issue with Windows Server 2012 R2 Essential integration with Azure Active Directory and Office 365.
They were getting “There was an issue configuring the integration” with Azure AD and Office 365
Well, to begin with, I looked at the usually place, the event viewer to see if there was any reference to the errors. Microsoft is not bad at logging the errors/warnings however in this particular case they write to a log file instead of Event viewer. Probably they have some classification on what goes into Event viewer and what goes to log.
Anyways, The log file is located in C:\ProgramData\Microsoft\Windows Server\Logs. The log file of interest is OIMGettingStartedWizard.txt
I opened the log with my favourite editor Notepad++
The failure is caused by “The error Failed to activate password sync.” which lead to “There was an issue configuring the integration” on UI.
Now, the wizard isn’t complex at all. It accepts admin username and password for your Office 365, update the password policy and setup the service in the background.
Not much chances of misconfiguration. The username and password were correctly entered.
After researching for the resolution on internet, I found a similar issue raised on TechNet Windows Essential Forum
It points to corrupt PCNS [Password Change Notification Service] files. You would need to grab a copy of PCNS.zip from another installation of Windows Essential Server 2012 R2. If you don’t have one, you can download it from here.
Rename the existing PCNS.zip to PCNS_Old.zip and drop the copy of PCNS.zip that you have got from another server under C:\Program Files\Windows Server\Bin
Re-run the Integration wizard and this time it successfully integrated to Azure AD and subsequently to Office 365.
Hope this helps
PS: Download PCNS.zip