Adding email alias in Exchange Online no longer works and throws out the below error

%3CLINGO-SUB%20id%3D%22lingo-sub-1852746%22%20slang%3D%22en-US%22%3EAdding%20email%20alias%20in%20Exchange%20Online%20no%20longer%20works%20and%20throws%20out%20the%20below%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1852746%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22title%22%3E%3CDIV%20class%3D%22ttlrw%22%3EHi%2C%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3EI%20had%20to%20disable%20AAD%20Connect%20recently%20and%20when%20I%20got%20everything%20back%20up%20and%20running%2C%20I%20received%20the%20below%20error%20when%20adding%20and%20alias%20and%20this%20is%20happening%20for%20every%20account%20I%20have%20tried.%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3EI%20do%20know%20that%20I%20can%20add%20alias%20to%20proxyaddress%20in%20attribute%20editor%20for%20user%20in%20AD%20but%20I%20want%20to%20be%20able%20to%20add%20alias%20in%20Exchange%20Online%20and%20not%20in%20AD.%20Does%20anybody%20know%20how%20to%20set%20this%20up%20as%20it%20was%20working%20that%20way%20previously%3F%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22ttlrw%22%3Eerror%3C%2FDIV%3E%3C%2FDIV%3E%3CDIV%3E%3CDIV%20class%3D%22bdy%22%3E%3CDIV%20class%3D%22msgbox%22%3E%3CDIV%20class%3D%22hw100%20msgboxDiv%22%3E%3CDIV%20class%3D%22paddv%22%3E%3CDIV%3E%3CDIV%3E%3CSPAN%20class%3D%22dspBlock%20breakWord%20Error%22%3EAn%20Azure%20Active%20Directory%20call%20was%20made%20to%20keep%20object%20in%20sync%20between%20Azure%20Active%20Directory%20and%20Exchange%20Online.%20However%2C%20it%20failed.%20Detailed%20error%20message%3A%20Unable%20to%20update%20the%20specified%20properties%20for%20on-premises%20mastered%20Directory%20Sync%20objects%20or%20objects%20currently%20undergoing%20migration.%20The%20issue%20may%20be%20transient%20and%20please%20retry%20a%20couple%20of%20minutes%20later.%20If%20issue%20persists%2C%20please%20see%20exception%20members%20for%20more%20information.%3C%2FSPAN%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1852746%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853871%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20email%20alias%20in%20Exchange%20Online%20no%20longer%20works%20and%20throws%20out%20the%20below%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853871%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20have%20dirsync%20enabled%2C%20you%20cannot%20make%20such%20changes%20directly%20in%20ExO.%20Your%20on-premises%20AD%20is%20the%20%22master%22%20and%20O365%20admin%20interfaces%20will%20always%20throw%20a%20similar%20error.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThe%20only%20workaround%20for%20this%20scenario%20is%20to%20use%20the%20-WindowsEmailAddress%20parameter%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESet-Mailbox%20user%40domain.com%20-WindowsEmailAddress%20%3CA%20href%3D%22mailto%3Anew%40domain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Enew%40domain.com%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ewhich%20will%20set%20%3CA%20href%3D%22mailto%3Anew%40domain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Enew%40domain.com%20%3C%2FA%3Eas%20the%20new%20primary%20SMTP%20address%2C%20while%20keeping%20the%20old%20one%20as%20secondary.%20This%20still%20does%20not%20guarantee%20that%20the%20change%20will%20not%20be%20overwritten%20during%20the%20next%20full%20sync%20cycle%2C%20moreover%20it's%20not%20an%20officially%20supported%20mehtod.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1853912%22%20slang%3D%22en-US%22%3ERe%3A%20Adding%20email%20alias%20in%20Exchange%20Online%20no%20longer%20works%20and%20throws%20out%20the%20below%20error%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1853912%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F58%22%20target%3D%22_blank%22%3E%40Vasil%20Michev%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHi%20Vasil%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20that%20might%20be%20the%20answer%20-%20thanks%20for%20coming%20back%20to%20me.%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor
Hi,
 
I had to disable AAD Connect recently and when I got everything back up and running, I received the below error when adding and alias and this is happening for every account I have tried. 
 
I do know that I can add alias to proxyaddress in attribute editor for user in AD but I want to be able to add alias in Exchange Online and not in AD. Does anybody know how to set this up as it was working that way previously?
 
 
error
An Azure Active Directory call was made to keep object in sync between Azure Active Directory and Exchange Online. However, it failed. Detailed error message: Unable to update the specified properties for on-premises mastered Directory Sync objects or objects currently undergoing migration. The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members for more information.
2 Replies

If you have dirsync enabled, you cannot make such changes directly in ExO. Your on-premises AD is the "master" and O365 admin interfaces will always throw a similar error.

 

The only workaround for this scenario is to use the -WindowsEmailAddress parameter:

 

Set-Mailbox user@domain.com -WindowsEmailAddress new@domain.com

 

which will set new@domain.com as the new primary SMTP address, while keeping the old one as secondary. This still does not guarantee that the change will not be overwritten during the next full sync cycle, moreover it's not an officially supported mehtod.

@Vasil Michev 

 

Hi Vasil,

 

I thought that might be the answer - thanks for coming back to me.