Syncing Local AD to Azure AD w/ Mis-Matched Domains
Recently, I was tasked with setting up our 35 Azure AD Sync from our local on premise server. I used IDFix and scanned and fixed any errors and then just set up the AD Sync Tool on a standalone server solely dedicated to that job(Small VM 1 gig ram, 1 proc, etc etc). However I ran into an issue with the domain validation. We are currently set up on a .biz locally while I was trying to sync the user domain to a .net in Azure AD. After a few hours of agonizing support calls through Ingram Micro I finally reached out to the #spiceworks and #republicofit IRC channels on Freenode. The fix was almost laughably easy to implement and do.
1: Add a Suffix UPN to your local AD(https://www.petri.com/add-upn-suffixes-in-active-directory). In my case I added domain.com as the Suffic UPN.
3: Ensure your domain has been verified and assigned int he setup portion of the 365 portal(http://office365support.ca/adding-and-verifying-a-domain-for-the-new-office-365/).
2: Change all of the UPN(s) for your users to the new suffix(https://blogs.technet.microsoft.com/canitpro/2015/07/07/step-by-step-changing-the-upn-suffix-for-an-entire-domain-via-powershell/). Unless they are actually signing in as username@xxx.domain.biz, then they will not see any difference at all as they still use domain\username.
3: Resync your AD by opening powershell on your VM that you have AD Sync installed and running a Delta
4: Check your Azure AD and you should start to see all of your users change the username from username@domain.biz to username@domain.net or whatever you set.Import-Module "C:\Program Files\Microsoft Azure AD Sync\Bin\ADSync\ADSync.psd1"Start-ADSyncSyncCycle -PolicyType Delta
Now I did have some cases where we had already created local users in Azure AD and these had to be deleted. In that case AD sync was balking at the UPN already being in use. After you delete them, select all of the usernames that didn't change domains and hit edit domain and assign it the correct one. This will only work with two or more users selected. If you try it with one you will see the option to edit domain grayed out.
Thanks Robyn, Cipher-0, spartanmouse, Nick-C, and TLucier for the pointers in the right direction.
Comments
Post a Comment