web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

D365 On-premises, Configure LCS connectivity for the tenant: ERROR

(0) ShareShare
ReportReport
Posted on by 277

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:

Screenshot-2022_2D00_12_2D00_26-at-4.58.46-AM.png

Screenshot-2022_2D00_12_2D00_26-at-4.58.57-AM.png

Screenshot-2022_2D00_12_2D00_26-at-5.00.15-AM.png

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:

Screenshot-2022_2D00_12_2D00_26-at-5.11.44-AM.png

What am I missing here? How do I register the certificate with the Azure portal?

Many thanks for you help in advance.

regards

Mandeep

I have the same question (0)
  • Suggested answer
    Mandeep.S Profile Picture
    277 on at

    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'

  • Suggested answer
    Leco Lv Profile Picture
    on at

    Hi partner,

    Glad your issue has been resolved, thank you for your kind share.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 46 Most Valuable Professional

#2
Pallavi Phade Profile Picture

Pallavi Phade 33

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 28 Super User 2025 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans