top of page
Search
Writer's picturekhal

Using AzCopy to upload large files.

AzCopy is a command line tool which can be used for uploading or downloading large files from Azure Blob storage. Download AzCopy https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10


After installing AzCopy on Windows using the installer, open a command window and navigate to the AzCopy installation directory on your computer - where the AzCopy.exe executable is located. If desired, you can add the AzCopy installation location to your system path. By default, AzCopy is installed to %ProgramFiles(x86)%\Microsoft SDKs\Azure\AzCopy or %ProgramFiles%\Microsoft SDKs\Azure\AzCopy.


Upload

AzCopy /Source:C:\myfolder /Dest:https://myaccount.blob.core.windows.net/mycontainer /DestKey:key /Pattern:"abc.txt"


Download

AzCopy /Source:https://myaccount.blob.core.windows.net/mycontainer /Dest:C:\myfolder /SourceKey:key /Pattern:"abc.txt"


The Storage keys can be download from the Storage container 'Access Keys' as shown below.


Important!

When uploading a VHD/VHDX file that will be attached to a VM, it must be uploaded as a ‘page blob’ otherwise it wont be able to attach to a VM. This can be done from storage explorer as below:



Or using AzCopy the following command:


AzCopy/Source:C:\Work\Apps/Dest:https://**********.blob.core.windows.net/*********/DestKey:*****************************************************************************************************== /Pattern:"visio.iso" /BlobType:"page”

104 views0 comments

Comments


bottom of page