How to increase Windows Azure TCP port timeout to 30 minutes?

To increase Windows Azure TCP port timeout to 30 minutes
 
  1. Login to Azure Machine
 
  1. Download and install Azure Power shell from,
 
            https://azure.microsoft.com/en-in/documentation/articles/powershell-install-configure/ (Web platform installer)
 
  1. Open Powershell
 
  1. Execute Add-AzureRmAccount  (if no popup appears check IE pop up settings)
 
  1. Enter the Azure user name and password in the IE pop up appeared
 
  1. Execute Set-AzureRmContext -SubscriptionID  xxxxxx-xxxxx-xxxxx-xxxxxx (Subscription ID can be get from Azure web interface)
 
 
  1. To view the Machine details,  Get-AzureRmVM
 
  1. 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)
 
  1. 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)
  1. 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.

Add Feedback