CMK on existing/new Azure Cosmos DB for PostgreSQL Cluster account using Terraform

Sushant Singh 20 Reputation points
2025-01-21T15:03:39.2733333+00:00

How do we do encryption (CMK) of existing or new Azure Cosmos DB for PostgreSQL Cluster using Terraform? I am unable to find any reference in terraform. Can you kindly advice?

CMK is availble for cosmos db account which doesnot support postgres sql.

Thanks in advance,

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

Accepted answer
  1. Sai Raghunadh M 1,915 Reputation points Microsoft Vendor
    2025-01-21T16:34:22.2633333+00:00

    Hi @sushant singh

    Thanks for the question and using MS Q&A platform.

    Currently, enabling CMK during the creation of an Azure Cosmos DB for PostgreSQL Cluster might not be supported directly in Terraform. Therefore, you will not find a reference for it in the Terraform or Azure documentation.

    CMK is availble for cosmos db account which doesnot support postgres sql.

    CMK is available for cosmos db for postgre sql. Please refer to this documentation: Enable data encryption with customer-managed keys in Azure Cosmos DB for PostgreSQL

    Hope this helps. Do let us know if you any further queries. If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Sushant Singh 20 Reputation points
    2025-01-23T12:43:46.1666667+00:00

    Thanks for providing the information. It should be supported in the terraform. As there is no other way to enable it terraform, we have to look for other options.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.