Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

CRM to Exchange Hybrid connect set up ?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Trying to set up Hybrid config with my CRM 2016. Had to creat own Certificate because, unfortunaelty, I placed $ in my Cert Password, which confused the ".\Cert..Reconfig..." program. (So no special chars in new self created certificate.) Gave permission to read to my CRMadmin acct after successfully reconfiguring the Cert (myCert to servername.mydomain.com). Also, I mention that since going ServerSide have not installed EMail Router.

? Is this the server Bios name or FQD (i.e.: servername.mydomain.com):

rootDomainName
The name of the server running Dynamics 365 on-premises.
privateKeyPassword
The password you used for your x509 digital certificate used to authenticate between Dynamics 365 (on-premises) and Exchange Online.
cerFilePath
The path to the security certificate file. For example: c:\Personalcertfile.cer
pfxFilePath
The path to the Personal Information Exchange file. For example: c:\Personalcertfile.pfx
organizationName
The name of your Dynamics 365 organization. For example: Contoso
O365AdminEmail
The Office 365 tenant email address. For example: user@contoso.onmicrosoft.com

Got Data Encryption Key error so I activated a new phrase on CRM.

Get this err when I run ".\ConfigCRMsvrsidesync" program:


Set-MsolServicePrincipal : Unknown error occurred.
At C:\Program Files\Microsoft Dynamics CRM\tools\ConfigureCrmServerSideSync.ps1:151 char:9
+         Set-MsolServicePrincipal -AppPrincipalId $crmAppId -ServicePr ...
+         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : OperationStopped: (:) [Set-MsolServicePrincipal], MicrosoftOnlineException
    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.TransientServiceErrorException,Microsoft.Onli
   ne.Administration.Automation.SetServicePrincipal

Done with setting up CRM Principal Name in ACS.
Done with configuration of CRM server for server-based authentication with Online Exchange.

? So I am thinking success right? But when setting up Mail Profile using pre-populated ID I get 3 Xs and the following message:

*********************
Message from CRM::
*********************
Aquiring Token from ACS has failed. Please check if your tenantId is specified correctly in your Email Server Profile, and make sure your Exchange and CRM are under the same tenant
*****************************
Request to Exchange::
*****************************
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
Starting SCP lookup for domainName='mydomain.com', root path=''
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
Searching for SCP entries in LDAP://CN=Configuration,DC=mydomain,DC=com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
Scanning for SCP pointers Domain=mydomain.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
No SCP pointers found for 'Domain=mydomain.com' in configPath='CN=Configuration,DC=mydomain,DC=com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
Scanning for SCP urls for the current computer Site=Default-First-Site-Name
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:24Z">
Determining which endpoints are enabled for host mydomain.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Request error: Unable to connect to the remote server
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
No Autodiscover endpoints are available for host mydomain.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Determining which endpoints are enabled for host autodiscover.mydomain.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Request error: The remote name could not be resolved: 'autodiscover.mydomain.com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
No Autodiscover endpoints are available for host autodiscover.mydomain.com
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Trying to get Autodiscover redirection URL from autodiscover.mydomain.com/.../autodiscover.xml.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Request error: The remote name could not be resolved: 'autodiscover.mydomain.com'
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
No Autodiscover redirection URL was returned.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
Trying to get Autodiscover host from DNS SRV record for mydomain.com.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
DnsQuery returned error error 'DNS name does not exist' error code 0x0000232B.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
No appropriate SRV record was found.
</Trace>
<Trace Tag="AutodiscoverConfiguration" Tid="65" Time="2016-12-30 22:19:46Z">
No matching Autodiscover DNS SRV records were found.
</Trace>

*****************************
Response from Exchange:
*****************************
Microsoft.Exchange.WebServices.Data.AutodiscoverLocalException: The Autodiscover service couldn't be located.
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetSettings[TGetSettingsResponseCollection,TSettingName](List`1 identities, List`1 settings, Nullable`1 requestedVersion, GetSettingsMethod`2 getSettingsMethod, Func`1 getDomainMethod)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(List`1 smtpAddresses, List`1 settings)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.InternalGetSoapUserSettings(String smtpAddress, List`1 requestedSettings)
   at Microsoft.Exchange.WebServices.Autodiscover.AutodiscoverService.GetUserSettings(String userSmtpAddress, UserSettingName[] userSettingNames)
   at Microsoft.Crm.Asynchronous.EmailConnector.ExchangeConnectivityDiscoverer.DiscoverUserSettingsInternal()

? So I checked for the IDs from Azure and these are what I get. Tried populating each ObjectID number in my Mail Profile but none is accepted.

PS C:\Users\administrator\Desktop> Get-MsolServicePrincipal


ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : 00000002-0000-0ff1-ce00-000000000000
DisplayName           : Microsoft.Exchange
ObjectId              : 7cef8971xxxxxxxxxxxxxxxxxxxxxxxx
ServicePrincipalNames : {00000002-0000-0ff1-ce00-000000000000, Microsoft.Exchange,
                        00000002-0000-0ff1-ce00-000000000000/outlook.office365.com,
                        00000002-0000-0ff1-ce00-000000000000/mail.office365.com...}
TrustedForDelegation  : True


ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : 00000006-0000-0ff1-ce00-000000000000
DisplayName           : Microsoft.Office365Portal
ObjectId              : 8a29f565xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
ServicePrincipalNames : {00000006-0000-0ff1-ce00-000000000000, Microsoft.Office365Portal,
                        00000006-0000-0ff1-ce00-000000000000/portal.microsoftonline.com}
TrustedForDelegation  : True

ExtensionData         : System.Runtime.Serialization.ExtensionDataObject
AccountEnabled        : True
Addresses             : {}
AppPrincipalId        : 00000007-0000-0000-c000-000000000000
DisplayName           : Microsoft.CRM
ObjectId              : c6f024c7-xxxxxxxxxxxxxxxxxxxxxxxxxx
ServicePrincipalNames : {00000007-0000-0000-c000-000000000000/BUCRMSVR,
                        00000007-0000-0000-c000-000000000000/*.crm6.dynamics.com,
                        00000007-0000-0000-c000-000000000000/*.crm7.dynamics.com,
                        00000007-0000-0000-c000-000000000000/*.crm9.dynamics.com...}
TrustedForDelegation  : True

Okay, after all this, does anyone have a clue what I have done incorrectly?

*This post is locked for comments

  • Joe Woltering Profile Picture
    Joe Woltering 12,161 on at
    RE: CRM to Exchange Hybrid connect set up ?

    Hey folks,

    I'm trying to configure this again on a migrated org and hitting this error after following all the documentation.

    Per the OP, what should the RootDomainName be?

    " Is this the server Bios name or FQD (i.e.: servername.mydomain.com)"

    I've seen other posts suggesting it should also be the IFD URL.

  • mtomas Profile Picture
    mtomas on at
    RE: CRM to Exchange Hybrid connect set up ?

    Hi BruceC, did you ever get to solve this issue? I am facing exactly the same issue. Thank you in dvance.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,356 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans