SQLSTATE[HYT00]:[Microsoft][ODBC Driver 18 for SQL Server]Login timout expired from Azure App Service with Linux container

Vijay NT
21
Reputation points
We have an application in Codeigniter that connect to a SQL Server database. The application is a docker Linux container hosted in Azure App Service. We are getting the following error randomly
SQLSTATE[HYT00]:[Microsoft][ODBC Driver 18 for SQL Server]Login timout expired
We are using PDO and SQLSRV. The PHP version used is 8.1. Recently we have upgraded the PHP from 7.3 to 8.1. Earlier the application hosted Linux VM.
Thanks for any help in advance.