We have an API when tested locally using postman it works fine. As we are publishing it on Azure as "App Service" we have used the Azure Hybrid connection. The connection status is connected. After publishing, when we test the API using postman, it gives "500: internal server error" as we are connecting to the on premise Sql-server.
The TCP is enabled on the sql server. The API is working correctly for queries to the Azure Database. Any step we are missing or any configuration is required?
Any guidance will be appreciated.
Note: We are using 2 connection strings, 1 connecting to the Azure Db and the other to the on-premise db.