@Prabu Mohan Thanks for reaching out.
No, you cannot increase the default ideal timeout of the azure function or webapps. This is a part of the Azure App service architecture and cannot be configured or changed. Previously explanation of the architecture you can refer to this, it is for HTTP triggered function, but it is applicable for Azure App service as well
The same is documented in the FAQ here
Azure Load Balancer has a default idle timeout setting of four minutes. This setting is generally a reasonable response time limit for a web request. so, App Service returns a timeout to the client if your application does not return a response within approximately 240 seconds (230 seconds on Windows app, 240 seconds on Linux app). If your web app requires background processing, we recommend using Azure WebJobs. The Azure web app can call WebJobs and be notified when background processing is finished. You can choose from multiple methods for using WebJobs, including queues and triggers.
WebJobs is designed for background processing. You can do as much background processing as you want in a WebJob. For more information about WebJobs, see Run background tasks with WebJobs.
Let me know if you have any queries or concerns.
Please accept as "Yes" if the answer is helpful so that it can help others in the community.