Ensure Self-Hosted Agent Is Installed and Running
- Install a self-hosted agent on your Windows machine by following the official guide:
https://learn.microsoft.com/en-us/azure/devops/pipelines/agents/v2-windows - Make sure the agent is running and registered with the correct agent pool in your DevOps organization.
Configure Pipeline YAML
basic YAML example that runs a PowerShell or Batch script on a Windows self-hosted agent: