Ogglas
Ogglas

Reputation: 70186

Azure Pipelines - Microsoft-hosted agent - windows latest vs windows-latest

In Azure DevOps Release Pipeline for a Agent Job I can choose either windows latest or windows-latest as Agent Specification for Agent pool Azure Pipelines. I have not seen this anywhere else and the documentation does not mention it either. Given that documentation mentions windows-latest I will use that.

enter image description here

https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops&tabs=yaml

Is this a legacy name that will be removed or where does it come from? I have not noticed this before.

Upvotes: 4

Views: 1931

Answers (1)

Ogglas
Ogglas

Reputation: 70186

Tested two releases with the different agents, both seem to target windows-latest according to documentation.

https://github.com/actions/virtual-environments/blob/win22/20220522.1/images/win/Windows2022-Readme.md

https://github.com/actions/virtual-environments/releases/tag/win22%2F20220522.1

windows latest:

enter image description here

windows-latest:

enter image description here

Upvotes: 2

Related Questions