May 23, 2018 07:59 AM|cfcorp|LINK
I made some progress, I set the keep alive interval to 5 minutes on the Windows Server VM in azure after the Azure timeout was set to 30 minutes and noticed that it worked.
Thanks for your responses, I may have to test further but I got an hour out of the connection but got bored and left it at that.
For anyone in the same boat, I used regedit and added the "KeepAliveTime" in the registry.
the directory was HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\
I created a new DWORD and added the decimal value of 300000, which is 5 minutes.
It seems to be working