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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Snapshot debugging onprem AAD aut.

(0) ShareShare
ReportReport
Posted on by

Hello Community,

I am trying to use the debugging snapshot on Prod environments. Two important informations:
- Onprem.

-AAD authentication.
- SSL enable.

my settings json:

pastedimage1637159744919v1.png

the central business server seems to be well configured.

pastedimage1637159805557v2.png

Error when using de service from vscode

pastedimage1637159942402v3.png

evetviewer on the server instance

pastedimage1637160115815v4.png

an idea has been looking for days,

Thanks,

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    If you configure the NST with NavUserPassword authentication, are you able to connect to it without issue?

    Thanks.

  • Community Member Profile Picture
    on at

    Thank you for your answer.

    Yes, it works in either Windows authentication mode or Usernavpassword.
    I made a ticket to MS which confirmed that AAD authentication only works for BC instances in the cloud.

    It's a shame when you have a BC onprem with AAD authentication method, having to create a second instance (usernavpassword or windows) for development interaction.


    thanks again,

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    That is not entirely true from technical perspective. You can switch the NST authentication to NavUserPassword and use it for Visual Studio Code. WebClient instance for your users can still be configured with AccessControlService.

    Only one account needs to have a NavUserPassword so you can use it for your development practice.

    We recommend though to do your development on either a Sandbox or a Dockers environment and not in productive environments.

    Thanks.

  • Bosch007 Profile Picture
    5 on at

    Hello Marco,

    As far as I can see there is also a bug in Dynamics not binding the certificate to the port if you enable SSL (BC18 and BC19).

    I use the following PowerShell command to fix this:

    $Thumbprint = "xxxxxxx"

    $AppId = "{00112233-4455-6677-8899-aabbccddeeff}"

    $Port = yyyy

    netsh http add sslcert ipport=0.0.0.0:$Port certhash=$Thumbprint appid=$AppId

    After restarting the NST it seems to work fine.

    With kind regards,

    Alexander

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 727 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 512 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 321 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans