DevOps Starter Azure DevOps
Neil Haddley • April 26, 2021
Everything you need for developing, deploying, and monitoring your application.
DevOps Starter makes it easy to get started on Azure using either GitHub actions or Azure DevOps

Click "here" to switch between GitHub actions and Azure DevOps

Select Azure DevOps and Node

Select Express

Select Web App for Containers or Windows Web App

Web App on Windows can be used with Pricing tier "F1 Free"

Azure resources have been deployed

Continuous integration and Continuous delivery pipeline has completed

Click Clone to edit code

Open Visual Studio Code

Make update... add an extra description line.

Push changes to Azure git

New commit was successful

Pipeline is running

Pipeline has completed

Updated code has been deployed to production

View or edit pipeline

Node.js tool installer View YAML

Agent job 1 View YAML
Agent job 1
YAML
1pool: 2 name: Azure Pipelines 3steps: 4- task: NodeTool@0 5 displayName: 'Use Node version' 6 inputs: 7 versionSpec: 8.4 8 9- task: Npm@0 10 displayName: 'Install application dependencies' 11 inputs: 12 cwd: Application 13 arguments: '--force' 14 15- task: Npm@0 16 displayName: 'Install test dependencies' 17 inputs: 18 cwd: Tests 19 arguments: '--force' 20 21- task: gulp@0 22 displayName: 'Run unit tests' 23 inputs: 24 gulpFile: Tests/gulpfile.js 25 targets: unittest 26 gulpjs: 'Tests/node_modules/gulp/bin/gulp.js' 27 publishJUnitResults: true 28 29- task: ArchiveFiles@2 30 displayName: 'Archive application' 31 inputs: 32 rootFolderOrFile: '$(System.DefaultWorkingDirectory)/Application' 33 includeRootFolder: false 34 archiveFile: '$(Build.ArtifactStagingDirectory)/Application$(Build.BuildId).zip' 35 36- task: ArchiveFiles@2 37 displayName: 'Archive tests' 38 inputs: 39 rootFolderOrFile: '$(System.DefaultWorkingDirectory)/Tests' 40 includeRootFolder: false 41 archiveFile: '$(Build.ArtifactStagingDirectory)/Tests$(Build.BuildId).zip' 42 43- task: CopyFiles@2 44 displayName: 'Copy ARM templates' 45 inputs: 46 SourceFolder: armTemplates 47 TargetFolder: '$(build.artifactstagingdirectory)' 48 49- task: PublishBuildArtifacts@1 50 displayName: 'Publish Artifact: drop'