Azure-docs: HA/DR for single database

Created on 19 Sep 2019  Â·  5Comments  Â·  Source: MicrosoftDocs/azure-docs

The doc says this: "it is highly recommended to configure the server to use two different key vaults in two different regions with the same key material"

Does this mean in the event of an outage with KV in one region that there are manual steps that need to be taken to configure the existing SQL server to use the secondary KV? Or, is there a way to configure a single SQL server to use two Key Vaults so failover happens automatically?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 assigned-to-author product-question securitsubsvc sql-databassvc triaged

Most helpful comment

@dmarlow, at any moment there can be not more than one TDE protector set for a server. It's the key marked with "Make the key the default TDE protector" in the Azure portal blade. However, multiple additional keys can be linked to a server without marking them as a TDE protector. These keys are not used for protecting DEK, but can be used during restore from a backup, if backup file is encrypted with the key with the corresponding thumbprint.
Another role of such a key, when its parent key vault is located in another region, and if it holds the same key material as TDE protector, is to provide redundancy. If there is an outage affecting primary key vault, and only then, system will automatically switch to the other linked key with the same thumbprint in another key vault, if exists. Note though that this will not happen if TDE protector is inaccessible because of revoked access rights, or because key or key vault is deleted, as this may indicate that customer intentionally wanted to restrict server from accessing the key.
Thank you asking the question. We will update the article to make this clearer.

All 5 comments

@dmarlow Azure Key Vault already has a feature that adds redundancy and availability. This is based on the paired region architecture for Key Vault. Here is the Document which explains this in detail:
https://docs.microsoft.com/en-us/azure/key-vault/key-vault-disaster-recovery-guidance

Here is more details for configuring TDE with Key Vault. Here is the link.

@dmarlow Please do get back to us if you have any additional questions or we will go ahead and close this thread by EOD.

I understand that KV is already redundant. The part I'm confused about is "configure the server to use two different key vaults". How can SQL be configured to use two different KVs? I thought a data encryption protector could only use a single KV key, and thereby a single KV.

@dmarlow We are assigning this case to doc author for more insight into this.
@aliceku Please check the users question and clarify the doubts.

@dmarlow, at any moment there can be not more than one TDE protector set for a server. It's the key marked with "Make the key the default TDE protector" in the Azure portal blade. However, multiple additional keys can be linked to a server without marking them as a TDE protector. These keys are not used for protecting DEK, but can be used during restore from a backup, if backup file is encrypted with the key with the corresponding thumbprint.
Another role of such a key, when its parent key vault is located in another region, and if it holds the same key material as TDE protector, is to provide redundancy. If there is an outage affecting primary key vault, and only then, system will automatically switch to the other linked key with the same thumbprint in another key vault, if exists. Note though that this will not happen if TDE protector is inaccessible because of revoked access rights, or because key or key vault is deleted, as this may indicate that customer intentionally wanted to restrict server from accessing the key.
Thank you asking the question. We will update the article to make this clearer.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

varma31 picture varma31  Â·  3Comments

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

JamesDLD picture JamesDLD  Â·  3Comments

Agazoth picture Agazoth  Â·  3Comments