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