Hi,
- Set Up a Self-Hosted Agent: Choose between a Microsoft-hosted or self-hosted agent. If a self-hosted agent is required, download and install it on your VM.
- Configure Agent Permissions: Ensure the user configuring the agent has pool admin permissions and restrict access to the agent's folders.
- Download and Configure the Agent: Download the agent from Azure DevOps, unpack it in a directory like
C:\agents
, and runconfig.cmd
for configuration. - Run the Agent: Decide if the agent will run in interactive or service mode. For interactive, use
.\\run.cmd
to start; for service mode, it starts automatically. - Use Docker in Azure Pipelines: For Docker tasks, use the Docker@2 task in your pipeline YAML to build or push images, and control containers.
- Replace or Reconfigure Agent: To replace an agent, re-download, and configure using the same name as the existing agent. Remove the old agent to avoid conflicts.
Please review the following Microsoft Documentation links
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/windows-agent?view=azure-devops
Kindly if you find the provided information helpful and it resolves your query, please consider accepting the answer. Your feedback is valuable and helps ensure the quality and relevance of the responses.