title: Decrypt and copy blob to other blob storage account?
body: <p>I'm using <a href="https://azure.microsoft.com/en-us/documentation/articles/storage-encrypt-decrypt-blobs-key-vault/" rel="nofollow">this approach</a> to encrypt files and store them in Azure block blobs. I would like to copy the encrypted blob to another blob storage account and decrypt it in the process. I know it's possible to do a "copy blob" operation which runs entirely inside Azure asynchronously and doesn't download the blob contents through my local computer in transit. I believe this is accomplished through the <code>CloudBlockBlob.StartCopy</code> method. But is it possible to do that with an encrypted file and decrypt it in transit to the other storage account?</p>
  
  <p>Following that link above, my code looks like the following. <code>blob.OpenRead</code> works but <code>blob2.StartCopy</code> doesn't work.</p>
  
  <pre class="lang-cs prettyprint-override"><code>BlobEncryptionPolicy policy = new BlobEncryptionPolicy(null, cloudResolver);
  BlobRequestOptions options = new BlobRequestOptions() { EncryptionPolicy = policy };
  CloudBlockBlob blob = container.GetBlockBlobReference("MyFile.txt");
  //var blobStream = blob.OpenRead(null, options); //this works
  
  CloudBlockBlob blob2 = container2.GetBlockBlobReference("MyFile2.txt");
  blob2.StartCopy(blob, null, null, options, null); //this fails with: The remote server returned an error: (404) Not Found.
  </code></pre>