To increase Windows Azure TCP port timeout to 30 minutes
- Login to Azure Machine
- Download and install Azure Power shell from,
- Open Powershell
- Execute Add-AzureRmAccount (if no popup appears check IE pop up settings)
- Enter the Azure user name and password in the IE pop up appeared
- Execute Set-AzureRmContext -SubscriptionID xxxxxx-xxxxx-xxxxx-xxxxxx (Subscription ID can be get from Azure web interface)
- To view the Machine details, Get-AzureRmVM
- To check the idle timeout, Get-AzureRmVM -Name "xxxxxxxxx" -ResourceGroup " xxxxxxxxx " | Get-AzureRmPublicIpAddress
MyGroup - Resource Group Name (can be get from Azure web interface by selecting the VM)
MyIP = VM Name (can be get from Azure web interface by selecting the VM)
- In order to increase the timeout execute the below commands line by line,
$p = Get-AzureRmPublicIpAddress -Name MyIP -ResourceGroupName MyGroup
$p.IdleTimeoutInMinutes = 30
Set-AzureRmPublicIpAddress -PublicIpAddress $p
MyGroup - Resource Group Name (can be get from Azure web interface by selecting the VM)
MyIP = VM Name (can be get from Azure web interface by selecting the VM)
- Now
the time out for TCP ports increased to 30 minutes. This is the maximum
limit for Azure. To verify this, Again execute the below command,
Get-AzureRmVM -Name "xxxxxxxxx" -ResourceGroup " xxxxxxxxx " | Get-AzureRmPublicIpAddress
Now, check the IdleTimeoutInMinutes.