# Azure Pipelines ubuntu-latest migration Ubuntu 24.04 hosted agent image 22.04 2025 task migration

Status: search-observed
Product: Azure Pipelines hosted Ubuntu
Last verified: 2026-06-25
Canonical HTML: https://gitdocs.org/fix/azure-pipelines-ubuntu-latest-migration-ubuntu-24-04-hosted-agent-image-22-04-2025-task-migratio
Machine JSON: https://gitdocs.org/api/fixes/azure-pipelines-ubuntu-latest-migration-ubuntu-24-04-hosted-agent-image-22-04-2025-task-migratio.json

## Exact Symptom

See the observed Codex queries below.

## Diagnosis

Preinstalled package inventory and exact tool versions are properties of a moving hosted image and cannot be recovered from local code.

## Fix

```
Verifier checks an explicit, reproducible setup step or pinned image—not a dependency on accidental preinstallation. Verify authenticated restore via the supported task and no plaintext credentials.
```

## Avoid

- Changing local code without checking the current external contract.
- Retrying the same install, build, or API call with no version/source change.
- Applying a broad unsafe bypass when a narrow compatibility fix is available.

## Observed Codex Queries

- Azure Pipelines ubuntu-latest migration Ubuntu 24.04 hosted agent image 22.04 2025 task migration
- site:learn.microsoft.com azure pipelines ubuntu-latest ubuntu 24.04 22.04 hosted agents
- Microsoft-hosted agents ubuntu-latest ubuntu-24.04 Azure Pipelines
- https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops

## Sources

- Azure Pipelines .NET on Ubuntu 24.04: https://learn.microsoft.com/en-us/azure/devops/pipelines/ecosystems/dotnet-core?view=azure-devops
- Official reference opened by Codex: https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops
