VSTS | TFS 2018
A deployment group is a logical set of deployment target machines that have agents installed on each one. Deployment groups represent the physical environments; for example, "Dev", "Test", "UAT", and "Production". In effect, a deployment group is just another grouping of agents, much like an agent pool.
Specify the security context and runtime targets for the agents. As you create a deployment group, you add users and give them appropriate permissions to administer, manage, view, and use the group.
Let you view live logs for each server as a deployment takes place, and download logs for all servers to track your deployments down to individual machines.
Enable you to use machine tags to limit deployment to specific sets of target servers.
Create a deployment group
You define groups on the Deployment Groups tab of the Build & Release hub, and install the agent on each server in the group. After you prepare your target servers, they appear in the Deployment Groups tab. The list indicates if a server is available, the tags you assigned to each server, and the latest deployment to each server.
The tags you assign allow you to limit deployment to specific servers when the deployment group is used in a Deployment group phase. You manage the security for a deployment group by assigning security roles.
Deploy agents to a deployment group
Every target machine in the deployment group requires the build and release agent to be installed. You an do this using the script that is generated in the Deployment Groups tab of the Build & Release hub. You can choose the type of agent to suit the target operating system and platform; such as Windows and Linux.
If the target machines are Azure VMs, you can quickly and easily prepare them by by installing the VSTS Agent Azure VM extension on each of the VMs, or by using the Azure Resource Group Deployment task in your release definition to create a deployment group dynamically.
For more information, see Provision agents for deployment groups.
Monitor releases for deployment groups
When release is executing, you see an entry in the live logs page for each server in the deployment group. After a release has completed, you can download the log files for every server to examine the deployments and resolve issues. To navigate quickly to a release definition or a release, use the links in the Releases tab.
- Run on machine group phase
- Deploy an agent on Windows
- Deploy an agent on macOS
- Deploy an agent on Linux