We need to encrypt postgres instance with a customer CMK from another tenant.

Rohit Khansili 0 Reputation points
2025-06-05T23:54:00.8066667+00:00

We have a use case where we need to encrypt data at rest for a postgres instance inside our tenant but using a customer CMK. The customer is hosted in an external microsoft tenant - is this possible? According to doc re: https://learn.microsoft.com/en-us/azure/postgresql/flexible-server/concepts-data-encryption?WT.mc_id=Portal-HubsExtension#requirements-for-configuring-data-encryption-for-azure-database-for-postgresql-flexible-server it's not supported - Key Vault and Azure Database for PostgreSQL Flexible Server must belong to the same Microsoft Entra tenant. Cross-tenant Key Vault and server interactions aren't supported. Moving the Key Vault resource afterward requires you to reconfigure the data encryption.

could you please verify?

Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 4,555 Reputation points Microsoft External Staff Moderator
    2025-06-12T16:50:32.08+00:00

    Hi Rohit Khansili,

    cross-tenant interactions are not supported for configuring data encryption with a customer-managed key (CMK) in Azure Database for PostgreSQL. The Key Vault and the Azure Database for PostgreSQL Flexible Server must belong to the same Microsoft Entra tenant.

    This means that it is not possible to configure data encryption for a PostgreSQL instance using a CMK if the Key Vault and the database server are in different Microsoft Entra tenants. You would need to ensure that both the Key Vault and the PostgreSQL server are within the same tenant to utilize customer-managed keys for encryption.

    User's image

    We were told by a partner of ours that they use their keys in their tenant to do encryption in Snowflake running in another Azure account so it works for Azure and Snowflake (in Azure in a different tenant)?

    Yes, your partner is correct: it is supported to use customer-managed keys (CMKs) stored in Azure Key Vault in one tenant to encrypt data in Snowflake running in another Azure tenant/account.

    This is possible because Snowflake's Tri-Secret Secure architecture on Azure supports cross-tenant integration with Azure Key Vault.

    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

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.