Create copy of file on Azure Blob Storage

Viewed 1094

How do I create a copy of an existing file in an Azure Blob Storage container using code? I'm using the WindowsAzure.Storage NuGet package to handle all operations related to my Azure Blob Storage.

To be 100% clear, I'm trying to create a complete and separate copy of a file that's already been uploaded to a container on Azure Blob Storage. I also want to give the file a new name in the process.

2 Answers

Purely in code, you'll want to use StartCopyAsync() a method on CloudBlockBlob, to start the copy process.

Related