I am using azure media services rest api to create an asset which should be storage encrypted.
The below steps where successful:
1: created an asset with "Options": "1"(storage encryption). 2: created the a content key with ContentKeyType":"1""ProtectionKeyType":"0". 3: Associated the content key with asset created. 4: created the asset file. 5: created the Access policy. 6: created the SAS url(StartTime is five minutes before the current time). 7: uploaded the file to the SAS url by correctly specifying the file name(I did a chunk upload to the blob storage). 8: Deleted the Locator & AcessPolicy.
Problem:
- I was not able to encode the asset.
- From the blob storage, I was able to download the file and play. The file was not encrypted at storage!
Further inference