Skip to content

Commit 3919913

Browse files
Steve DanielsonSteve Danielson
authored andcommitted
Agent replace option
1 parent de99ec8 commit 3919913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/pipelines/agents/includes/v2/unattended-config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ For example, `VSTS_AGENT_INPUT_PASSWORD` instead of specifying `--password`.
3535
### Pool and agent names
3636
- `--pool <pool>` - pool name for the agent to join
3737
- `--agent <agent>` - agent name
38-
- `--replace` - replace the agent in a pool. If another agent is listening by the same name, it will start failing with a conflict
38+
- `--replace` - Specify `--replace` if you are replacing the current agent installation with an agent with the same name. If your intention is to replace an agent with the same name that's hosted elsewhere, unconfigure the other agent first before configuring this one (and you don't need to specify `--replace`); otherwise if you have two agent instances with the same name, you'll get conflicts, and after a few moments of conflicts, one of the agents will shut down.
3939

4040
### Agent setup
4141
- `--work <workDirectory>` - work directory where job data is stored. Defaults to `_work` under the

0 commit comments

Comments
 (0)