Service doesnt resume after idle time

Praveen Bharadwaj Hubli 1 Reputation point
2020-10-11T14:58:32.74+00:00

I am running a wundiws service that polls an on premise database. Service runs fine as long as there is continuous flow of data, however once there is a gap between records for more than 5 mins, service idles & doesnt resume fetching of records.
Same code works fine when the service is deployed on an on premise Win server.
Is there any setting to be updated on VM?
Any help will be greatly appreciatec

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,794 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Manu Philip 18,151 Reputation points MVP
    2020-10-11T16:21:53.997+00:00

    It is possible to set the timeout of VM endpoints up to 30 minutes. By default, the timeout is 4 minutes.

    PowerShell command to do this is:

    Get-AzureVM -ServiceName "MyService" -Name "MyVM" | Set-AzureEndpoint -Name "MyEndpoint" -IdleTimeoutInMinutes 30 | Update-AzureVM

    Here is the reference: dn495219(v=azure.100)

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.