Wednesday , October 17 2018
Home - Don't Forget! - The pain of TLS 1.2 with PowerShell module for Azure Active Directory (MSOnline)

The pain of TLS 1.2 with PowerShell module for Azure Active Directory (MSOnline)

Building labs in a hurry sometimes can bite you with recent changes in Office 365 connections.  I just got hit with a problem with PowerShell module for Azure Active Directory not connecting:

The problem relates to the connection type from a very unpatched (on purpose) Windows 2016 lab server for developing a Powershell script against Azure AD.  While working out the authentication errors I noticed a TLS issue.  At this point of time there has been a major change by Microsoft from TLS 1.1 to 1.2 which stopped the Auth Process to connect using command Connect-msolservice.

Running the following command fix this issue:

This force .net 4.x or higher to use TLS 1.2 for connections. Powershell Connections to Azure AD now restored.

I hope this help others!

 

Check Also

GroupWise User Mailbox Audit of Proxy Rights/Shared Folders/Archive Locations

Overview The tool is used to audit the Shared Folders, Proxy Access and Archive Path …

Leave a Reply

Your email address will not be published. Required fields are marked *