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 |
[!INCLUDE sqlserver2019-windows-only]
[!INCLUDE appliesto-netfx-netcore-netst-md]
This example demonstrates use of Azure Key Vault Provider when accessing encrypted columns.
[!code-csharp Azure Key Vault Provider 2.0 Example#1]
[!code-csharp Azure Key Vault Provider 2.0 Legacy Example#2]
[!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.