How to Move SharePoint Online Files to Azure Blob Storage
Question details
The user needs to migrate files from SharePoint Online to Azure Blob Storage while accurately preserving the existing folder hierarchy.

- Product
- SharePoint Online and Azure Blob Storage
- Device & OS
- not provided
- Scenario
- Transferring cloud-hosted document libraries from a SharePoint environment into a scalable Azure Blob Storage container.
- Observed behavior
- Files must be systematically copied over, and because of how Azure handles storage, the destination folder paths must be explicitly created during the transfer.
Verify that you have administrative access to the source SharePoint Online site and the appropriate contributor roles assigned for the target Azure Blob Storage account.
Use Power Automate to Copy Files and Preserve Folders
Ideal for small to medium-sized migrations, this method uses a Power Automate flow to enumerate SharePoint folders and dynamically generate matching Azure Blob paths.
Power Automate connects SharePoint and Azure Storage seamlessly. However, because Azure Blob Storage utilizes a flat namespace instead of traditional folders, your automated flow must explicitly construct the destination path in the blob name to simulate folders.
Sign in to Power Automate and create a new flow. Select a manual trigger to run a batch process, or use the SharePoint trigger 'When a file is created or modified' depending on your requirements.
Insert the SharePoint 'List folder' or 'Get files (properties only)' action to systematically retrieve all files and directories you need to move.
Use dynamic content expressions to capture the relative folder path of each file from SharePoint and use this structure as part of your target Azure Blob name.
Add the 'Create blob' action located under Azure Blob Storage. Configure the blob name field with your mapped path, and populate the blob content with the file contents generated by SharePoint.

Employ Azure Scripts or Migration Tools
The recommended approach for enterprise-scale or large volume file migrations, circumventing Power Automate flow limitations.
Need a Fast, Free Alternative to Microsoft 365?
If you are restructuring your cloud data from SharePoint and looking to simplify your daily office workflow, WPS Office provides a powerful, highly compatible, and completely free alternative to expensive Microsoft 365 subscriptions.
- 1. Download the software: Visit the official WPS Office website to download the free installer for your specific operating system.
- 2. Install and launch: Run the setup file to install the application and launch it to view the workspace.
- 3. Access your documents: Easily open your local files or connect your preferred cloud storage to view and edit Microsoft Office formats immediately.

Frequently Asked Questions
Can I move files to Azure Blob Storage without losing my SharePoint folder structure?
Yes, but because Azure Blob Storage uses a flat architecture instead of real folders, the folder structure must be explicitly recreated by mapping your SharePoint folder paths directly into the Azure Blob file names during migration.
Why should I use an Azure script instead of Power Automate for large migrations?
While Power Automate is excellent for smaller workflows, it can encounter API throttling, timeouts, or flow execution limits when handling massive datasets. Dedicated tools like AzCopy or custom PowerShell scripts handle bulk transfers far more efficiently.
How do I verify that all my SharePoint files migrated successfully?
After your migration completes, compare the total file counts and total data sizes between your source SharePoint library and the destination Azure Blob Storage container. Always check error logs generated by your migration tool or flow to spot missing files.




