Remediation
From Azure Portalβ
- Go to
SQL servers. - For each SQL server, under
Security, clickTransparent data encryption. - Set
Transparent data encryptiontoCustomer-managed key. - Select a key or enter a key identifier.
- Check
Make this key the default TDE protector. - Click
Save.
From Azure CLIβ
Use the following command to encrypt the SQL server TDE protector with a customer-managed key:
az sql server tde-key set \
--resource-group {{resource-group-name}} \
--server {{server-name}} \
--server-key-type AzureKeyVault \
--kid {{key-identifier}}
From PowerShellβ
Use the following command to encrypt the SQL server TDE protector with a customer-managed Key Vault key:
Set-AzSqlServerTransparentDataEncryptionProtector `
-Type AzureKeyVault `
-KeyId {{key-identifier}} `
-ServerName {{server-name}} `
-ResourceGroupName {{resource-group-name}}
Select Y when prompted.