Connecting to Visual Studio Online through a proxy
Answered
Hi all,
I am trying to setup a VCS root to connect to a Visual Studio Online TFS. We use a proxy for all outbound connections so I need to make sure TeamCity uses this. I have created a file called 'teamcity-init.bat' in the TeamCity bin folder and added the relevant values for the following:
set TEAMCITY_SERVER_OPTS=%TEAMCITY_SERVER_OPTS%
-Dproxyset=true
-Dhttp.proxyHost=
-Dhttp.proxyPort=
-Dhttp.nonProxyHosts=
-Dhttps.proxyHost=
-Dhttps.proxyPort=
-Dhttps.nonProxyHosts=
and am getting the 'remote server unavailable' error when testing connection.
Is there anything else I need to set anywhere?
Thanks,
James.
Please sign in to leave a comment.
Just as an update to this issue. I found that an extra file was needed in my local TeamCity ProgramData folder called internal.properties with the following setting to make sure the TFS connection uses the proxy;
teamcity.tfs.useSystemProxy=true
Thanks,
James.
Hello James,
Glad that issue was resolved. We have the related request in our tracker. For new cross-platfrom plugin (bundled with 10.0) internal property won't be needed.