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
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.
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.
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
Can't Load PhpMyadmin On After Server Update
Redirect www to non-www in Apache Conf
How To Check If Your SSL Cert Is SHA 1
Windows TrackPad Gestures