AzCopy and the Azure Storage Emulator
AzCopy is now part of the Azure SDK and can copy files to and from Azure Storage. I couldn't find any examples of it copying to the Storage Emulator but it works. Here is an example batch file I use:
set Destination=https://127.0.0.1:10000/devstoreaccount1/
set DestinationKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
set AzCopy="%ProgramFiles(x86)%\Microsoft SDKs\Windows Azure\AzCopy\AzCopy.exe"
%AzCopy% FooFolder %Destination%FooContainer /S /BlobType:block /Y /DestKey:%DestinationKey%
%AzCopy% C:\BarFolder %Destination%BarContainer /S /BlobType:block /Y /DestKey:%DestinationKey%
First script copies all files and subfolders from FooFolder into FooContainer then it copies all files and subfolders from C:\BarFolder to BarContainer.
Comments
- Anonymous
November 11, 2015
Note that more recent versions install themselves as %ProgramFiles(x86)%Microsoft SDKsAzureAzCopyAzCopy.exe