Will my outbound connection from a VM timeout in 4mins if it not configured behind an azure firewall?

Shikha 6 Reputation points
2021-06-30T18:11:45.913+00:00

My VM is having a publicIP associated with it.
It initiates a connection with a server in internet. but with 4 minutes of inactivity the connection times out and I dont receive the packets from my server.
I see an 'idle timeout' setting for publicIP but that does not seem to be applicable for outbound connections.

My VM is not behind any Azure firewall ?
What in azure must be closing this connection ?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
6,978 questions
Azure Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
555 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,089 questions
{count} vote