Migrate old files from sharepoint to blob ? how to handle files with the same names and types

john john Pter 1,325 Reputation points
2025-12-04T07:38:54.0733333+00:00

I want to use Power Automate to move old files from SharePoint to Blob. but i have this concern, in SharePoint we can have the same file name and type under different folders, but in Blob case, we do not have folders,,, so how i can move 2 files which have the same name/type that are under 2 different SharePoint folders inside the same blob?

Thanks

Microsoft 365 and Office | SharePoint | Development
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Q&A Assist
    2025-12-04T07:39:07.74+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    When migrating files from SharePoint to Azure Blob Storage using Power Automate, you can encounter challenges due to the lack of traditional folder structures in Blob Storage. Here are some considerations and strategies to handle files with the same name:

    1. Unique Naming Convention: To avoid conflicts with files that have the same name, you can implement a naming convention that includes additional identifiers. For example, you could prepend the folder name or a timestamp to the file name when saving it to Blob Storage. This way, you maintain uniqueness while preserving the context of the original file's location.
    2. Metadata Usage: Azure Blob Storage allows you to store metadata with each blob. You can use this feature to store the original folder path or any other relevant information as metadata. This can help you track the origin of the files even if they share the same name.
    3. Folder Emulation: While Blob Storage does not have a traditional folder structure, you can mimic it by using a naming scheme that includes slashes (/) in the blob names. For instance, if you have a file named "report.docx" in folders "2021/January" and "2021/February", you could save them as "2021/January/report.docx" and "2021/February/report.docx" in Blob Storage. This way, you can still organize files in a way that resembles folders.
    4. Power Automate Configuration: When setting up your Power Automate flow, ensure that you configure the actions to handle naming conflicts appropriately, such as using the "Create Blob" action with a unique name for each file based on your chosen strategy.

    By considering these strategies, you can effectively migrate files from SharePoint to Azure Blob Storage while managing potential naming conflicts.


    References:

    0 comments No comments

  2. Kudos-Ng 10,385 Reputation points Microsoft External Staff Moderator
    2025-12-04T09:15:18.8466667+00:00

    Hi john john Pter,

    Thank you for posting your question in the Microsoft Q&A forum. 

    Based on the scenario you described, I researched this topic and found that the best approach recommended by the community is Folder Emulation, which is the method that the Q&A assist bot previously mentioned to you. Microsoft officially refers to this concept as virtual directories, and it allows you to preserve folder structure and avoid filename conflicts by including the full path in the blob name.

    You can review Microsoft’s official documentation on this concept here: Blob Naming and Virtual Directories
    User's image

    Additionally, I found a community-shared workflow that demonstrates how to migrate files using the full path in the blob name. You can see the complete example here: Copy files from SharePoint site content to Azure Blob using Logic Apps

    Important: This link may reference Microsoft-related content but is not hosted on an official Microsoft domain (such as *.microsoft.com). Please note that Microsoft is not responsible for the accuracy, security, or advertising on this site.

    I hope these resources help clarify the approach and give you practical steps to implement your migration successfully.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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