Azure Storage ( blob and FileShare)

Fernando Gutierrez 245 Reputation points
2025-01-22T20:34:29.94+00:00

Hello

I need to know the best way to do the following:

I need to copy files and folders from a BlobStorage to another FileShare storage. The point is that there are many files and many folders.

Both storages, the Blob type and the File type, are within the same subscription.

I can use the Azure Storage Explorer tool, but I want to know the correct and fastest way.

thanks

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
3,339 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Keshavulu Dasari 3,095 Reputation points Microsoft Vendor
    2025-01-22T21:32:59.58+00:00

    Hi Fernando Gutierrez,

    Sure, I suggest you detailed guide on how to use AzCopy for your specific case:

    Step-by-Step Guide to Use AzCopy

    Install AzCopy: Download and install AzCopy from the official Microsoft page.

    Authenticate AzCopy: Open a command prompt and run the following command to log in

    azcopy login
    

    Copy Data from Blob Storage to File Share:

    Use the following command to copy data from your Blob Storage to your File Share:

    azcopy copy "https://<your_blob_storage_account>.blob.core.windows.net/<your_container_name>/<your_blob_path>" "https://<your_file_share_account>.file.core.windows.net/<your_file_share_name>/<your_file_path>" --recursive
    

    Replace the placeholders with your actual storage account names, container names, and paths:

    • <your_blob_storage_account>: Your Blob Storage account name.
    • <your_container_name>: The name of the container in Blob Storage.
    • <your_blob_path>: The path to the specific blob or folder within the container.
    • <your_file_share_account>: Your File Share account name.
    • <your_file_share_name>: The name of the File Share.
    • <your_file_path>: The path to the destination folder in the File Share.

    After the transfer is complete, you can verify the files in your Azure File Share using Azure Storage Explorer or the Azure portal.

    Recursive Copy: The --recursive flag ensures that all files and subfolders are copied.

    Logging: AzCopy provides detailed logs which can be useful for troubleshooting any issues.


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.           

    If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.

    0 comments No comments

Your answer

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