Hi all,
Trying to get all instances for Dynamics 365 Online, this was working fine until last Sunday. Since Monday we get the following error:
$CRMOrg = Get-CrmOrganizations -Credential $cred -OnLineType Office365
WARNING: Failed to connect to CRM: BadConnect
WARNING: Failed to connect to CRM: Exception while trying to connect Discovery Server, (Global Discovery) URI is = globaldisco.crm.dynamics.com/.../InstancesNo Orgs Found, Searched Online. Region Setting =
Get-CrmOrganizations : Failed to connect to CRM: Exception while trying to connect Discovery Server, (Global Discovery) URI is = globaldisco.crm.dynamics.com/.../InstancesNo Orgs Found, Searched Online. Region Setting =
En lÃnea: 3 Carácter: 11
+ $CRMOrg = Get-CrmOrganizations -Credential $cred -OnLineType Office36 ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : PermissionDenied: (:) [Get-CrmOrganizations], Exception
+ FullyQualifiedErrorId : -3,Microsoft.Xrm.Tooling.CrmConnector.Powershell.Commands.GetOrganizations
Anyone knows something related with this error?
Appreciate the comments.
Thanks in advance
Hello, Lars Raue
I was managed to solve this issue when i used TLS 1.2 if you have the same problem, you will need to put this at the top of your scripts
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Regards.
Today i get the same error. How did you solve that problem? Please advise.
Hi..
The error message was solved. I've had to forced the use of TLS 1.2 at the beginning of the script session: [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Hugs.
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... 290,802 Super User 2024 Season 2
Martin Dráb 229,129 Most Valuable Professional
nmaenpaa 101,154