Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
I understand that you would like to know how long Azure Load Balancer would maintain the session affinity.
Azure Load Balancer uses Hashing mechanisms to distribute traffic.
The Hashing Function(s) used will not change, so, this means, as long as none of the VMs go down, the traffic from same source and protocol should go to the same backend VM only.
In other words, there are no expiry for this hashing.
Kindly let me know if you have further questions on this.
Cheers,
Kapil
----------------------------------------------------------------------------------------------------------------
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.