How do I copy data from a public sharepoint URL to Microsoft Blob Storage?

Namrata Narain 0 Reputation points
2024-04-08T16:28:15.86+00:00

Hi everyone!

I am new to using Azure services. My co-author at Stanford has uploaded several files (in csv format) to a public link. This link starts as: office365stanford-my.sharepoint.com/personal

It has 40 files, ranging from a few 100 MB to 100 GB. I don't want to have to download the files to my local machine to transfer it to Blob. How can I do this directly?

I tried to set up Azure Data Factory but the pipleline is failing with the following error:

ErrorCode=HttpRequestFailedWithClientError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Http request failed with client error, status code 403 Forbidden, please check your activity settings. If you configured a baseUrl that includes path, please make sure it ends with '/'.

Request URL: https://office365stanford-my.sharepoint.com/personal/gxzheng_stanford_edu/_layouts/15/onedrive.aspx?id=%2Fpersonal%2Fgxzheng_stanford_edu%2FDocuments%2FCNpatents%2Ffull_text_en&ga=1/.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.Net.WebException,Message=The remote server returned an error: (403) Forbidden.,Source=System,'

Note, I have already set up Microsoft Blob and I'm able to use AzCopy to transfer my local files into it.

Thanks for all your help!!

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,976 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,984 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,939 questions
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Marcin Policht 27,815 Reputation points MVP
    2024-04-08T16:43:23.41+00:00

    You can use Copy Blob (programmatically) - more at https://stackoverflow.com/questions/45003502/save-an-image-from-url-to-azure-storage-directly?noredirect=1&lq=1 or use tools such as this one https://docs.fineuploader.com/branch/master/features/azure.html


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    0 comments No comments

  2. KarishmaTiwari-MSFT 20,222 Reputation points Microsoft Employee
    2024-04-25T07:07:02.74+00:00

    Here are some alternative methods to transfer your files directly:

    • Azure Logic Apps: You can create an Azure Logic App that automates the file transfer from SharePoint to Azure Blob Storage.
    • Power Automate: Microsoft Power Automate can also be used to copy files from SharePoint to Azure Blob Storage, though it may have limitations on the file size.
    • Server-to-Server Transfer: Utilize AzCopy’s server-to-server transfer capabilities to move files directly between storage servers.

    Additional Reading: https://learn.microsoft.com/en-us/answers/questions/1513111/how-to-copy-folders-and-files-from-a-sharepoint-si

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Pinaki Ghatak 5,310 Reputation points Microsoft Employee
    2024-06-03T08:38:37.6966667+00:00

    Hello @Namrata Narain

    It seems like you are trying to transfer files from a public link to Azure Blob Storage without downloading them to your local machine. One way to do this is by using the Azure Data Factory. However, since you are facing an error with the pipeline, it might be helpful to check the activity settings and ensure that the baseUrl ends with '/'.

    Another way to transfer files directly from a public link to Azure Blob Storage is by using the Azure Storage Explorer. You can download and install the Azure Storage Explorer on your local machine and then use it to transfer files from the public link to Azure Blob Storage.

    Here are the steps to do so:

    1. Open the Azure Storage Explorer and connect to your Azure Blob Storage account.
    2. Right-click on the container where you want to transfer the files and select "Upload".
    3. In the "Upload Blob" dialog box, select "From URL" and enter the URL of the file you want to transfer.
    4. Enter the name of the blob you want to create in the container and click "Upload". You can repeat these steps for each file you want to transfer. This method allows you to transfer files directly from the public link to Azure Blob Storage without downloading them to your local machine. I hope this helps

    I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.