Reputation: 25
I can use the Powershell on Target machine task fine from an agent phase. In a Deployment group phase however, I'm not so lucky. The Powershell task gets called for each server in the group as expected, but it doesn't use the name of the server from the group. The Powershell task requires a Machine name that I don't know until the release runs.
What do I put in the task for machine name so it will pick up the name of the deployment group server?
Upvotes: 1
Views: 998
Reputation: 59055
If you're using a deployment group, you don't need to use PowerShell on Target Machines -- it's already running in the context of that machine. Just use a PowerShell task.
You only need to use PowerShell on Target Machines if you're running on the build agent and need to kick off a script on a different machine.
Upvotes: 6