I am following the document here
and trying to block a site for unmanaged devices using the command below:
Set-SPOSite -Identity https://<SharePoint online URL>/sites/<name of site or OneDrive account> -ConditionalAccessPolicy BlockAccess
But I am getting following errors:
Set-SPOSite : Parameter set cannot be resolved using the specified named parameters. At line:1 char:1 + Set-SPOSite -Identity https://xxxxxx.sharepoint.com/sites/VerySecure -C ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Set-SPOSite], ParameterBindingException + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Online.SharePoint.PowerShell.SetSite
Can anyone please help me.