An Azure service that stores unstructured data in the cloud as blobs.
You can automate the sync of new image files from OneDrive to Azure Blob Storage using Power Automate or Azure Logic Apps. Both support triggers on OneDrive and actions on Azure Blob Storage. Here’s how you can set it up:
Option 1: Power Automate (easiest / no-code)
- Go to Power Automate.
- Create a new Automated Cloud Flow.
- Select the trigger: "When a file is created (OneDrive)".
- Add an action:
"Create blob (Azure Blob Storage)".
- Configure your Azure Storage account connection.
- Set the Blob container name.
- Use File Content from the OneDrive trigger as the blob content.
- Use File Name as the blob name.
- Save the flow and test by dropping an image in your OneDrive folder.
Option 2: Azure Logic Apps (scalable / integration-heavy)
- Create a Logic App (Consumption) in the Azure Portal.
- Add a trigger: OneDrive – When a file is created.
- Add an action:
Azure Blob Storage – Create blob.
- Configure connection with your Storage account.
- Map file name and file content to the blob.
- Deploy and let it run continuously.
Logic Apps is essentially the same as Power Automate but runs in Azure, which may be preferable for enterprise deployments.
Option 3: Custom script / function (more control)
If you want full control or more complex processing:
- Use Microsoft Graph API to watch OneDrive folders for new files.
- Write an Azure Function or Python/Node.js app that:
- Subscribes to OneDrive webhooks.
- Downloads new files when notified.
- Uploads them to Azure Blob Storage using the Azure Storage SDK.
This is more effort but allows custom logic (e.g., renaming, resizing images, metadata tagging).
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