Adding further, kindly let us know the following details:
What is the exact error message you receive?
Have you provisioned a Linux or Windows WebApp?
Just to clarify, is your database provisioned on an Azure VM or on-prem?
Just highlighting, in general scenarios, the following settings helps.
- Adding App Service’s IP Address (allow list /whitelist)) on on-premises database firewall for the network communication to flow through.
- Adding on-premises database IP Address (allow list) on App Service through Azure Portal.
Please share the requested information, we would be more than happy to assist you further.