是否可以使用密钥保管库加密文件并使用 "Azure Storage Data Movement Library" 将其存储在存储帐户中

Is it possible to encrypt the file using key vault and store it in storage account using "Azure Storage Data Movement Library"

我能够使用 Azure Key Vault 在 Microsoft Azure 存储中加密和解密 blob,但是否可以使用 Azure 存储数据移动库来执行相同的操作。 以下是我在天蓝色存储数据移动库中使用的代码

                    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);

通过使用 Key Vault 进行加密和解密,您是指 Azure 存储客户端库中的此功能:https://docs.microsoft.com/en-us/azure/storage/storage-client-side-encryption? DataMovement 尚不支持此功能。 如果你打算自己加密并使用 DataMovement 将加密的流上传到 Azure 存储,只要流是固定长度、可读和可查找,你的代码就应该可以工作。

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.

据我所知,Azure 存储数据移动库现在不支持 encrypt/decrypt 功能。我们可以找到其他人报告了 issue/feature 请求。