Three changes to the code for connecting using service principal and thumbprint:
$Global:MSCloudLoginConnectionProfile.OrganizationName was null and needs to have a value in order to connect
Connection parameters should be pulling from $Global:MSCloudLoginConnectionProfile.SecurityComplianceCenter, not $Global:MSCloudLoginConnectionProfile.ExchangeOnline
ShowProgress is not a valid parameter for Connect-IPPSSession
Three changes to the code for connecting using service principal and thumbprint:
This change is