{"id":9716,"date":"2017-02-06T09:00:31","date_gmt":"2017-02-06T17:00:31","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=9716"},"modified":"2019-03-03T21:27:12","modified_gmt":"2019-03-04T05:27:12","slug":"continuous-delivery-tools-extension-visual-studio-2017","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/continuous-delivery-tools-extension-visual-studio-2017\/","title":{"rendered":"Continuous Delivery Tools Extension for Visual Studio 2017"},"content":{"rendered":"<p>[UPDATE: 28th Nov 2017] Continuous Delivery Tools for Visual Studio now supports TFVC. You can configure continuous delivery for TFVC or Git repositories in a VSTS team project. Check out this blog post (http:\/\/aka.ms\/cd4vsblog9)<\/p>\n<p>DevOps is all about getting your applications into customers\u2019 hands quickly. The <a href=\"http:\/\/aka.ms\/CD4VS\">Continuous Delivery Tools for Visual Studio<\/a> is a new extension for Visual Studio 2017 that brings DevOps capabilities to the IDE. You can use the extension to setup an automated build, test, and release pipeline on Visual Studio Team Services, for an ASP.NET 4 and ASP.NET Core application targeting Azure. You can then monitor your pipeline with notifications in the IDE that alert you to build failures on any CI run. The extension helps quickly setup a dev or test environment that builds, tests and deploys your app on every Git Push. In this post, I\u2019ll cover some key features and walk you through configuration to get you started. You can find more details on the <a href=\"https:\/\/aka.ms\/cd4vsblog_aspnet\">ASP.NET blog<\/a> and <a href=\"https:\/\/aka.ms\/cd4vsblog_alm\">ALM blog<\/a>.<\/p>\n<h2>Configuring a continuous delivery pipeline for ASP.NET 4 and ASP.NET Core projects<\/h2>\n<p>To get started your project needs to live in a Git repo. The <b>Add to Source Control<\/b> button in the status bar will setup a repo for you and push it up to your remote repo. Then, right click on your ASP.NET project in Solution Explorer, or click on the Remote Server status icon on the status bar, and select \u201c<b>Configure Continuous Delivery\u2026\u201d. <\/b>This will start to setup Build and Release definitions on Team Services that automatically builds, tests, and deploys your ASP.NET project to an Azure App Service or an Azure Container Service.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/02\/CD-DevLabs-1-Solution-Menu.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/02\/CD-DevLabs-1-Solution-Menu.png\" \/><\/a><\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/CD-DevLabs-2-Continuous-Delivery-Extension-Menu.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/CD-DevLabs-2-Continuous-Delivery-Extension-Menu-1066.png\" \/><\/a><\/p>\n<p>The Configure Continuous Delivery dialog lets you pick a branch from the repository to deployto a target App service. When you click OK, the extension creates build and release definitions on Team Services (this can take a couple of minutes), and then kicks off the first build and deployment automatically. From this point onward, Team Services will trigger a new build and deployment whenever you push changes up to the repository.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/CD-DevLabs-3-Configure-Continuous-Delivery-Dialog.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/CD-DevLabs-3-Configure-Continuous-Delivery-Dialog-1066.png\" width=\"640\" height=\"423\" \/><\/a><\/p>\n<p>As your project matures you can add custom tasks to automate other parts of your release pipeline, enforce required policies, setup new deployment targets, or integrate one of the many third-party services available. <a href=\"https:\/\/www.visualstudio.com\/team-services\/continuous-integration\/\">Learn more<\/a> about setting up Continuous Integrations on Visual Studio Team Services.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/CD-DevLabs-4-VSTS-Dashboard.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/CD-DevLabs-4-VSTS-Dashboard-1066.png\" width=\"640\" height=\"390\" \/><\/a><\/p>\n<h2>Failure notifications for any CI run on Visual Studio Team Services<\/h2>\n<p>Things move fast when you have an automated DevOps pipeline, so it\u2019s important to have full transparency into the process. The latest build status and notifications for failed builds and tests failures appear in the new status bar icon. Notifications only appear for failures on the definition you are monitoring so you will not get flooded with messages for definitions you aren\u2019t currently monitoring.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/CD-DevLabs-5-Notification.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/CD-DevLabs-5-Notification-1066.png\" width=\"540\" height=\"119\" \/><\/a><\/p>\n<p>To change the build definition that you are monitoring, click <b>Build Definition for Notifications <\/b>menu item on the status bar icon.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/CD-DevLabs-6-Build-To-Track-Menu.png\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/CD-DevLabs-6-Build-To-Track-Menu-1066.png\" width=\"338\" height=\"91\" \/><\/a><\/p>\n<h2>Microsoft DevLabs Extensions<\/h2>\n<p>This extension is a Microsoft DevLabs extension which is an outlet for experiments from Microsoft that represent some of the latest ideas around developer tools. They are designed for broad use, feedback, and quick iteration, but it\u2019s important to note DevLabs extensions are not supported and there is no commitment they\u2019ll ever make it big and ship in the product.<\/p>\n<h2>It\u2019s all about feedback\u2026<\/h2>\n<p>We think there\u2019s a lot we can do in the IDE to help teams collaborate and ship high quality code faster. In the spirit of being agile we want to ship fast, try out new ideas, improve the ones that work and pivot on the ones that don\u2019t. Over the next few days, weeks, and months we\u2019ll update the extension with new fixes and features. Your feedback is essential to this process. Join our <a href=\"http:\/\/aka.ms\/cd4vs_slack\">slack channel<\/a>\u00a0or ping us at <a href=\"mailto:VSDevOps@microsoft.com\">VSDevOps@microsoft.com<\/a>.<\/p>\n<table border=\"0\" width=\"600\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2017\/02\/Ahmed-Metwally1.jpg\" width=\"122\" height=\"183\" \/><\/td>\n<td valign=\"top\" width=\"450\"><strong>Ahmed Metwally<\/strong>, Senior PM, Visual Studio\n<a href=\"https:\/\/twitter.com\/cd4vs\">@cd4vs<\/a>Ahmed is a Program Manager on the Visual Studio Platform team focused on improving team collaboration and application lifecycle management integration.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>[UPDATE: 28th Nov 2017] Continuous Delivery Tools for Visual Studio now supports TFVC. You can configure continuous delivery for TFVC or Git repositories in a VSTS team project. Check out this blog post (http:\/\/aka.ms\/cd4vsblog9) DevOps is all about getting your applications into customers\u2019 hands quickly. The Continuous Delivery Tools for Visual Studio is a new [&hellip;]<\/p>\n","protected":false},"author":13,"featured_media":255385,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1085,155,1029],"tags":[237,85,242,454,156],"class_list":["post-9716","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-visual-studio","category-web","tag-net","tag-asp-net","tag-azure","tag-cicd","tag-visual-studio-2017"],"acf":[],"blog_post_summary":"<p>[UPDATE: 28th Nov 2017] Continuous Delivery Tools for Visual Studio now supports TFVC. You can configure continuous delivery for TFVC or Git repositories in a VSTS team project. Check out this blog post (http:\/\/aka.ms\/cd4vsblog9) DevOps is all about getting your applications into customers\u2019 hands quickly. The Continuous Delivery Tools for Visual Studio is a new [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/9716","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=9716"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/9716\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/255385"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=9716"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=9716"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=9716"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}