Intermittent Azure SQL connectivity drop
We have an API hosted in Azure Container Apps that connects to an Azure SQL Database using AAD authentication and TLS 1.2. The API runs on a scheduled job that connects and queries the database every 10 minutes, Monday–Friday.
This setup has been working normally, but over the past couple of weeks we’ve been seeing intermittent connection failures. The error returned is:
“A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. (provider: TCP Provider, error: 35 – An internal exception was caught)”
This is thrown as Microsoft.Data.SqlClient.SqlException (0x80131904) .
We checked SQL monitoring in the Azure Portal and do not see any anomalies, spikes in traffic, or indications of issues during the times these failures occur.
Could you please advise on potential causes or steps to diagnose and resolve these intermittent connectivity errors between Azure Container Apps and Azure SQL Database?
Thank you.