Answers: <h2>EDIT</h2>
  <p>Microsoft added a new hosted agent: <code>Hosted Windows 2019 with VS 2019</code>.</p>
  <p>So you should use this image to build for <code>windows-1809</code> or <code>windows-2019</code></p>
  <p>Source : <a href="https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&amp;tabs=yaml#use-a-microsoft-hosted-agent" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&amp;tabs=yaml#use-a-microsoft-hosted-agent</a></p>
  <hr />
  <h1>Old answer:</h1>
  <p>FWIW, I ended up creating a windows server 2019 vm on azure to act as a build agent.</p>
  <p>Could not manage to build 2019 image in any of the hosted agent pools.</p>
  
Answers: CC BY-SA 4.0
Answers: 2019-02-19T21:48:20.427Z
Answers: 2019-02-28T20:57:31.287Z
Answers: 2020-06-18T08:28:10.803Z
Answers: Justin
Body: <p>The host agent pool on azure-devops to build windows container, <code>Hosted Windows Container</code> is running Windows Server version 1803.</p>
  
  <p>But I want to deploy on Windows Server 2019, so instead of using Microsoft <code>:1803</code> images, I'm building from images tagged <code>:ltsc2019</code>.</p>
  
  <p>How can I build my <code>:ltsc2019</code> images on azure-devops?</p>
  
Tags: <docker><containers><windows><azure-devops><build-pipeline>
Title: How to build windows image on azure dev ops hosted agent
UserDisplayName: Justin
ThreadText: # How to build windows image on azure dev ops hosted agent
  
  (Asked by: username_0 on 2019-02-19)
  
  The host agent pool on azure-devops to build windows container, `Hosted Windows Container` is running Windows Server version 1803.
  
  But I want to deploy on Windows Server 2019, so instead of using Microsoft `:1803` images, I'm building from images tagged `:ltsc2019`.
  
  How can I build my `:ltsc2019` images on azure-devops?
  
  **Tags:** docker, containers, windows, azure-devops, build-pipeline
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-02-19. Score: 1 | Accepted answer
  
  ## EDIT
  
  Microsoft added a new hosted agent: `Hosted Windows 2019 with VS 2019`.
  
  So you should use this image to build for `windows-1809` or `windows-2019`
  
  Source : <https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml#use-a-microsoft-hosted-agent>
  
  ---
  
  # Old answer:
  
  FWIW, I ended up creating a windows server 2019 vm on azure to act as a build agent.
  
  Could not manage to build 2019 image in any of the hosted agent pools.
  
  
  ---
  
  