move data from azure blob to azure vm

eg1995 1,126 Reputation points
2021-10-17T06:43:21.267+00:00

dears,

i have some data in my azure blob. And i have an azure vm created. can u advise on the best approach on how to move this data to my azure vm disks? a solution other than just going to the portal and downloading the data or using storage explorer

is there any command that can be used? such as azcopy? as far as i know az copy can copy from a source to azure blobs but will it do the vice versa?

thank you in advance

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.
2,670 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Devaraj G 2,091 Reputation points
    2021-10-17T08:31:51.797+00:00

    Hi,

    how much is the storage data and its need to be copied over to multiple VMs?

    You can use azcopy to download the contents form azure blob straoge to local VM. AzCopy is a command-line utility that you can use to copy files to or from a storage account.

    something like below ex :
    AzCopy /Source:https://<storageaccountname>.blob.core.windows.net/<containername> /Dest:E:\NAS /SourceKey:<LongStorageAccountKey> /S /V:C:\temp\NASDrive.log

    1 person found this answer helpful.
    0 comments No comments

  2. Sumarigo-MSFT 43,406 Reputation points Microsoft Employee
    2021-10-19T10:22:35.567+00:00

    @eg1995 Welcome to Microsoft Q&A Forum, Thank you for posting your query here!

    Adding more information to above answer : You could also use AzCopy as well on the VM to move data from blob to disk.

    The easiest way to consider moving data from blob to VM SSD, you should use Azure Storage Explorer, this link provides the full documentation on how to use the tool.

    If you'd like an easy command line/code free solution allowing data transfer, i'd recommend ADF's copy wizard. You could specify the cloud source as the blob's location, and a destination within the SSD in your VM. You can find a step by step tutorial in this link: https://www.red-gate.com/simple-talk/cloud/cloud-data/using-copy-wizard-azure-data-factory/
    More can be found in this blog: https://azure.microsoft.com/en-us/blog/simple-and-reliable-data-movement-with-azure-data-factory-copy-wizard/ .

    A suggestion i'd like to provide since I don't know the details and the architecture of your current setup, If you'd like something easier to manage in transferring data to VMs, I'd recommend using Azure file storage. It would be an easy solution for customers to add data by attaching the file share on their computer, and data would be directly stored in it. It can also be easily manipulated using Storage Explorer: https://learn.microsoft.com/en-us/azure/storage/files/storage-how-to-use-files-windows

    Please let us know if you have any further queries. I’m happy to assist you further.
    Looking forward for your reply!

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------

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