Assign specific agent on Azure DevOps YAML Pipelines

0 votes
I want to know how to assign a specific agent to my agent pool?
Apr 7, 2022 in Other DevOps Questions by Kichu
• 19,040 points
1,860 views

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Try this YAML code:
stages:
- stage: Deploy
  pool:
   name: AgentPoolName(e.g. alm-aws-pool)
   demands:
    - agent.name -equals Agentname (e.g. deploy-05-agent1)
  jobs:
  - job: BuildJob
    steps:
    - script: echo Building!

I hope this helps you.
answered Apr 10, 2022 by narikkadan
• 63,600 points

edited Mar 5
0 votes
pool:
    name: 'YOURAGENTSPOOLNAME'
        demands:
        - Agent.Name -equals YOURAGENTNAME
answered Aug 22, 2022 by anonymous

edited Mar 5

Related Questions In Other DevOps Questions

0 votes
0 answers
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP