简体   繁体   English

Microsoft 托管代理与 vmImage 类型有何关联?

[英]how does Microsoft hosted agent relate to vmImage types?

I am a free tier user of Azure DevOps, as indicated in https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted-agent , each user is entitled to 10 parallel jobs.我是 Azure DevOps 的免费层级用户,如https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/hosted?view=azure-devops#use-a-microsoft-hosted 中所示-agent ,每个用户有权获得 10 个并行作业。

when i login to see the available agent in the Azure Pipeline pool, I see the following:当我登录查看Azure 管道池中的可用代理时,我看到以下内容:

在此处输入图像描述

I am just curious, are the agents listed here equivalent to 10 virtual machines?我只是好奇,这里列出的代理是否相当于10个虚拟机? if so, how man of them are windows images?如果是这样,其中有多少人是 windows 图像? how many mac images?有多少个mac图像? or those are just wild cards and they can be provisioned to be any vmImage type during run time?或者那些只是通配符,它们可以在运行时配置为任何 vmImage 类型?

thanks!谢谢!

Or those are just wild cards and they can be provisioned to be any vmImage type during run time?或者这些只是通配符,它们可以在运行时配置为任何 vmImage 类型?

Just consider them as wildcards, they can be provisioned to be any vmImage type during queue time.只需将它们视为通配符,它们可以在排队期间被配置为任何 vmImage 类型。

Details:细节:

Azure Devops provides some predefined variables about agent, for me I use this script in CMD task to confirm statements above: Azure Devops 提供了一些关于代理的预定义变量,对我来说,我在 CMD 任务中使用此脚本来确认上述语句:

echo ID: $(Agent.Id)
echo OS: $(Agent.OS)
echo Name: $(Agent.Name)
echo MachineName: $(Agent.MachineName)

We can disable some of those agents and enable part of them, then we can make sure one specific agent is used to run the pipeline.我们可以禁用其中一些代理并启用其中的一部分,然后我们可以确保使用一个特定的代理来运行管道。 Here's part of the result list:以下是结果列表的一部分:

在此处输入图像描述

在此处输入图像描述

在此处输入图像描述

So you can consider it as wildcard, those agent can represent any vmImage type.所以你可以把它当作通配符,那些代理可以代表任何 vmImage 类型。 It's not recommended to disable any of those agents in normal situation, it's just for test purpose.不建议在正常情况下禁用任何这些代理,这只是为了测试目的。 Normally if those agents are enabled in Public project, you can easily run ten pipelines(no matter what OS system) at the same time.通常,如果在公共项目中启用了这些代理,您可以轻松地同时运行十个管道(无论是什么操作系统)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM