When I create a new project, there are missing agent pools which are available in collection. Indented or not, I need to add the agent pools to the new project. Therefore you have this menu:
is it possible to execute this process by Azure DevOps Rest API?
I seek through the documentation but all I found is Pools - Get Agent Pools. Issue here is that there is no project scope, only collection scope. So the call give me all Agent Pools from collection but not from a single project.
And even there is call to get all pools from a project, you still need a call to add a existing agent pool to the project.
How could I solve that problem?
Azure DevOps 2020.1 (on prem)
Self hosted agents