Unable to provision mailbox after AD connect and applying license to user

2024-06-02T17:20:55.3866667+00:00

I have configured my Hybrid environment between on-premise exchange server 2013 and Office365, although the HCW installation is only failed at generating migration endpoint (still unresolved), but the connector is ready in Exchange Online portal so i decide to migrate mailbox via IMAP.

The problem occurs here is i cannot create a mailbox in 365, normally after AD Connect sync is completed, all i have to do is just assign license and wait for a while then the mailbox is created for that particular user. But this time the mail status of that user is "We are preparing a mailbox for the user."

After looking for some workarounds, i tried to create mailbox via powershell

Enable-Mailbox user1@mail.com

and returning result like this:

Write-ErrorMessage : |Microsoft.Exchange.Configuration.DualWrite.LocStrings.UnableToWriteToAadException|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. DualWrite (Graph) RequestId: xxxx-xxxx-xxxx-xxxx-xxxx

The issue may be transient and please retry a couple of minutes later. If issue persists, please see exception members

for more information.

Any insight about this? i want to solve this ASAP, thank you.

Microsoft Exchange Online
Microsoft Exchange Hybrid Management
Microsoft Exchange Hybrid Management
Microsoft Exchange: Microsoft messaging and collaboration software.Hybrid Management: Organizing, handling, directing or controlling hybrid deployments.
1,970 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce Jing-MSFT 2,070 Reputation points Microsoft Vendor
    2024-06-03T03:25:36.0833333+00:00

    Hi,@Muhammad Fiqri Aprilian Adriansyah

    Thanks for posting your question in the Microsoft Q&A forum.

    When you want to create a mailbox for a user through Exchange Online PowerShell, an error occurs.

     

    When synchronizing with AD Connect in a hybrid environment, all user attributes are controlled by on-pre., which means they cannot be created or modified directly in Office 365. So, this error is to be expected. If you want to change or create mailboxes, you have to do it in the on-pre AD and then synchronize it to the AAD via AD Connect.

    You can run Enable-RemoteMailbox to create a mailbox.

     

    Finally, since the user's email status is “We are preparing the user's mailbox”, we recommend that you wait a while

    If my answer is helpful to you, please mark it as the answer so that other users can refer to it. Thank you for your support and understanding.