Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[enhancement]: Expand .agent file for Agent Pools in Linux with "collection_name" field #4717

Closed
kodzis-eib opened this issue Mar 19, 2024 · 2 comments

Comments

@kodzis-eib
Copy link

Describe your feature request here

Please add "collection_name" field in which the agent pool is created. Now this info is missing in .agent file and in case of 100+ collections the agent info is almost useless as it's hard to find via REST API.

@KonstantinTyukalov
Copy link
Contributor

KonstantinTyukalov commented Mar 23, 2024

Hi @kodzis-eib, thanks for the reporting! We are working on higher priority issues now, but we'll get back to this one soon
As a workaround, you could try to get the collection name from the "serverUrl" config property

@martin-toman
Copy link
Contributor

martin-toman commented Apr 24, 2024

in case of 100+ collections

@kodzis-eib Hello,
in Azure DevOps Server, agent pools are scoped to the entire server, see the following doc.

Our API documentation: Pools - Add is likely causing confusion - the /{collection}/ is not required in the URL. I will look into fixing the API docs.

I am not sure if this solves your problem, but you can check whether a particular AgentPool is available on project level, using the Queue APIs. Therefore, by iterating over all queues you can identify all Projects (and therefore also collections) where a given agent is available.

Please feel free to reactivate the issue in case you have any further questions!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants