Microsoft托管代理与vmImage类型有何关系? [英] how does Microsoft hosted agent relate to vmImage types?

查看:38
本文介绍了Microsoft托管代理与vmImage类型有何关系?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Azure DevOps的免费用户,如

我很好奇,这里列出的代理程序是否等效于10个虚拟机?如果是这样,Windows图像是如何显示的?多少个Mac图像?还是那些只是通配符,可以在运行时将它们设置为任何vmImage类型?

谢谢!

解决方案

或者这些只是通配符,可以设置为任意通配符运行时是否为vmImage类型?

只需将它们视为通配符,就可以在队列时间内将它们设置为任何vmImage类型.

详细信息:

Azure Devops提供了一些

因此,您可以将其视为通配符,这些代理可以代表任何vmImage类型.在正常情况下,不建议禁用这些代理中的任何一个,这只是出于测试目的.通常,如果在公共项目中启用了这些代理,则可以轻松地同时运行十个管道(无论使用哪种OS系统).

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.

when i login to see the available agent in the Azure Pipeline pool, I see the following:

I am just curious, are the agents listed here equivalent to 10 virtual machines? if so, how man of them are windows images? how many mac images? or those are just wild cards and they can be provisioned to be any vmImage type during run time?

thanks!

解决方案

Or those are just wild cards and they can be provisioned to be any vmImage type during run time?

Just consider them as wildcards, they can be provisioned to be any vmImage type during queue time.

Details:

Azure Devops provides some predefined variables about agent, for me I use this script in CMD task to confirm statements above:

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. 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.

这篇关于Microsoft托管代理与vmImage类型有何关系?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆