question

eg1995-5273 avatar image
0 Votes"
eg1995-5273 asked SumanthMarigowda-MSFT answered

move data from azure blob to azure vm

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-virtual-machinesazure-blob-storage
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dev073 avatar image
0 Votes"
Dev073 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

SumanthMarigowda-MSFT avatar image
0 Votes"
SumanthMarigowda-MSFT answered

@eg1995-5273 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://docs.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.



image.png (1.1 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.