{
  "schemaVersion": "ebb.rule.v1",
  "id": "ci-images.azure-pipelines.windows-2019",
  "ecosystem": "ci-images",
  "purl": "pkg:generic/azure-pipelines/windows-image",
  "affectedVersions": "vers:intdot/2019",
  "event": "removed",
  "severity": "high",
  "title": "Azure Pipelines Windows Server 2019 hosted image is retired",
  "summary": "The Windows Server 2019 hosted image was retired on 2025-12-31. The Azure DevOps blog sets that full removal date, and the Microsoft-hosted agents page records the same retirement.",
  "replacement": "windows-2022, windows-2025, or windows-latest",
  "deadline": "2025-12-31",
  "sources": [
    {
      "title": "Upcoming Updates for Azure Pipelines Agents Images",
      "url": "https://devblogs.microsoft.com/devops/upcoming-updates-for-azure-pipelines-agents-images/",
      "accessedAt": "2026-10-21"
    },
    {
      "title": "Microsoft-hosted agents for Azure Pipelines",
      "url": "https://learn.microsoft.com/azure/devops/pipelines/agents/hosted",
      "accessedAt": "2026-10-21"
    }
  ],
  "provenance": {
    "observedAt": "2026-10-21",
    "reviewedAt": "2026-10-21",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Change only Microsoft-hosted pool.vmImage labels. This retirement does not apply to self-hosted Windows Server 2019 agents, Managed DevOps Pools, or VM scale sets.",
      "The notice names windows-2022, windows-2025, or windows-latest. Pin windows-2022 or windows-2025 when the pipeline must stay on one Windows Server release, because windows-latest moves when Microsoft updates the alias."
    ],
    "steps": [
      {
        "id": "retarget-vm-image",
        "title": "Retarget the hosted image",
        "instructions": "Change the reported pool.vmImage from windows-2019 to windows-2022, windows-2025, or windows-latest (see the replacement).",
        "targets": "declaration"
      },
      {
        "id": "align-vm-image-surfaces",
        "title": "Align other Azure Pipelines pools",
        "instructions": "Update every other azure-pipelines.yml pool, including stage and job pools, that still pins windows-2019. Leave self-hosted pool names unchanged.",
        "targets": "all"
      }
    ],
    "verification": [
      {
        "command": "gitlab-ci-lint || circleci config validate",
        "purpose": "Lint .gitlab-ci.yml with gitlab-ci-lint, or .circleci/config.yml with circleci config validate, when the repository has that file. Azure Pipelines has no equivalent local validator: queue the pipeline and confirm the job uses the replacement vmImage."
      }
    ]
  }
}
