Search code examples
azure-storageazure-blob-storagesharepoint-onlineazure-powershellazcopy

Copy files from Azure BLOB storage to SharePoint Document Library


I cannot find a way to copy files\folders from Blob storage to a SharePoint document library. So far, I've tried AZCopy and PowerShell:

*AZCopy cannot connect to SP as the destination

*PowerShell works for local files but the script cannot connect to Blob storage ( Blob storage cannot be mapped as a networkdrive)


Solution

  • For anyone else who needs to do this, AZCopy worked. I just had to use a different destination. When you map a SharePoint document library as a mapped drive, it assigns a drive letter but it also shows the UNC path. That's what you have to use:

    /Dest:"\\Tenant.sharepoint.com@SSL\DavWWWRoot\Sites\sitename\library"