Hello Yovel Cohen, Azure Container Instances are suspended after 1,800 seconds, which is 30 minutes. If the container instance is not resumed within this time, it goes into a terminated state and the session ends. However, you can change the timeout duration by setting the --grace-period parameter when you create the container instance.
az container create --name mycontainer --image myimage --resource-group myresourcegroup --grace-period <time in seconds>
Hope this helps you.