How to Move OneDrive Files to Azure Storage After User Deletion
Question details
Determine whether user data in OneDrive is automatically backed up to Azure Storage when their Microsoft 365 account is deleted, and explore options for automating this data transfer.

- Product
- Microsoft 365
- Device & OS
- not provided
- Scenario
- A Microsoft 365 administrator is deleting a user account and needs to ensure their OneDrive files are retained and transferred securely to an Azure Storage environment.
- Observed behavior
- OneDrive files are not automatically moved to Azure Storage upon user deletion; administrators must proactively implement manual transfers or set up automation rules.
Verify your Microsoft 365 data retention policies and temporarily assign another user (such as a manager) access to the deleted user's OneDrive to prevent data from being permanently purged before the transfer completes.
Automate Data Transfer Using Microsoft Power Automate
Create an automated workflow in Power Automate to copy documents from OneDrive to an Azure Blob Storage container prior to deleting the user account.
Microsoft 365 does not natively transfer files to Azure upon account deletion. However, Power Automate offers built-in connectors for both OneDrive for Business and Azure Blob Storage, making it possible to design an automated cloud flow that secures critical data.
Log into the Microsoft Power Automate portal using your Microsoft 365 administrator credentials.
Click 'Create' on the left sidebar and select 'Automated cloud flow' or 'Scheduled cloud flow' depending on your specific backup routine.
Search for the 'OneDrive for Business' connector and set up a trigger or action to 'Get file content' for the target user's drive.
Add a new step, select the 'Azure Blob Storage' connector, and choose the 'Create blob' action. Provide your Azure storage account name, access key, and map the OneDrive file contents to the Azure Blob creation fields.

Transfer Files via Administrative PowerShell Scripts
Use PowerShell in combination with the Microsoft Graph API and Azure modules to systematically download OneDrive files and upload them to Azure Storage.
Manage Your Local and Cloud Documents Easily with WPS Office
Handling server-side configurations and data backups in Microsoft 365 can be highly complex. If you are looking for a straightforward, cost-effective way to manage daily documents, consider WPS Office. It provides powerful desktop tools, built-in cloud storage capabilities, and complete compatibility with standard Office files.
- 1. Download the Installer: Visit the WPS Office website and download the free installation package for your operating system.
- 2. Install WPS Office: Run the setup file and follow the straightforward on-screen instructions to complete the installation.
- 3. Open Your Documents: Launch WPS Office and easily open, edit, or save your existing Microsoft Office formats without losing any formatting.

Frequently Asked Questions
How long are OneDrive files kept after a Microsoft 365 user is deleted?
By default, OneDrive files are retained for 30 days after a user account is deleted. Microsoft 365 administrators can extend this retention period up to 3650 days (10 years) through the SharePoint admin center.
Can I give another user access to a deleted user's OneDrive?
Yes. When you delete a user in the Microsoft 365 admin center, you are prompted with an option to give another user (usually a manager) access to the deleted user's OneDrive. They will have access during the retention period to move or download necessary files.
Is there a native 1-click button to migrate Microsoft 365 data to Azure Storage?
No, Microsoft 365 does not provide a direct one-click feature to migrate user data straight to an Azure Storage Blob. Such migrations require third-party backup solutions, administrative scripts, or automated workflows via Power Automate.




