Azure

3 Mins Read

How to Copy Data from SharePoint to Azure Blob Storage: Methods, Steps, and Comparison

Voiced by Amazon Polly

SharePoint is widely used for document management and collaboration, while Azure Blob Storage is a scalable cloud solution for storing unstructured data. Transferring data between these platforms can be crucial for data management, analytics, or backups. This article explores different methods to copy data from SharePoint to Azure Blob Storage, along with a step-by-step guide and a comparison to help you choose the best approach.

Start your career on Azure without leaving your job! Get Certified in less than a Month

  • Experienced Authorized Instructor led Training
  • Live Hands-on Labs
Subscribe now

Methods for Transferring Data:

  1. Manual Download and Upload
  • Suitable for small data transfers or one-time tasks.
  • Steps involve downloading files from SharePoint and uploading them to Azure Blob Storage using the Azure Portal or Azure Storage Explorer.
  1. Power Automate (Formerly Microsoft Flow)
  • Ideal for automating repetitive tasks.
  • Provides a low-code/no-code solution for seamless data movement.
  1. Azure Logic Apps
  • A robust, serverless solution for automated workflows.
  • Recommended for enterprise-level automation with complex workflows.
  1. Azure Functions with Code
  • Allows custom development using programming languages like Python or C#.
  • Best for scenarios requiring high flexibility and custom processing.
  1. Third-Party Tools
  • Examples include tools like Sharegate, PowerShell PnP (Patterns and Practices), or integration platforms like SSIS with Azure Blob connectors.
  • Useful for complex or large-scale data migration.

Step-by-Step Process for Each Method:

1. Manual Download and Upload:

  1. Log in to SharePoint and download the desired files or folders.
  2. Open Azure Portal or Azure Storage Explorer.
  3. Navigate to the desired Azure Blob container.
  4. Drag and drop the files into the container or use the “Upload” button.

Pros: Simple and quick for small datasets.
Cons: Tedious for large data and lacks automation.

2. Using Power Automate:

  1. Log in to Power Automate.
  2. Choose a trigger for your new flow, like “When a file is created or modified in SharePoint.”
  3. Add an action step: “Create blob” or “Upload file to Azure Blob Storage.”
  4. Configure connections to SharePoint and Azure Storage using API keys or credentials.
  5. Test the flow and monitor results in Power Automate.

Pros: Easy to use and integrates well with Microsoft ecosystem.
Cons: Limited flexibility for large datasets or custom needs.

3. Using Azure Logic Apps:

  1. Open the Azure Portal and create a new Logic App resource.
  2. Use the Logic App Designer to create a workflow:
    In SharePoint, choose “When a file is created or modified” as the trigger.
    The “Azure Blob Storage – Create Blob” action should be used.
  3. Authenticate and set up connections for both SharePoint and Azure Blob Storage.
  4. Define file paths, naming conventions, and conditions as needed.
  5. Save and run the Logic App to verify functionality.

Pros: Scalable and robust for complex workflows.
Cons: Requires Azure subscription and setup.

4. Using Azure Functions:

  1. Write a custom script to fetch files from SharePoint and upload them to Azure Blob Storage.
    Use Microsoft Graph API or SharePoint REST API for file retrieval.
    Use Azure SDKs for uploading files to Blob Storage.
  2. Deploy the script as an Azure Function.
  3. Trigger the function manually, on a schedule, or using an event-based trigger.
  4. Monitor the function execution via the Azure Portal.

Pros: Highly customizable and programmable.
Cons: Requires development expertise and maintenance.

5. Using Third-Party Tools:

  1. Select a third-party tool like Sharegate, SSIS, or PowerShell PnP.
  2. Set up the destination endpoint (Azure Blob Storage) and source endpoint (SharePoint).
  3. Set up transfer rules, mappings, and schedules.
  4. Run the migration and monitor the progress through the tool’s interface.

Pros: Feature-rich and handles complex migrations well.
Cons: May involve additional licensing costs.

Comparison of Methods:

Method Ease of Use Scalability Automation Cost Best For
Manual Download/Upload High Low None Free Small, one-time transfers.
Power Automate High Medium Yes Free with Microsoft 365, otherwise paid Routine automation for small-to-medium data.
Azure Logic Apps Medium High Yes Pay-as-you-go Enterprise workflows and integrations.
Azure Functions Low High Yes Pay-as-you-go Custom solutions for large or dynamic needs.
Third-Party Tools Medium High Yes Varies Large-scale or complex migrations.

Conclusion

The choice of method depends on your project size, technical expertise, and need for automation. For quick and small-scale tasks, manual methods or Power Automate are sufficient. Azure Logic Apps and Azure Functions are ideal for scalable, enterprise-level workflows, while third-party tools shine in complex migrations. Evaluate your requirements and use the detailed steps provided to efficiently copy data from SharePoint to Azure Blob Storage.

Enhance Your Productivity with Microsoft Copilot

  • Effortless Integration
  • AI-Powered Assistance
Get Started Now

About CloudThat

CloudThat is an award-winning company and the first in India to offer cloud training and consulting services worldwide. As a Microsoft Solutions Partner, AWS Advanced Tier Training Partner, and Google Cloud Platform Partner, CloudThat has empowered over 850,000 professionals through 600+ cloud certifications winning global recognition for its training excellence including 20 MCT Trainers in Microsoft’s Global Top 100 and an impressive 12 awards in the last 8 years. CloudThat specializes in Cloud Migration, Data Platforms, DevOps, IoT, and cutting-edge technologies like Gen AI & AI/ML. It has delivered over 500 consulting projects for 250+ organizations in 30+ countries as it continues to empower professionals and enterprises to thrive in the digital-first world.

WRITTEN BY Sunil Kumar G R

Share

Comments

    Click to Comment

Get The Most Out Of Us

Our support doesn't end here. We have monthly newsletters, study guides, practice questions, and more to assist you in upgrading your cloud career. Subscribe to get them all!