Set Up BYOK on Azure Key Vault
Customer-managed encryption keys (BYOK) mean your files are encrypted with a key that lives entirely in your own Azure Key Vault — BYOVault never has independent access to it. This procedure does not affect files already backed up.
1. Create a Key Vault
- Go to the Azure Portal → search Key Vault → click + Create.
- Pick or create a resource group and a globally unique vault name (e.g.
acme-byok-vault). - Pricing tier: Standard.
- On the Access configuration tab, choose Azure role-based access control (RBAC) — not “Vault access policy”. The role you’ll assign in step 4 is an RBAC role.
- Click Review + Create, then Create.
2. Create a key inside it
- Open the vault → Objects → Keys (left sidebar) → + Generate/Import.
- Options: Generate, Key type RSA, RSA key size 2048.
- Choose any name (for example,
byok-file-key) and click Create.
3. Install BYOVault's app into your tenant
BYOVault authenticates to your Key Vault as one platform-wide multi-tenant application — the same app every BYOK customer installs, each granting it access only to their own key.
Installing it doesn’t give it any key. It only ever acts on whichever vault/key you explicitly grant it access to in step 4.
Sign in as an admin on your own tenant and open the link below, replacing YOUR_TENANT_ID with your own Azure AD tenant ID (Microsoft Entra ID → Overview → Tenant ID):
https://login.microsoftonline.com/YOUR_TENANT_ID/adminconsent?client_id=b8927c4b-567d-4b5f-9113-8e30eefee76e/common path lets Azure guess which tenant to use from whichever account happens to be signed in — if you have more than one Microsoft account signed in in the same browser, this can land you in the wrong tenant and fail with “account does not exist in tenant ‘Default Directory’.” Using your own real tenant ID avoids this entirely.Approve the consent screen for “BYOVault BYOK Multi-Tenant”. You’ll land on a confirmation page showing your tenant is connected — this is expected, and the app has no access to anything yet at this point; that only happens in the next step.
4. Grant it access to your key
- Go to your Key Vault → Access control (IAM) → + Add → Add role assignment.
- Role: Key Vault Crypto Service Encryption User.
- Members → Select members → search “BYOVault BYOK Multi-Tenant” (it appears here once you’ve completed step 3) → select it.
- Click Review + assign.
5. Enter it into BYOVault
On the tenant’s own Encryption Key page. The provider and key fields do not appear until the consent checkbox acknowledging that deletion of the key is irreversible has been checked.
Once the fields appear, choose Azure Key Vault. Enter your vault’s URI (shown on its Overview page, e.g. https://acme-byok-vault.vault.azure.net/) and the key name from step 2, then click Verify and activate.
BYOVault performs a real wrap/unwrap round trip against your key before saving — a wrong URI or missing role assignment is caught here, not discovered later at your first backup.
See The Shared Master Key for how this compares to BYOVault’s default shared-master-key path.