Help with AzureAD PowerShell Connection Issues

0
6
Asked By TechWizard99 On

I'm having trouble connecting to the AzureAD PowerShell module, as well as other Microsoft modules like SharePoint Online. The issue seems to be a TLS handshake failure. My system has both TLS 1.2 and 1.3 enabled, but I found that disabling TLS 1.3 allows connections to work. I assumed the services would automatically fall back to TLS 1.2 if 1.3 isn't available on the remote host, but that doesn't seem to be the case. Has anyone encountered this issue before and found a solution? I'd prefer not to have to disable TLS 1.3 every time I connect.

3 Answers

Answered By CloudGuru88 On

This could be a good moment to switch over to the Graph modules or API. Just a heads up though, I've faced similar connectivity issues with Graph as well when both TLS versions are enabled. Disabling TLS 1.2 allows for a connection, but it's not an ideal fix.

Answered By SystemSage55 On

Consider using the MS Graph PowerShell since Azure AD PowerShell is deprecated now. Just like with the previous commenter, I've had trouble with the Graph modules too, where only having TLS 1.2 enabled lets me connect.

Answered By NetworkNinja42 On

You can try specifying the TLS version for your PowerShell session with this command:
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::Tls12. This might help you connect without needing to disable TLS 1.3 every time.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.