Hi All,
Just new user at MS Dev Center and got stuck..
I created my Dev tenant and a sample SPO site.
I can log in via browser to all.
I'm trying to run a PS script (provided from MS), which basically creates a SPO collaboration site, created a group for it etc, but I cannot connect to the tenant when the script tries to Connect to SPOService:
try{
$cred = Get-Credential $adminaccount
Connect-SPOService -Url $adminSiteUrl -Credential $cred
}
catch{
Write-Host $_
Write-Host "Failed at Connect-SPOService, make sure your sign-in details are correct."
exit
}
I am using the same creds as when login via browser and I'm sure i enter them correctly as I copy/paste to avoid mistake...
Attached is the error.

Any ideas, pls as i'm stuck