Skip to main content

Notifications

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 250

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
    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
    250 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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,125 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,871 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans