Hi, I want create a self-host agent and use it in pipeline. however, I had some problems importing the image.
the procedures are list in follow.
create a self-host agent according to the link : [https://docs.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows?view=azure-devops]

import the agent image, I do not know the right format
In other words, how could I replace lines 9 and 10 of the demo code with the self-host agent?

Thanks
Hi @tjinjin95
You should specify an agent pool name:
pool:
name: 'AgentPoolName'
If you'd like to specify an exact agent in the pool you should do the following:
pool:
name: 'AgentPoolName'
demands:
- agent.name -equals 'azurePipelineWindows'
Is this information helpful for you?
@egor-bryzgalov I still cannot specify the agent. The error log is as follows.
code:

first test:

second test:

capabilities:

Problem solved, could refer to the link: https://github.com/microsoft/azure-pipelines-agent/issues/2996