%3CLINGO-SUB%20id%3D%22lingo-sub-335870%22%20slang%3D%22en-US%22%3EVisual%20Studio%20Team%20Services%20-%20Creating%20a%20build%20pipeline%20(Part%201)%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-335870%22%20slang%3D%22en-US%22%3E%0A%20%26lt%3Bmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text%2Fhtml%3B%20charset%3DUTF-8%22%20%2F%26gt%3B%3CSTRONG%3E%20First%20published%20on%20MSDN%20on%20Jul%2031%2C%202016%20%3C%2FSTRONG%3E%20%3CBR%20%2F%3E%3CP%3E%3CI%3E%20Authored%20by%20Jeffrey%20Chilberto%20%3C%2FI%3E%3C%2FP%3E%3CBR%20%2F%3E%20In%20a%20series%20of%20posts%2C%20some%20of%20the%20features%26nbsp%3Bavailable%20in%20Azure%20and%20Visual%20Studio%20Team%20Services%20will%20be%20explored.%20%26nbsp%3BThe%20posts%20will%20use%20an%20Azure%20Web%20App%20website%20as%20a%20practical%20illustration%2C%20and%20many%20of%20the%20features%20shown%20are%20relevant%20to%20other%20types%20of%20Web%20Apps%20and%20components%20in%20Azure.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20VSTS%20Build%20is%20an%20excellent%20mechanism%20for%20enabling%20automation%20for%20a%20development%20team.%20%26nbsp%3BIt%20allow%20for%20teams%20to%20construct%20build%20pipelines%20to%20handle%20a%20variety%20of%20scenarios%20and%20technology.%20%26nbsp%3BThe%20service%20can%20run%20hosted%20or%20on-premises%2C%20and%20supports%20a%20large%20number%20of%20build%20steps%20ranging%20from%20Node.js%20and%20Gulp%20to%20MSBuild%20and%20Azure%20Deployment.%20%26nbsp%3BIts%20flexibility%20extends%20to%20the%20ability%20to%20bring%20in%20tasks%20from%20the%20Marketplace%20and%20write%20custom%20build%20steps.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20The%20solution%20used%20to%20build%20the%20build%20pipeline%20series%20has%20been%20uploaded%20to%20%3CA%20href%3D%22https%3A%2F%2Fcode.msdn.microsoft.com%2FVisual-Studio-Creating-a-c36a1f40%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EMSDN%20Sample%20Projects%20%3C%2FA%3E.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20This%20post%2C%20Part%201%2C%20is%20concerned%20about%3A%20%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3ECreating%20an%20Azure%20Web%20App%20website%20using%20the%20Visual%20Studio%20Cloud%20template%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EEnabling%20Application%20Insights%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3ECreating%20a%20local%20Git%20repository%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3ECreating%20a%20remote%20Visual%20Studio%20Test%20Services%20Git%20repository%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3ECreating%20a%20VSTS%20Build%20definition%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId-1479624219%22%20id%3D%22toc-hId-1622620896%22%3EContinuous%20Deployment%2C%20Continuous%20Delivery%2C%20Continuous%20Integration%3C%2FH3%3E%3CBR%20%2F%3E%20There%20are%20many%20resources%20that%20do%20an%20excellent%20job%20of%20defining%20these%20terms%3A%20%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fblog.assembla.com%2FAssemblaBlog%2Ftabid%2F12618%2Fbid%2F92411%2FContinuous-Delivery-vs-Continuous-Deployment-vs-Continuous-Integration-Wait-huh.aspx%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Continuous%20Delivery%20vs%20Continuous%20Deployment%20vs%20Continuous%20Integration%20-%20Wait%20huh%3F%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.thoughtworks.com%2Fcontinuous-integration%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Continuous%20Integration%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.thoughtworks.com%2Fcontinuous-delivery%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Continuous%20Delivery%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%20and%20describing%20the%20benefits%3A%20%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.infoq.com%2Farticles%2Fcd-benefits-challenges%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Continuous%20Delivery%3A%20Huge%20Benefits%2C%20but%20Challenges%20Too%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.atlassian.com%2Fcontinuous-delivery%2Fbusiness-case-for-continuous-delivery%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3E%20The%20business%20case%20for%20continuous%20delivery%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId--876019237%22%20id%3D%22toc-hId--733022560%22%3EMVC%20Template%3C%2FH2%3E%3CBR%20%2F%3E%20An%20ASP.Net%20Web%20Application%20will%20be%20used%20as%20base%20for%20the%20posts.%20%26nbsp%3BNote%20that%20Application%20Insights%20and%20a%20local%20Git%20repository%20were%20created%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73188iFB812E1538B97708%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3ETo%20keep%20the%20project%20simple%2C%20the%20MVC%20template%20without%20authentication%20was%20selected.%20%26nbsp%3BNote%20that%20a%26nbsp%3BUnit%20Test%20project%20and%20hosting%20in%20Azure%20were%20selected%20at%20creation%20time%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73189i0DC98FFE443D6AD2%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EOne%20nice%20feature%20of%20the%20setting%20up%20a%20project%20using%20the%20template%20is%20the%20creation%20of%20the%20initial%20App%20Service.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73190iB88A1E5702EAFC18%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Once%20the%20project%20wizard%20completes%20we%20have%3A%20%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EAn%20empty%20Azure%20Web%20App%20website%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EA%20local%20GIT%20repository%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3EAn%20Application%20Insights%20resource%20in%20Azure%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%20The%20project%20can%20be%20run%20locally%20and%20in%20Azure%20but%20the%20Azure%20project%20just%20states%20it%20is%20empty%20as%20nothing%20has%20been%20deployed%20yet%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73191i51DC04CB1357C8F4%22%20%2F%3E%20%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId-670277593%22%20id%3D%22toc-hId-813274270%22%3EReferences%3C%2FH3%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fazure.microsoft.com%2Fen-us%2Fdocumentation%2Farticles%2Fweb-sites-dotnet-get-started%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Websites%20Get%20Started%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId--1685365863%22%20id%3D%22toc-hId--1542369186%22%3EAdding%20to%20Visual%20Studio%20Team%20Services%20GIT%3C%2FH2%3E%3CBR%20%2F%3E%20To%20get%20the%20project%20into%20the%20hosted%20website%2C%20the%20following%20will%20be%20performed%3A%20%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3EAdd%20the%20project%20to%20a%20VSTS%20Git%20project%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3ECreate%20a%20build%20to%20deploy%20the%20project%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%20The%20Team%20Explorer%20window%20can%20be%20used%20to%20save%20the%20changes%20to%20your%20local%20repo.%20%26nbsp%3BIt%20also%20detects%20that%20the%20local%20repo%20is%20not%20connected%20to%20a%20external%20GIT%20service.%20%26nbsp%3BVisual%20Studio%20allows%20the%20local%20repo%20to%20be%20saved%20to%20a%20VSTS%2C%20GitHub%20and%20other%20remote%20GIT%20services%20like%20BitBucket.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73192i12F23760DA93085A%22%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20The%20following%20shows%20the%20settings%20for%20publishing%20to%20a%20VSTS%20Git%20repo%3A%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73193i1CFDE74BA519CA2B%22%20%2F%3E%20%3CBR%20%2F%3E%3CH3%20id%3D%22toc-hId--139069033%22%20id%3D%22toc-hId-3927644%22%3EReferences%3C%2FH3%3E%3CBR%20%2F%3E%3CUL%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.visualstudio.com%2Fen-us%2Fdocs%2Fgit%2Fshare-your-code-in-git-vs%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Develop%20and%20share%20using%20GIT%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.visualstudio.com%2Fen-us%2Fdocs%2Fgit%2Fget-started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Gettings%20started%20using%20GIT%20in%20Visual%20Studio%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.visualstudio.com%2Fen-us%2Fdocs%2Fgit%2Fgitquickstart%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20Quickstart%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3CLI%3E%3CA%20href%3D%22https%3A%2F%2Fwww.visualstudio.com%2Fen-us%2Fdocs%2Fsetup-admin%2Fget-started%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3E%20VSTS%20Getting%20Started%20%3C%2FA%3E%3C%2FLI%3E%3CBR%20%2F%3E%3C%2FUL%3E%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId-1800254807%22%20id%3D%22toc-hId-1943251484%22%3EVSTS%20Build%3C%2FH2%3E%3CBR%20%2F%3E%20Now%20that%20the%20source%20has%20been%20published%20to%20GIT%2C%20a%20VSTS%20Build%20Definition%20can%20be%20defined.%20%26nbsp%3BFor%20this%20scenario%2C%20a%20Azure%20WebApp%20Deployment%20template%20will%20be%20used%20as%20a%20basis%20for%20the%20definition%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73194iCBC8D6CCBA6C9B64%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20template%20allows%20the%20repo%20to%20be%20specified%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73195iCDEAEE98F7062AB0%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20template%20creates%20a%20classic%20Azure%20Web%20App%20Deployment.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Note%3A%20the%20replacing%20of%20the%20Azure%20Web%20App%20Deployment%20task%20should%20only%20be%20done%20if%20the%20VSTS%20subscription%20has%20access%20to%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvsts-tasks%2Fblob%2Fmaster%2FTasks%2FAzureRmWebAppDeployment%2FREADME.md%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EAzureRM%20Web%20App%20Deployment%20%3C%2FA%3Etask.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20Though%20we%20could%20use%20this%20task%20to%20deploy%20to%20both%20classic%20and%20RM%20Azure%20web%20sites%2C%20I%20will%20replace%20it%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73196i011C4FB83F5B50E3%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EAnd%20instead%20create%20a%20AzureRM%20Web%20App%20Deployment%20by%20adding%20the%20following%20task%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73197iC723B9B75F1EF318%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20configuration%20of%20the%20build%20step%20requires%20an%20AzureRM%20Subscription%20endpoint%20is%20defined%20in%20Services%20(click%20Manage)%20and%20requires%20the%20Web%20App%20Name%20and%20package%20is%20specified%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73198i30BB3EF417DA878C%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20rest%20of%20the%20steps%20ares%20suitable%20for%20the%20project.%20%26nbsp%3BThe%20final%20pipeline%20for%20Part%201%20consists%20of%20retrieving%20the%20source%20from%20a%20GIT%20repo%2C%20restoring%20NuGet%20packages%2C%20building%20the%20solution%2C%20running%20the%20unit%20test%20project%2C%20publishing%20to%20Azure%20and%20saving%20the%20build%20artifacts.%20%26nbsp%3BThis%20is%20shown%20below%3A%20%3CBR%20%2F%3E%3CBR%20%2F%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73199iEF930A23E47E1892%22%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EThe%20build%20can%20then%20be%20queued.%20%26nbsp%3BIf%20all%20goes%20well%20the%20build%20will%26nbsp%3Bcomplete%20including%20a%20deployment%20to%20Azure.%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CEM%3E%20Note%3A%20%3C%2FEM%3E%20%3CBR%20%2F%3E%3CBLOCKQUOTE%3EUnless%20the%20template%20is%20updated%2C%20the%20build%20will%20fail%20because%20of%20a%20%3CA%20href%3D%22http%3A%2F%2Fsocial.technet.microsoft.com%2Fwiki%2Fcontents%2Farticles%2F34957.vsts-build-error-could-not-copy-appliationinsights-config.aspx%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Emissing%20file%20%3C%2FA%3E.%20%26nbsp%3BBy%20default%20the%20applicationinsights.config%20file%20is%20ignored%20and%20not%20added%20to%20GIT.%20%26nbsp%3BIncluding%20the%20file%20will%20allow%20the%20build%20to%20succeed.%3C%2FBLOCKQUOTE%3E%3CBR%20%2F%3E%3CH2%20id%3D%22toc-hId--751902154%22%20id%3D%22toc-hId--608905477%22%3ENext%20Steps%3C%2FH2%3E%3CBR%20%2F%3E%20In%20%3CA%20href%3D%22https%3A%2F%2Fblogs.msdn.microsoft.com%2Fazuredev%2F2016%2F08%2F02%2Fvisual-studio-team-services-creating-a-build-pipeline-part-2%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3EPart%202%20%3C%2FA%3E%2C%20we%20will%20look%20at%20changing%20Application%20Insights%20settings%26nbsp%3Bin%26nbsp%3Bthe%20build%20pipeline.%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-335870%22%20slang%3D%22en-US%22%3EFirst%20published%20on%20MSDN%20on%20Jul%2031%2C%202016%20Authored%20by%20Jeffrey%20ChilbertoIn%20a%20series%20of%20posts%2C%20some%20of%20the%20features%26nbsp%3Bavailable%20in%20Azure%20and%20Visual%20Studio%20Team%20Services%20will%20be%20explored.%3C%2FLINGO-TEASER%3E
Occasional Contributor
First published on MSDN on Jul 31, 2016

Authored by Jeffrey Chilberto


In a series of posts, some of the features available in Azure and Visual Studio Team Services will be explored.  The posts will use an Azure Web App website as a practical illustration, and many of the features shown are relevant to other types of Web Apps and components in Azure.

VSTS Build is an excellent mechanism for enabling automation for a development team.  It allow for teams to construct build pipelines to handle a variety of scenarios and technology.  The service can run hosted or on-premises, and supports a large number of build steps ranging from Node.js and Gulp to MSBuild and Azure Deployment.  Its flexibility extends to the ability to bring in tasks from the Marketplace and write custom build steps.

The solution used to build the build pipeline series has been uploaded to MSDN Sample Projects .

This post, Part 1, is concerned about:

  • Creating an Azure Web App website using the Visual Studio Cloud template

  • Enabling Application Insights

  • Creating a local Git repository

  • Creating a remote Visual Studio Test Services Git repository

  • Creating a VSTS Build definition


Continuous Deployment, Continuous Delivery, Continuous Integration


There are many resources that do an excellent job of defining these terms:

and describing the benefits:

MVC Template


An ASP.Net Web Application will be used as base for the posts.  Note that Application Insights and a local Git repository were created:



To keep the project simple, the MVC template without authentication was selected.  Note that a Unit Test project and hosting in Azure were selected at creation time:



One nice feature of the setting up a project using the template is the creation of the initial App Service.



Once the project wizard completes we have:

  • An empty Azure Web App website

  • A local GIT repository

  • An Application Insights resource in Azure


The project can be run locally and in Azure but the Azure project just states it is empty as nothing has been deployed yet:


References



Adding to Visual Studio Team Services GIT


To get the project into the hosted website, the following will be performed:

  • Add the project to a VSTS Git project

  • Create a build to deploy the project


The Team Explorer window can be used to save the changes to your local repo.  It also detects that the local repo is not connected to a external GIT service.  Visual Studio allows the local repo to be saved to a VSTS, GitHub and other remote GIT services like BitBucket.



The following shows the settings for publishing to a VSTS Git repo:


References



VSTS Build


Now that the source has been published to GIT, a VSTS Build Definition can be defined.  For this scenario, a Azure WebApp Deployment template will be used as a basis for the definition:



The template allows the repo to be specified:



The template creates a classic Azure Web App Deployment.

Note: the replacing of the Azure Web App Deployment task should only be done if the VSTS subscription has access to the AzureRM Web App Deployment task.

Though we could use this task to deploy to both classic and RM Azure web sites, I will replace it:



And instead create a AzureRM Web App Deployment by adding the following task:



The configuration of the build step requires an AzureRM Subscription endpoint is defined in Services (click Manage) and requires the Web App Name and package is specified:



The rest of the steps ares suitable for the project.  The final pipeline for Part 1 consists of retrieving the source from a GIT repo, restoring NuGet packages, building the solution, running the unit test project, publishing to Azure and saving the build artifacts.  This is shown below:



The build can then be queued.  If all goes well the build will complete including a deployment to Azure.

Note:
Unless the template is updated, the build will fail because of a missing file .  By default the applicationinsights.config file is ignored and not added to GIT.  Including the file will allow the build to succeed.

Next Steps


In Part 2 , we will look at changing Application Insights settings in the build pipeline.