For local AD account, you cannot recover it. But you could recreate a new account to reconnect to Azure AD account:
- The the logon name for Azure AD account:
- Add this domain name to local AD from "Active Directory Domains and Trusts":
- Create a new AD account with the Azure account logon name:
- Add "SMTP:OnlineTUserName@keyman .onmicrosoft.com" and "smtp:OnlineUserName@keyman .mail.onmicrosoft.com" to this local AD account proxy email address attributes.
- Run "Start-ADSyncSyncCycle -PolicyType Delta" on your AAD Connect server to update configuration.
After that, this Azure account will connect and sync to local AD account. For more detailed information, you could have a look about this article.
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.