question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Make Always Encrypted Azure Key Vault Provider .NET Core Compatible

See original GitHub issue

I’m trying to use the Always Encrypted feature of SQL Server 2016 with .NET Core and seems like it can not be used (yet). When trying to import the Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider from Nuget, I get an error stating it is not compatible:

Package Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider 1.0.201501028 is not compatible with netstandard1.6 (.NETStandard,Version=v1.6)

Looks like it is dependent on the old Microsoft.Azure.KeyVault 1.0.0, which is incompatible. However the latest version of Microsoft.Azure.KeyVault is 2.0.6, which is compatible with NetStandard. Is it possible to update your provider library to use Microsoft.Azure.KeyVault 2.0.6 so that it is .NET Core compatible?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

4reactions
David-Engelcommented, May 8, 2019

Just FYI, Microsoft.Data.SqlClient public preview was announced Monday and adds Always Encrypted support against .NET Core 2.1+. This should enable the team that owns Microsoft.SqlServer.Management.AlwaysEncrypted.AzureKeyVaultProvider to add support for .NET Core.

1reaction
Ian1971commented, May 8, 2019

@David-Engel Hallelujah!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Example demonstrating use of Azure Key Vault provider ...
This example shows you how you can use the Azure Key Vault provider with Always Encrypted with secure enclaves. The script will create...
Read more >
SQL Server Always Encrypted with .NET Core not compatible
Always Encrypted is now supported in .Net Core 3.1 LTS. You have to use the Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider ...
Read more >
Full Tutorial on using Always Encrypted with Azure Key ...
Configure your Azure account: Create an Azure Key Vault (AKV) bucket (or use an existing one); Create an Azure Active Directory (AD) dedicated ......
Read more >
Microsoft.Data.SqlClient.AlwaysEncrypted. ...
Always Encrypted Azure Key Vault Provider for Microsoft.Data.SqlClient. This library enables .NET Core and .NET Framework applications to ...
Read more >
SQL Server Always Encrypted with .NET Core not compatible ...
For the Key Vault provider, you need to use Microsoft.Data.SqlClient.AlwaysEncrypted.AzureKeyVaultProvider instead. Kexy Biscuit 350.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found