{"id":9505,"date":"2016-10-12T11:24:42","date_gmt":"2016-10-12T16:24:42","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/buckh\/?p=9505"},"modified":"2016-10-12T11:24:42","modified_gmt":"2016-10-12T16:24:42","slug":"how-to-configure-a-tfs-proxy-to-work-with-team-services","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/buckh\/how-to-configure-a-tfs-proxy-to-work-with-team-services\/","title":{"rendered":"How to configure a TFS proxy to work with Team Services"},"content":{"rendered":"<p>If you are using Team Foundation Version Control (TFVC) with Visual Studio Team Services, you can configure the Team Foundation Server Proxy to cache files for version control for your account. It\u2019s very straightforward as the TFS configuration app will do the work for you. Let\u2019s take a look at how to do that.<\/p>\n<p>I\u2019m going through this with TFS 2015 Update 3. It will be similar for newer versions of TFS.<\/p>\n<p>You will need to install the TFS Proxy on a <strong>server<\/strong> OS such as Windows Server 2012 R2. The entry point to configure the proxy in the TFS configuration UI will only show up when it is running on a server OS.<\/p>\n<p>If you haven\u2019t already, launch the Team Foundation Server Administration Console as an admin on your Windows computer. Next select Configure Team Foundation Server Proxy.<\/p>\n<p>Before walking through all of the screens, I\u2019ll give you the short version. When you get to the page to select the project collection, click Browse and then add your account URL. When you are prompted to sign into your VSTS account, you need to sign in with an identity that is a project collection administrator so that the wizard can add the service identity for you. Then you can click Review, Verify, and Configure. If you don\u2019t have IIS installed on the machine, the wizard will install it for you. If you need to reboot, restart the TFS admin console after rebooting and configure the proxy again.<\/p>\n<p>Here are each of the steps. After launching the Team Foundation Server Administration Console in Windows as a local administrator, select Configure Team Foundation Server Proxy.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image403.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb371.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>You are now running the Proxy Configuration Wizard. Click Next.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image404.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb372.png\" width=\"834\" height=\"634\"><\/a><\/p>\n<p>Click Browse since you will need to add your VS Team Services account URL.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image405.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb373.png\" width=\"834\" height=\"634\"><\/a><\/p>\n<p>Click Servers and then Add.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image406.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb374.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Now type in the name of your account &lt;youracct&gt;.visualstudio.com (the dialog will add the https:\/\/ for you).<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image407.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb375.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Sign into your VSTS account as an identity that is a team project collection administrator (for example, the owner of the account).<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image408.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb376.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Click Close.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image409.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb377.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Select your account if you need to and then click Connect.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image411.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb378.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Now click Next.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image412.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb379.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>You don\u2019t actually need to do anything with this screen. However, if you want to check to see if the service account for the proxy got created properly in your VSTS account, click the Advanced Configuration to get to the Test link. When you click Test, it will try a connection as the service account to verify that it is working and show either a green check mark for success or a red \u2018x\u2019 for failure. Click Next.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image413.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb380.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Here you can change the location of the cache directory. You\u2019ll want to choose a drive with enough space for the files you expect to cache. Click Next.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image414.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb381.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>Here you can see the settings. Click Next or Verify.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image415.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb382.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>In my case I was using a clean installation of Windows Server 2012 R2, so the wizard installed IIS for me. I had to reboot my computer at this point.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image416.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb383.png\" width=\"894\" height=\"624\"><\/a><\/p>\n<p>After the computer restarted, I logged in, launched the TFS admin console again, chose to configure the proxy, and I had to re-enter my account URL. Once I got back to the verification step, all of the checks passed this time. Click Configure.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image417.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb384.png\" width=\"984\" height=\"654\"><\/a><\/p>\n<p>Configuration was successful. Click Next.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image418.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb385.png\" width=\"984\" height=\"654\"><\/a><\/p>\n<p>The last screen in the wizard gives you some information about the changes. Now click Close.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image419.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb386.png\" width=\"984\" height=\"654\"><\/a><\/p>\n<p>After closing out the wizard dialogs, the admin console shows a configured proxy server.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image420.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb387.png\" width=\"984\" height=\"654\"><\/a><\/p>\n<p>Now all that remains is to configure your tools to use your new configuration server.<\/p>\n<p>Here is configuring the proxy for the tf.exe command line<\/p>\n<p><font face=\"Courier New\">C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC&gt;tf settings proxy \/configure <\/font><a href=\"http:\/\/buckh-xlab2:8081\"><font face=\"Courier New\">http:\/\/buckh-xlab2:8081<\/font><\/a><br><font face=\"Courier New\">Successfully configured proxy <\/font><a href=\"http:\/\/buckh-xlab2:8081\/VersionControlProxy\"><font face=\"Courier New\">http:\/\/buckh-xlab2:8081\/VersionControlProxy<\/font><\/a><font face=\"Courier New\">.<\/font><\/p>\n<p>For Visual Studio, you will find it in Tools-&gt;Options. Here I\u2019ve checked the box to use it for downloads.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image421.png\"><img decoding=\"async\" title=\"image\" style=\"border-left-width: 0px;border-right-width: 0px;border-bottom-width: 0px;padding-top: 0px;padding-left: 0px;padding-right: 0px;border-top-width: 0px\" border=\"0\" alt=\"image\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/39\/2019\/03\/image_thumb388.png\" width=\"761\" height=\"445\"><\/a><\/p>\n<p>Enjoy!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using Team Foundation Version Control (TFVC) with Visual Studio Team Services, you can configure the Team Foundation Server Proxy to cache files for version control for your account. It\u2019s very straightforward as the TFS configuration app will do the work for you. Let\u2019s take a look at how to do that. I\u2019m [&hellip;]<\/p>\n","protected":false},"author":94,"featured_media":10268,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1],"tags":[8,10,24],"class_list":["post-9505","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-team-foundation","tag-tfs","tag-vsts"],"acf":[],"blog_post_summary":"<p>If you are using Team Foundation Version Control (TFVC) with Visual Studio Team Services, you can configure the Team Foundation Server Proxy to cache files for version control for your account. It\u2019s very straightforward as the TFS configuration app will do the work for you. Let\u2019s take a look at how to do that. I\u2019m [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/9505","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/users\/94"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/comments?post=9505"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/posts\/9505\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media\/10268"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/media?parent=9505"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/categories?post=9505"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/buckh\/wp-json\/wp\/v2\/tags?post=9505"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}