Megha More
Megha More

Reputation: 15

I want to set azure server side encryption to file present in azure blob container

The problem is I want to set azure server side encryption to file which is present in azure blob container but i do not found any way to set server side encryption.

Upvotes: 0

Views: 356

Answers (2)

4c74356b41
4c74356b41

Reputation: 72191

So there are 2 sides to this:

  1. Azure Storage is encrypted by default at rest
  2. You can use Azure Storage Service Encryption to encrypt data. You can use REST API\powershell\cli\SDK to do that.

Notice that you would need to rewrite your existing data on the storage to the storage to encrypt it.

Upvotes: 1

juunas
juunas

Reputation: 58898

Quoting from documentation (emphasis mine):

Existing Data - SSE only encrypts newly created data after the encryption is enabled. If for example you create a new Resource Manager storage account but don't turn on encryption, and then you upload blobs or archived VHDs to that storage account and then turn on SSE, those blobs will not be encrypted unless they are rewritten or copied.

So only data written after you enable SSE gets encrypted. You will need to do as they say and rewrite/copy the files.

Upvotes: 2

Related Questions