I am able to Encrypt and decrypt blobs in Microsoft Azure Storage using Azure Key Vault but is it possible to do the same using Azure Storage Data Movement Library. Following is the code i am using with azure storage data movement library
TransferManager.Configurations.ParallelOperations = 32;
TransferManager.Configurations.BlockSize = 4 * 1024 * 1024;
ServicePointManager.DefaultConnectionLimit = Environment.ProcessorCount * 8;
UploadOptions options = new UploadOptions();
SingleTransferContext context = new SingleTransferContext();
context.SetAttributesCallback = (destination) =>
{
CloudBlob destBlob = destination as CloudBlob;
destBlob.Properties.ContentType = "application/octet-stream";
};
// Start the upload
await TransferManager.UploadAsync(fileToUpload.InputStream, blob, options, context);