You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/pipelines/release/deployment-groups/index.md
+25-29Lines changed: 25 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
---
2
2
title: Use deployment groups in Classic release pipelines
3
-
description: Learn how to create and use deployment groups, which are logical groups of target machines for Classic release pipelines in Azure Pipelines.
3
+
description: Learn how to create and use deployment groups in Classic release pipelines in Azure Pipelines.
Similar to an [agent pool](../../agents/pools-queues.md), a deployment group is a logical set of target machines that each have a deployment agent installed. Deployment groups can represent environments such as "Development," "Test," or "Production." Every physical or virtual machine (VM) in the deployment group interacts with Azure Pipelines to coordinate the deployment tasks. Deployment groups are different from [deployment jobs](../../process/deployment-jobs.md), which are collections of task-related steps defined in YAML pipelines.
17
+
Similar to an [agent pool](../../agents/pools-queues.md), a deployment group is a logical set of target machines, each have a deployment agent installed. Deployment groups typically represent environments such as *Development,*Test*, or *Production*. Each physical or virtual machine in the deployment group communicates with Azure Pipelines to coordinate deployment tasks. Deployment groups differ from [deployment jobs](../../process/deployment-jobs.md), which are collections of task-related steps defined in YAML pipelines.
18
18
19
-
>[!NOTE]
20
-
>Deployment groups are available only for Classic release pipelines.
19
+
Deployment groups give you a flexible way to manage and monitor your deployment targets. You can define the security context and runtime environment for agents, assign roles and permissions to team members, and get real-time visibility into deployments with live logs for each server. You can also use tags to target specific machines, making deployments more precise and efficient.
21
20
22
-
By using deployment groups, you can:
23
-
24
-
- Specify the security context and runtime targets for agents.
25
-
- Add users and give them appropriate permissions to administer, manage, view, and use the group.
26
-
- View live logs for each server while a deployment happens, and download logs to track deployments for individual servers.
27
-
- Use tags to limit deployments to specific sets of target servers.
21
+
> [!NOTE]
22
+
> Deployment groups are only available in Classic release pipelines.
28
23
29
24
## Prerequisites
30
25
31
-
- An Azure DevOps organization and project. To create an organization and project, see [Create a new organization](../../../organizations/accounts/create-organization.md) or [Create a project in Azure DevOps](../../../organizations/projects/create-project.md).
32
-
- Administrative access to at least one Windows or Linux physical or virtual machine to use as a deployment target.
26
+
|**Product**|**Requirements**|
27
+
|--------------------|--------------------|
28
+
|**Azure DevOps**| - An Azure DevOps [organization](../../../organizations/accounts/create-organization.md).<br>- An Azure DevOps [project](../../../organizations/projects/create-project.md).<br> - Administrator permissions on a Windows or Linux machine to install and configure the deployment agent. |
33
29
34
30
## Create a deployment group
35
31
36
-
1. From your Azure DevOps project, select **Pipelines** > **Deployment groups**.
37
-
38
-
:::image type="content" source="media/pipelines-deployment-groups.png" alt-text="A screenshot showing Deployment groups in the Pipelines menu.":::
32
+
1. Sign in to your Azure DevOps organization, and navigate to your project.
39
33
40
-
1.On the **Deployment groups** screen, select **New**, or select **Add a deployment group** if this deployment group is the first one in the project.
34
+
1.In your project, select **Pipelines**, then select **Deployment groups**.
41
35
42
-
:::image type="content" source="media/add-deployment-groups.png" alt-text="A screenshot showing Add a deployment group.":::
36
+
1. On the **Deployment groups** page, select **New**. If this is your first deployment group, select **Add a deployment group**.
43
37
44
38
1. Enter a **Deployment group name** and then select **Create**.
45
39
46
40
1. On the next screen, select **Windows** or **Linux** for the **Type of target to register**. A registration script is generated.
47
41
48
-
1. Select **Use a personal access token in the script for authentication**, and then select **Copy script to the clipboard**.
42
+
1. Select **Use a personal access token in the script for authentication**, then select **Copy script to the clipboard**.
49
43
50
44
1. Save the copied script to run on all the target machines in your deployment group.
51
45
52
-
:::image type="content" source="media/generated-script.png" alt-text="A screenshot showing the generated registration script and other settings.":::
46
+
:::image type="content" source="media/generated-script.png" alt-text="A screenshot displaying how to create a deployment group in Azure Pipelines.":::
53
47
54
48
## Register target servers
55
49
56
50
To register each target server in the deployment group:
57
51
58
-
1. Sign in to the machine with an administrative account and run the copied script. For Windows machines, use an elevated PowerShell command prompt.
52
+
1. Sign in to the machine using an account with administrator permissions, and run the copied script. For Windows machines, use an elevated PowerShell command prompt.
59
53
60
54
:::image type="content" source="media/register-servers.png" alt-text="A screenshot that shows registering deployment groups servers.":::
61
55
62
-
1.To assign tags that let you limit deployments to certain servers in a [deployment group job](../../process/deployment-group-phases.md), enter *Y* when prompted to enter tags, and then enter a tag or tags.
56
+
1.When prompted to add tags (can be used to target deployments to specific servers in a [deployment group job](../../process/deployment-group-phases.md)), enter Y, then provide one or more tags. Tags are case insensitive, limited to 256 characters each, and there's no limit to the number of tags you can use.
63
57
64
-
Tags are limited to 256 characters each, are case insensitive, and there's no limit to the number of tags you can use.
58
+
1. Once setup is complete, the script should return the following message:
65
59
66
-
After you set up a target server, the script should return the message `Service vstsagent.{organization-name}.{computer-name} started successfully`.
60
+
```
61
+
Service vstsagent.{organization-name}.{computer-name} started successfully.
62
+
```
67
63
68
64
## Install and upgrade agents
69
65
70
-
Every target server in the deployment group requires a deployment agent. The generated registration script for target servers installs an agent. Alternatively, you can use the following methods to install agents:
66
+
Every target server in the deployment group requires a deployment agent. The generated registration script for target servers installs an agent. Alternatively, you can install agents using one of the following methods:
71
67
72
-
-If the target servers are Azure VMs, you can easily set up your servers by [installing the Azure Pipelines agent extension](./howto-provision-deployment-group-agents.md#install-the-azure-pipelines-agent-azure-vm-extension) on each VM.
68
+
- For Azure VMs, you can easily set up your servers by [installing the Azure Pipelines agent extension](./howto-provision-deployment-group-agents.md#install-the-azure-pipelines-agent-azure-vm-extension) on each VM.
73
69
74
-
-You can use the [AzureResourceGroupDeploymentV2 task](./howto-provision-deployment-group-agents.md#use-the-azureresourcegroupdeploymentv2-task) in your release pipeline to create and register a deployment group dynamically.
70
+
- Use the [AzureResourceGroupDeploymentV2 task](./howto-provision-deployment-group-agents.md#use-the-azureresourcegroupdeploymentv2-task) in a release pipeline to dynamically create and register deployment group agents.
75
71
76
-
For more information about these methods, see [Provision agents for deployment groups](howto-provision-deployment-group-agents.md).
72
+
See [Provision agents for deployment groups](howto-provision-deployment-group-agents.md) for more details.
77
73
78
-
To upgrade the agents on target servers to the latest version without having to redeploy them, select the **More actions** ellipsis next to the deployment group on the **Deployment groups** page and select**Update targets**. For more information, see [Azure Pipelines agents](../../agents/agents.md).
74
+
To upgrade deployment agents to the latest version without redeploying, go to the **Deployment groups** page, select the **More actions** ellipsis next to your deployment group, and choose **Update targets**. See [Agents](../../agents/agents.md) for more details.
79
75
80
76
:::image type="content" source="media/update-targets-deployment-groups.png" alt-text="A screenshot showing how to update targets in deployment groups.":::
0 commit comments