Skip to content

Commit 8e41b70

Browse files
authored
Fix put_encrypted_blob function (Azure#15918)
Fixing function by setting key_encryption_key instead of key_resolver_function
1 parent a6e0a61 commit 8e41b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/storage/azure-storage-blob/samples/blob_samples_client_side_encryption.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def put_encrypted_blob(self):
142142
# this property will tell the service to encrypt the blob. Blob encryption
143143
# is supported only for uploading whole blobs and only at the time of creation.
144144
kek = KeyWrapper('key1')
145-
self.container_client.key_resolver_function = kek
145+
self.container_client.key_encryption_key = kek
146146

147147
self.container_client.upload_blob(block_blob_name, u'ABC', )
148148

0 commit comments

Comments
 (0)