Configure an Azure Key Vault
Customer-managed keys (CMK) only supports keys from a Microsoft Azure Key Vault. To get started, you must work with Azure to create a new enterprise account, or use an existing enterprise account and follow the steps below to create the Key Vault.
Log in to the Azure portal and use the search bar to locate Key vaults under the list of services.
The Key vaults page appears after selecting the service. From here, select Create.
Using the provided form, fill in the basic details for the Key Vault, including a name and an assigned resource group.
From here, continue going through the Key Vault creation workflow and configure the different options according to your organization’s policies.
Once you arrive at the Review + create step, you can review the details of the Key Vault while it goes through validation. Once validation passes, select Create to complete the process.
Configure access configure-access
Next, enable Azure role-based access control for your key vault. Select Access configuration in the Settings section of the left navigation, then select Azure role-based access control to enable the setting. This step is essential as the CMK App must later be associated with an Azure role. Assigning a role is documented in both the API and UI workflows.
Configure networking options configure-network-options
If your Key Vault is configured to restrict public access to certain virtual networks or disable public access entirely, you must grant Microsoft a firewall exception.
Select Networking in the left navigation. Under Firewalls and virtual networks, select the checkbox Allow trusted Microsoft services to bypass this firewall, then select Apply.
Generate a key generate-a-key
Once you have created a Key Vault, you can generate a new key. Navigate to the Keys tab and select Generate/Import.
Use the provided form to provide a name for the key, and select either RSA or RSA-HSM for the key type. At a minimum, the RSA key size must be at least 3072 bits as required by Cosmos DB. Azure Data Lake Storage is also compatible with RSA 3027.
Use the remaining controls to configure the key you want to generate or import as desired. When finished, select Create.
The configured key appears in the list of keys for the vault.
Next steps
To continue the one-time process for setting up the customer-managed keys feature, continue with either the API or UI customer-managed keys setup guides.