Connect to MS SQL Server 2014 database (OS Windows Server 2012 R2) from Azure App service

Copper Contributor

Hello Everyone,


I have a task to connect the Azure App service to an MS SQL Server database working inside an Azure VM. The VM with MS SQL Server and the Azure App are connected to the same local network and have access to each other. The VM has Windows Server 2012 R2 and MS SQL Server 2014.


I created a self-signed certificate and configured MS SQL server to use SSL.


I added a connection string to the DB to the Azure App configuration.


On the app side, I receive an error when I connect to the DB from the app:

Microsoft.Data.SqlClient.SqlException (provider: SSL Provider, error: 31 - Encryption(ssl/tls) handshake failed)


On the server side, I also see the error:
A TLS 1.2 connection request was received from a remote client application, but none of the cipher suites supported by the client application are supported by the server. The SSL connection request has failed (event id 36874).


To collect more information, I captured traffic between the DB server and the app using Wireshark. But I did not find the TLS version and cipher suites negotiation in the results.


For the test, I created a new VM (Windows Server 2019, MS SQL Server 2019) and, in his case, I successfully connect to the DB from the Azure App service.


I need help to find a way to configure my server (Windows Server 2012 R2, MS SQL Server 2014) to work with an Azure App? Or understand what SSL connection parameters the Azure App wants to use.

1 Reply
Your connection problem is related to the TLS version requested by your application and the TLS version used by the server.

On this link you find some details about TLS version support on SQL 2014, you need to ensure you have the correct service packs/CU's to support TLS 1.2, if that's what you would like:

On this other link you find details about how to configure TLS in the server: