Migrate bring-your-own-key (BYOK) environments to customer-managed key

For customers using the previous manage the encryption key (BYOK) feature, they can change their BYOK enabled environment's encryption to use the new customer-managed key. You can also add your existing non-BYOK enabled environments to use the new customer-managed key.

  • Add non-BYOK enabled environments – these are environments that you haven’t encrypted with your own key.
  • Migrate BYOK enabled environments – these are environments that you have encrypted with your own key.

Note

BYOK tenants' environments are locked out of the following services unless they migrate to customer-managed key:

  • Audit in IP firewall
  • Audit data in Synapse workspace and Power BI
  • Copilot search index which uses Dataverse search
  • AI Builder
  • Dataverse search index
  • Elastic tables
  • Power BI embedded – applications and customers’ Power BI reports and dashboards
  • Canvas apps
  • Power Automate flows

Important

You can migrate to customer-managed key immediately without the need to contact Microsoft. If you need assistance, reach out to your FastTrack or account manager, or submit a support ticket.

Upon completion of migrating your last BYOK environment, create a support ticket and request Microsoft to remove the BYOK option from your Power Platform admin center. Microsoft will also remove the SQL service restriction from all of your remaining environments and delete the BYOK key vaults from your tenant, after 28 days from the date the final BYOK environment was migrated.

Once an environment is migrated to customer-managed key, the audit log is automatically moved to Azure CosmosDB and the upload files and images are moved to file storage and are encrypted automatically with the customer-managed key. The migrated environment can't be re-encrypted with the BYOK key. The environment also can't be reverted to Microsoft managed key for at least 7 days.

When BYOK-enabled environments are migrated to this key management feature, the BYOK key in the Microsoft key vault is retained for at least 28 days so that support is available for restoring the environment.

In addition to having the ability to use different or multiple encryption keys for separate environments and better management of your encryption key in your own key vault, upgrading BYOK to customer-managed key opens up your environments to all other Power Platform services that use non-SQL storage. For example, Customer Insights and Analytics, larger file upload sizes, more cost effective audit storage with audit retention, elastic table services, Dataverse search, and long-term retention are available.

If you have enabled audit and search in the BYOK environment and have uploaded files and created a data lake, all these storages will be automatically created and encrypted with the customer-managed encryption key.

Similarly, if you didn’t enable these audit or search functionalities and enabled them after your environment is encrypted with this feature, all these storages will be automatically created and encrypted with the encryption key.

  1. Create a new encryption key and a new enterprise policy, or use an existing key and enterprise policy. More information: Create encryption key and grant access and Create enterprise policy.
  2. Enable the non-BYOK or BYOK environment as Managed Environment. More information: Enable Managed Environment.
  3. Add the non-BYOK or BYOK environment to the policy to the enterprise policy to encrypt data: More information: Add an environment to the enterprise policy to encrypt data.

Note

There is no downtime when you migrate your BYOK environment.

When a BYOK environment is migrated to customer-managed key, the environment shows up in the Environments with policies list, and shows that it is managed by CustomerViaMicrosoft on the Environment Settings\Environment encryption page.

Next steps

Manage your customer-managed encryption key