Skip to content

Clone large number of test files on source Azure Storage Account container. Copy large number files between different Storage Account containers. Work in progress

License

Notifications You must be signed in to change notification settings

gbelenky/copyfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Copy many large files from one storage account blob container into another storage account blob container

Prerequisites to run it locally: Two Azure storage accounts - one for the source blob container and another for the desination blob container

VS Code with extensions

Azurite Storage Emulator

This repo contains two directories with two dotnet core durable functions:

  1. setup-test-files
  2. copy-files

setup-test-files creates n clones of a file in your source container - currently it is hard coded to 50000 iterations. You need to upload the initial file manually.

I generated a 2MB file Windows: use cmd prompt (run as administrator) and create a test file:

fsutil file createNew gb1.test 2000000

and uploaded it with the Azure Storage Explorer

to run the samples on your machine start Azurite first, run the application and start the durable function client.

After you uploaded the initial file, start your setup-test-files here you will need the following config params in the local.setting.json:

"SRC_BLOB_STORAGE" :"YOURCONNECTIONSTRING"

"DST_BLOB_STORAGE" :"YOURCONNECTIONSTRING"

to run the copy files after that you will need to add follwing config params into your local.settings.json file :

"AzureWebJobsSRC_BLOB_STORAGE" : "YOURCONNECTIONSTRING"

"AzureWebJobsDST_BLOB_STORAGE" : "YOURCONNECTIONSTRING"

About

Clone large number of test files on source Azure Storage Account container. Copy large number files between different Storage Account containers. Work in progress

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages