Hi Guys,
When I try to run any Dynamics commands on PowerShell, I get "The underlying connection was closed: an unexpected error occurred ". Anyone seen this or have idea why this is happening?
Thank you
This problem occurs when the server or another network device unexpectedly closes an existing Transmission Control Protocol (TCP) connection. Analyze the server logs to see if this may be the issue.
All, I was able to fix this error by replacing actual cert SAN to the field Deployment Web Service URL under Dynamics 365 Deployment manager. Hope this helps someone :)
Hi DipakAch,
Dynamics 365 (online) version 9.x and Dynamics 365 (online) Government version 8.2, requires that connections to customer engagement applications are secured by TLS 1.2 (or better) security.
Try including the below line in your Powershell Script before you call Get-CrmConnection.
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156