Hello @Toshio Yamazaki ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you would like to know if you can disable idle timeout setting in Azure internal load balancer.
Azure Load Balancer has an idle timeout setting of 4 minutes to 30 minutes. By default, it is set to 4 minutes. And 30 minutes is the maximum available limit of TCP idle timeout at the moment.
Please refer: https://video2.skills-academy.com/en-us/azure/load-balancer/load-balancer-tcp-reset#configurable-tcp-idle-timeout
As of today, you cannot disable this setting.
https://feedback.azure.com/d365community/idea/f3e7e408-8826-ec11-b6e6-000d3a4f0789
https://feedback.azure.com/d365community/idea/3b2d27ae-7493-ed11-a81b-000d3ae5ae95
If you wish you may leave your feedback in the below forum requesting this feature. All the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
https://feedback.azure.com/d365community/forum/8ae9bf04-8326-ec11-b6e6-000d3a4f0789
However, you can use Standard Load Balancer to enable TCP Reset on Idle for a given rule. Enabling this feature will cause Load Balancer to send bidirectional TCP Resets (TCP RST packet) to both client and server endpoints at the time of idle timeout for all matching flows. This will inform your application endpoints that the connection has timed out and is no longer usable. Endpoints can immediately establish a new connection if needed.
Please refer: https://docs.microsoft.com/en-us/azure/load-balancer/load-balancer-tcp-reset
For many scenarios, TCP reset may reduce the need to send TCP (or application layer) keepalives to refresh the idle timeout of a flow.
If your idle durations exceed the load balancer idle timeout configuration limits or your application shows an undesirable behavior with TCP Resets enabled, you should use TCP keepalives, or application layer keepalives, to monitor the liveness of the TCP connections. For more information, see these .NET examples.
To avoid losing the connection, configure the TCP keep-alive with an interval less than the idle timeout setting or increase the idle timeout value.
Kindly let us know if the above helps or you need further assistance on this issue.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.