ODM OneDrive Provisioning: Cannot contact web site or the web site does not support SharePoint Online credentials
说明
Getting an error message during OneDrive provisioning while attempting to migrate OneDrive: Cannot contact web site 'contoso-admin.sharepoint.com/' or the web site does not support SharePoint Online credentials. The response status code is 'Unauthorized'.
原因
The target tenant is configured to block access from applications that can’t enforce device-based restrictions.
解决办法
Change the target tenant settings to allow access from third-party apps that don’t use modern authentication.
Option 1: Run the following command in PowerShell: Set-SPOTenant -LegacyAuthProtocolsEnabled $True
Option 2:Set the Access Control Policy for “Apps that don’t use modern authentication” in the SharePoint Admin Center to “Allow access”
If you are unable to change the tenant settings, then you can run a PowerShell script to provision the target OneDrives. For more details on this process, including Microsoft’s recommendation to pre-provision in batches of 199, see https://learn.microsoft.com/en-us/sharepoint/pre-provision-accounts.