Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.91 KB

azure-key-vault-example.md

File metadata and controls

42 lines (29 loc) · 1.91 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic
Example demonstrating use of Azure Key Vault provider with Always Encrypted
Example demonstrating use of Azure Key Vault provider with Always Encrypted
David-Engel
davidengel
05/24/2022
sql
connectivity
tutorial

Example demonstrating use of Azure Key Vault provider with Always Encrypted

[!INCLUDE sqlserver2019-windows-only]

[!INCLUDE appliesto-netfx-netcore-netst-md]

This example demonstrates use of Azure Key Vault Provider when accessing encrypted columns.

AzureKeyVaultProvider v2.0+

[!code-csharp Azure Key Vault Provider 2.0 Example#1]

Legacy callback implementation design example with v2.0+

[!code-csharp Azure Key Vault Provider 2.0 Legacy Example#2]

AzureKeyVaultProvider v1.x

[!code-csharp Azure Key Vault Provider Example#1]

Note

  • To use Always Encrypted feature without secure enclaves for .NET Standard application, Microsoft.Data.SqlClient version 2.1.0 or higher is required. The supported .NET Standard version is 2.0 or higher.

  • To use Always Encrypted feature on Linux and macOS, Microsoft.Data.SqlClient version 2.1.0 or higher is required.

See also