I have requirement create the copy of container.
I have using the below code.
First create the container and then copy the blob file.
CloudStorageAccount storageAccount = new CloudStorageAccount(new StorageCredentials(accountName, accountKey), true);
CloudBlobClient cloudBlobClient = storageAccount.CreateCloudBlobClient();
CloudBlobContainer sourceContainer = cloudBlobClient.GetContainerReference(containerName);
CloudBlobContainer targetContainer = cloudBlobClient.GetContainerReference(targetContainerName);
string blobName = "";
CloudBlockBlob sourceBlob = sourceContainer.GetBlockBlobReference(blobName);
CloudBlockBlob targetBlob = targetContainer.GetBlockBlobReference(blobName);
targetBlob.StartCopyFromBlob(sourceBlob);
but Its taking the much time. when blob file are more thousands.
so i want to copy full container not one by one blob files.


Prakash TripathiRank #72 · 25.3K reputationPosted Apr 6, 2016, 8:09 PM EDT
Bhushan GawaleRank #299 · 8.4K reputationPosted Apr 21, 2016, 9:24 PM EDT