{"id":11595,"date":"2017-04-25T09:00:08","date_gmt":"2017-04-25T16:00:08","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/?p=11595"},"modified":"2019-02-14T15:27:20","modified_gmt":"2019-02-14T23:27:20","slug":"automatically-build-and-deploy-asp-net-core-projects-to-azure-app-services","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/automatically-build-and-deploy-asp-net-core-projects-to-azure-app-services\/","title":{"rendered":"Automatically build and deploy ASP.NET Core projects to Azure App Services"},"content":{"rendered":"<p>Over the last few updates we\u2019ve been working on evening out our support for popular scenarios. Earlier this month we added support for setting up an automated DevOps pipeline in Visual Studio Team Services (VSTS) that pulls source from a <a href=\"https:\/\/blogs.msdn.microsoft.com\/visualstudio\/2017\/04\/03\/continuous-delivery-tools-adds-github-support-and-my-build-notifications\/\">public or private GitHub repository<\/a>. TFVC is another scenario we\u2019re working on to round out the extension. This update continues to round out the <a href=\"http:\/\/aka.ms\/CD4VS\">Continuous Delivery Tools for Visual Studio<\/a> extension by adding support for automating the build and deployment of an ASP.NET Core application targeting Azure app services. Now the extension can configure a VSTS build and release definition that can automatically build, test, and deploy any ASP.NET 4.x or ASP.NET Core application. We\u2019ve also continued to fixed bugs we\u2019ve gotten from the community. Thanks!<\/p>\n<h2>Configuring Continuous Delivery for an ASP.NET Core project<\/h2>\n<p>To configure Continuous Delivery for ASP.NET Core projects, open a solution with an ASP.NET Core project and click on the Configure Continuous Delivery command in the Build menu. If the solution is not already under source control, the extension will guide you through the process.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Configure-Continuous-Delivery.png\"><img decoding=\"async\" title=\"Configure Continuous Delivery Dialog\" alt=\"Configure Continuous Delivery \" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Configure-Continuous-Delivery.png\" width=\"750\" height=\"470\" class=\"\" \/><\/a><\/p>\n<p>The Configure Continuous Delivery dialog is pre-populated with a list of Azure subscriptions and App Services available to the personalization currently selected in Visual Studio. The default configuration is a new App Service configuration with a S1 service plan but you can pick an existing app service as well.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Azure-Subscriptions-and-App-Services.png\"><img decoding=\"async\" title=\"Configure Continuous Delivery Dialog - Azure Subscriptions and App Services\" alt=\"Azure Subscriptions and App Services\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Azure-Subscriptions-and-App-Services.png\" width=\"750\" height=\"482\" class=\"\" \/><\/a><\/p>\n<p>Click OK and the extension will use the selected app service or create a new one on Azure, then call VSTS to create a build and release definition for the repository on VSTS or GitHub. Now each time you push a new commit a build will start automatically and if that\u2019s successful VSTS deploys the app to the target App Service on Azure.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Build-Failure-Notification.png\"><img decoding=\"async\" title=\"Build failure notification\" alt=\"Build failure notification\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Build-Failure-Notification.png\" width=\"500\" height=\"313\" class=\"\" \/><\/a><\/p>\n<p>Of course if the build fails you\u2019ll get a notification. Clicking the notification will take you to VSTS where you investigate the results.<\/p>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Investigate-build-failure-results-in-VSTS.png\"><img decoding=\"async\" title=\"Investigate build failure results in VSTS \" alt=\"Investigate build failure results in VSTS \" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/2017.04.25.Continuous-Delivery-Tools-Extension-for-Visual-Studio-Investigate-build-failure-results-in-VSTS.png\" width=\"650\" height=\"313\" class=\"\" \/><\/a><\/p>\n<h2>Please keep the feedback coming!<\/h2>\n<p>Thank you to everyone who has reached out and shared feedback and ideas so far. We\u2019re always looking for feedback on where to take this <a href=\"https:\/\/blogs.msdn.microsoft.com\/somasegar\/2013\/02\/19\/the-evolution-of-devlabs\/\">Microsoft DevLabs extension<\/a> next. There\u2019s a <a>Slack channel<\/a> and a team alias <a>vsdevops@microsoft.com<\/a> where you can reach out to the team and others in the community sharing ideas on this topic.<\/p>\n<table cellspacing=\"0\" cellpadding=\"2\" width=\"750\" border=\"0\">\n<tbody>\n<tr>\n<td valign=\"top\" width=\"150\"><img decoding=\"async\" src=\"https:\/\/devblogs.microsoft.com\/wp-content\/uploads\/sites\/4\/2019\/06\/Ahmed-Metwally1.jpg\" \/><\/td>\n<td valign=\"top\" width=\"500\"><strong>Ahmed Metwally<\/strong>, Senior PM, Visual Studio\n<a href=\"https:\/\/twitter.com\/cd4vs\">@cd4vs<\/a><\/p>\n<p>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>Over the last few updates we\u2019ve been working on evening out our support for popular scenarios. Earlier this month we added support for setting up an automated DevOps pipeline in Visual Studio Team Services (VSTS) that pulls source from a public or private GitHub repository. TFVC is another scenario we\u2019re working on to round out [&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,472,155,1029],"tags":[237,85,242,380,182,156],"class_list":["post-11595","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-gaming","category-visual-studio","category-web","tag-net","tag-asp-net","tag-azure","tag-azure-app-services","tag-unity","tag-visual-studio-2017"],"acf":[],"blog_post_summary":"<p>Over the last few updates we\u2019ve been working on evening out our support for popular scenarios. Earlier this month we added support for setting up an automated DevOps pipeline in Visual Studio Team Services (VSTS) that pulls source from a public or private GitHub repository. TFVC is another scenario we\u2019re working on to round out [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11595","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=11595"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/11595\/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=11595"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=11595"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=11595"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}