Cause:
1. Firewall, proxy server block.
2. Microsoft Online Service Sign-in Assistant version.
3. Windows Azure Active Directory Module for PowerShell version.
Solution:
Reinstall Microsoft Online Service Sign-in Assistant and Windows Azure Active Directory Module for PowerShell.
Recommended Version for:
Microsoft Online Service Sign-in Assistant version: 7.250.4556.0
Version can check via regedit. (HKEY_Local_Machine\Software\Microsoft\MSOIdentityCRL\MSOIDCRLVersion)
Windows Azure Active Directory Module for PowerShell version: 1.0.8070.2 and above
Version can check via Azure PowerShell.
(get-item c:\windows\System32\WindowsPowerShell\v1.0\Modules\MSOnline\Microsoft.online.administration.Automation.PSModule.dll).VersionInfo.FileVersion
Can download from here:
Download here
Download here

