Search code examples
tfstfsbuild

In TFS 2018, how do I set demands for a Deployment group?


I have a server setup using TFS 2018 that currently builds our software and triggers a release to deploy the binaries to my target system. I want to be able to only deploy the binaries to specific machines within a Deployment group based on the Capabilities each target has defined. I can see the capabilities for each target within my deployment group but no way to reference them.
I don't see an option to set Demands for the Deployment Group Phase in my Release Definition, only for a Build Agent.

How can I set Demands for my Deployment group?


Solution

  • Deployment groups don't have demands, but they do have tags. You can tag the machines in your deployment groups however you want, then specify that a Deployment Group phase should only run on a certain set of tags.