Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

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

Posted on by 217

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

  • Suggested answer
    Leco Lv Profile Picture
    Leco Lv on at
    RE: D365 On-premises, Configure LCS connectivity for the tenant: ERROR

    Hi partner,

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

  • Suggested answer
    Mandeep.S Profile Picture
    Mandeep.S 217 on at
    RE: D365 On-premises, Configure LCS connectivity for the tenant: ERROR

    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'

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans