The module cannot be run from Azure Cloud Shell. You need a Windows PowerShell host for it.
Need to set MsolCompanySettings but unable to load Connect-MsolService
Hello,
Ultimately I want to allow email verified users by setting Set-MsolCompanySettings -AllowEmailVerifiedUsers $true
.
So I run the Azure PowerShell from Azure Cloud Shell (run from my browser).
When entering command Set-MsolCompanySettings -AllowEmailVerifiedUsers $true
I get: Set-MsolCompanySettings: You must call the Connect-MsolService cmdlet before calling any other cmdlets.
So I enter Connect-MsolService
and I get
`Connect-MsolService: Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=*****'. The system cannot find the file specified.
Connect-MsolService: Could not load file or assembly 'System.IdentityModel, Version=4.0.0.0, Culture=neutral, PublicKeyToken=*****'. The system cannot find the file specified`
I already tried to re-install MSOnline to no avail.
Any ideas?
1 additional answer
Sort by: Most helpful
-
William Fulmer 11 Reputation points
2022-05-19T13:32:35.927+00:00 Correct. This also does not work on MacOS PowerShell. This requires a Windows OS with the Sign-In Assistant Module loaded.