Cosmos DB always encrypted Bicep Support

Kuldeep Ghildiyal 30 Reputation points Microsoft Employee
2023-03-20T14:16:31.3+00:00

Hi,

I am working on always encrypted feature of cosmos DB, however not able to find documentation on how I can create Data encryption key & create a container with encryption policy as always encryption does not have Bicep or ARM support.

Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,437 questions
{count} votes

Accepted answer
  1. Oury Ba-MSFT 16,076 Reputation points Microsoft Employee
    2023-03-22T16:43:46.1433333+00:00

    @Kuldeep Ghildiyal

    You can create an Azure Cosmos dB with CMK using ARM, but I have not tested using bicep but should be possible. Whay are looking to do it using bicep?

    Always Encrypted is available for .NET SDK and Java SDK. Its available only for NoSQL API.

    Data stored in your Azure Cosmos DB account is automatically and seamlessly encrypted with keys managed by Microsoft (service-managed keys). Optionally, you can choose to add a second layer of encryption with keys you manage (customer-managed keys or CMK).

    Please note that all the data stored in your Azure Cosmos DB account is encrypted with the customer-managed keys, except for the following metadata: Configure customer-managed keys for your Azure Cosmos DB account with Azure Key Vault and this is only supported on new accounts, existing ones are in preview. We are not supporting Container CMK. You can instead use Always encrypted.

    Please let me know if you are looking for more details.

    Regards,

    Oury


0 additional answers

Sort by: Most helpful