title: How to deploy angular universal app in azureDevOps app service
body: <p>I'm facing a problem deploying an angular universal app in azure web service I followed this step <a href="https://stackoverflow.com/a/53616516/10979521">https://stackoverflow.com/a/53616516/10979521</a> but a got an error says </p>
  
  <pre><code>##[error]Error: Publish using webdeploy options are supported only when using Windows agent. 
  </code></pre>
  
  <p>I guess the issue occurs in creating an app service, in my app service settings
      (
             *publish  (code)
             *runtime stack (.NET Core 2.2)
              *Operating System (Windows)
      )</p>
  
  <pre><code># Node.js with Angular
  # Build a Node.js project that uses Angular.
  # Add steps that analyze code, save build artifacts, deploy, and more:
  # https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
  
  trigger:
  - master
  
  pool:
    vmImage: 'ubuntu-latest'
  
  steps:
  - task: NodeTool@0
    inputs:
      versionSpec: '10.x'
    displayName: 'Install Node.js'
  
  - script: |
      npm install -g @angular/cli
      npm install
      npm run build:ssr
    displayName: 'build the project'
  
  - task: CopyFiles@2
    displayName: 'Copy dist files to staging'
    inputs:
      SourceFolder: '$(Build.SourcesDirectory)/dist'
  
      TargetFolder: '$(Build.ArtifactStagingDirectory)/app/dist'
  
  
  - task: CopyFiles@2
    displayName: 'Copy server.js to the root'
    inputs:
      SourceFolder: '$(Build.ArtifactStagingDirectory)/app/dist'
  
      Contents: server.js
  
      TargetFolder: '$(Build.ArtifactStagingDirectory)/app'
  
  - task: DeleteFiles@1
    displayName: 'Delete the dist/server.js'
    inputs:
      SourceFolder: '$(Build.ArtifactStagingDirectory)/app/dist'
  
      Contents: server.js
  
  - task: AzureRmWebAppDeployment@3
    displayName: 'Azure App Service Deploy: website'
    inputs:
      azureSubscription: 'my subscription'
      WebAppName: 'my website'
      Package: '$(Build.ArtifactStagingDirectory)/app'
      GenerateWebConfig: true
      WebConfigParameters: '-Handler iisnode -NodeStartFile server.js -appType node'
      UseWebDeploy: true
      RemoveAdditionalFilesFlag: true
  </code></pre>