Hello @Rajat Srivastava
Firstly, let's understand what this error means. Error 525 occurs when the SSL handshake between the client and the server fails.
This can happen due to various reasons such as an invalid SSL certificate, incorrect SSL configuration, or firewall blocking the SSL connection.
Since you have already tried re-uploading the certificate and re-creating the listener, let's try to narrow down the issue.
Can you please confirm if the SSL certificate for the production environment is valid and issued by a trusted Certificate Authority (CA)? You can check this by opening the certificate and verifying the details.
Also, please check if the backend pool for the production environment is configured correctly and the function app is accessible from the backend pool IP address or FQDN.
If the SSL certificate and backend pool are configured correctly, then it could be a firewall issue.
Please check if any firewall is blocking the SSL connection between the client and the server. Additionally, you can try enabling diagnostic logging for the Application Gateway to get more information about the error. You can find the logs in the Azure portal under the Application Gateway's Monitoring section.
I hope this helps