Announcements
Hello everyone,
I'm going through the steps outlined in the Microsoft document for D365 on-premises setup to configure a sandbox environment for testing.
After configuring the Service Fabric Cluster, which strangely runs only when I enter the IP Address in the browser and not with DNS name I went through the steps in the "Step15: Configure LCS connectivity for the tenant".
Initially, the login screen didn't appear even after disabling IE Enhanced Security. As a workaround, I installed Google chrome on the test server and was able to get the login screen while running the script:
.\Add-CertToServicePrincipal.ps1 -CertificateThumbprint 'OnPremLocalAgent Certificate Thumbprint' -Test
But then it threw this error:
Unable to find the certificate in the Local machine or Current User store
At \\...\infrastructure\Scripts\Add-CertToServicePrincipal.ps1:70 char:9
+ throw "Unable to find the certificate in the Local machine or ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (Unable to find ...rent User store:String) [], RuntimeExc
+ FullyQualifiedErrorId : Unable to find the certificate in the Local machine or Current User store
When I look at the certificate store (Current user) on the server where I'm running this script, I can see this certificate:
What am I missing here? How do I register the certificate with the Azure portal?
Many thanks for you help in advance.
regards
Mandeep
Hi partner,
Glad your issue has been resolved, thank you for your kind share.
Accepting serious absent mindedness here I'm happy to report this is resolved.
I didn't observe that the 'OnPremLocalAgent Certificate Thumbprint' had to be replace with the actual thumbprint! How foolish of me.
Changed that and the script ran successfully and reported - 'DONE'
André Arnaud de Cal...
294,125
Super User 2025 Season 1
Martin Dráb
232,871
Most Valuable Professional
nmaenpaa
101,158
Moderator