Install the MSOnline module Guide
Install-Module MSOnlineInstall-Module AzureADImport-Module AzureAD Run the command to resolve the issue below. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Install-Module MSOnlineInstall-Module AzureADImport-Module AzureAD Run the command to resolve the issue below. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12